Are you ready? The latest updates to RxJS 7.5 boast some exciting new features.
Major highlights include changes to the the RxJS roadmap.
Now RxJS will be broken down to smaller packages #6786 in order to give the team the ability to publish smaller independent RxJS packages. Through this change, for example, developers will import libraries like
@rxjs/observables instead of
This will give library authors and developers the opportunity to only import the package required for their projects. It will encourage more community contributions to separate packages, and also reduce the build size for RxJS.
Other updates for RxJS 7.5
RxJS 7.5 is the latest release, which added a number of new features that have also improved performance metrics.
New features in RxJS 7.5
repeat APIs allow developers to add a
delay configuration to these operators (#6640 and #6421), which simplify similar operators
repeatWhen. With these improvements,
repeatWhen will be deprecated and removed in coming major versions #6859.
share operator was extended to allow developers to pass an observable factory to control the reset behavior, and enable reset delays, #6169.
RxJS 8 has now seen an alpha release, which you can check out by reviewing the official roadmap.
RxJS is moving to use NX monorepo for the doc site, and RxJS main builds #6786. Other proposals include Standalone packages like the
The Standalone Observable package will unify
observables usage with the existing patterns in other libraries. This will promote adoption for the proposed native
observable with TC39, for which the RxJS team has been advocating.
Chrome Dev Tools
The Chrome Dev Tools team is discussing whether to add debugging tooling that can help developers debug features in RxJS.
Curious about more updates to RxJS? Make sure to check out the Github repo and follow the changelog for more information.
*This Dot Labs is a modern web consultancy focused on helping companies realize their digital transformation efforts. For expert architectural guidance, training, or consulting in React, Angular, Vue, Web Components, GraphQL, Node, Bazel, or Polymer, visit thisdot.co. *