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

    • count: Base off of reduce. (98a6d09)
    • pairs: Based off of from and Object.entries (#5775) (d39f830)

    ๐Ÿ”‹ Features

    ๐Ÿ’ฅ 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 for Object.entries. pairs itself is also deprecated in favor of users just using from(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.