What’s New in RxJS v6.5

Netanel Basal
Netanel Basal
Published in
2 min readApr 23, 2019

--

RxJS version 6.5.0 is now available. This post highlights the latest features and improvements in this version.

New Fetch Observable

RxJS now provides built-in support for using the native JS fetch API, including the ability to abort requests with AbortController baked-in.

forkJoin Improvements

This is one of my favorites. The forkJoin observable now takes a dictionary of sources:

Moreover, there is one deprecation — forkJoin(a, b, c, d) should no longer be used; Instead, pass an array such as forkJoin([a, b, c, d]).

Partition Observable

The current partition operator is deprecated in favor of a new creation observable, named partition.

The partition observable splits the source observable into two observables, one for values which satisfy the given predicate, and the other for values which don’t.

combineLatest Deprecation

This version deprecates all combineLatest signatures except combineLatest([a, b, c]) . You can read the reason for this change here.

Schedulers

Add the scheduled creation function to create a scheduled observable of values. The scheduled versions of from, range, et al. have been deprecated.

Follow me on Medium or Twitter to read more about Angular, Akita and JS!

Additional Resources

😱 🚀 Have You Tried Akita Yet?

One of the leading state management libraries, Akita has been used in countless production environments. It’s constantly developing and improving.

Whether it’s entities arriving from the server or UI state data, Akita has custom-built stores, powerful tools, and tailor-made plugins, which help you manage the data and negate the need for massive amounts of boilerplate code. We/I highly recommend you try it out.

--

--

A FrontEnd Tech Lead, blogger, and open source maintainer. The founder of ngneat, husband and father.