Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between the "rx" and "rxjs" npm packages?

When trying to figure out how my RxJS import statements work, the presence of the node_modules/rx folder caused some confusion.

Now I am wondering why there are two separate packages at all. From the package descriptions here and here I can't really tell the difference. Is rx maintained by Microsoft and the other by a different community? Are there major differences? A link to a document with an explanation and some advice when to use which of them would be great!

like image 265
lex82 Avatar asked Feb 05 '23 14:02

lex82


1 Answers

Looking at this link you can find that:

Note: RxJS v5 beta is being developed at https://github.com/ReactiveX/rxjs.

In Short:

  • RXJS - v5+
  • RX - v4-

More about v5+ can be found here:

This is a rewrite of Reactive-Extensions/RxJS and is the latest production-ready version of RxJS. This rewrite is meant to have better performance, better modularity, better debuggable call stacks, while staying mostly backwards compatible, with some breaking changes that reduce the API surface.

like image 121
eddyP23 Avatar answered Feb 07 '23 13:02

eddyP23