Chapter 2: RxJS 7 – The Major Features
RxJS 7 was released on April 29, 2021. This new version came with a lot of improvements and new features over RxJS 6. Hence, we're going to use this version to benefit from the new features and guarantee optimized, high-quality code for our patterns. In this chapter, we will be discussing some of these features. We will only be covering certain features that we consider important and those that represent a major improvement over the features in RxJS 6.
We will begin this chapter by defining the bundle size and highlighting the importance of analyzing it. Then, we will compare the RxJS 6 and RxJS 7 bundles within an Angular app. After that, we will review some TypeScript typing improvements. Additionally, we will explain the reason behind the toPromise()
deprecation and the newly offered alternatives. Finally, we will shed light on the API consistency improvements.
In this chapter, we're going to cover the following topics...