RxJs v7.0.0-beta.8 Release Notes
Release Date: 2020-10-15 // over 3 years ago-
๐ Bug Fixes
- audit, auditTime: audit and auditTime emit last value after source completes (#5799) (643bc85), closes #5730
- No longer allow invalid "Subscribable" type as valid observable source in
from
and others. (258dddd), closes #4532 - bindNodeCallback: ensure underlying function is not called twice during subscription (#5780) (74aa4b2)
- delay: Now properly handles Date and negative numbers (#5719) (868c02b), closes #5232
- delayWhen: only deprecates when subscriptionDelay presents (#5797) (43d1731)
- every: index properly increments in predicate (5686f83)
- firstValueFrom: now unsubscribes from source after first value is received (#5813) (a321516), closes #5811
- from: objects that are thennable that happen to have a subscribe method will no longer error. (789d6e3)
- fromEvent: now properly types JQuery event targets (b5aa15a)
- ๐ mergeScan: no longer emits state again upon completion. (#5805) (68c2894), closes #5372
- throttle: now supports synchronous duration selectors (55e953e), closes #5658
- throttle: trailing values will now emit after source completes (d5fd69c)
- โฑ timeout: allows synchronous observable as a source (84c5c0b), closes #5746
- zip: zip now accepts an array of arguments like its counterparts (3123b67)
๐จ Code Refactoring
๐ Features
- ajax: now supports passing custom XSRF cookies in a custom header (#5702) (1a2c2e4), closes #4003
- switchScan: add switchScan() operator (#4442) (73fa910), closes #2931
๐ฅ BREAKING CHANGES
- ๐ mergeScan:
mergeScan
will no longer emit its inner state again upon completion. - pairs:
pairs
will no longer function in IE without a polyfill forObject.entries
.pairs
itself is also deprecated in favor of users just usingfrom(Object.entries(obj))
. - zip: Zipping a single array will now have a different result. This is an extreme corner-case, because it is very unlikely that anyone would want to zip an array with nothing at all. The workaround would be to wrap the array in another array
zip([[1,2,3]])
. But again, that's pretty weird. - count: No longer passes
source
observable as a third argument to the predicate. That feature was rarely used, and of limited value. The workaround is to simply close over the source inside of the function if you need to access it in there.