RxJs v7.0.0-beta.6 Release Notes
Release Date: 2020-09-23 // over 3 years ago-
๐ Bug Fixes
- AsyncSubject: fixed reentrancy issue in complete (9e00f11), closes /github.com/ReactiveX/rxjs/pull/5729/files/30d429cf1b791db15c04a61f6a683e189b53fb3e#r492314703
- delay: proper handling of absolute time (
Date
) passed as an argument (8ae89b1) - fromEvent: properly teardown for ArrayLike targets (066de74)
- ReplaySubject: no longer buffers additional values after it's already stopped (#5696) (a08232b)
- scan: proper indexes when seed is not supplied (f93fb9c), closes #4348 #3879
- windowTime: Passing no creation interval will now properly open new window when old one closes (cbd0ac0)
๐จ Code Refactoring
- Massive Size Reduction: reduced the size of all operator implementations as well as other utilities and types (#5729) (4d3fc23)
๐ Features
- onUnhandledError: configuration point added for unhandled errors (#5681) (3485dd5)
- skipLast: counts zero or less will mirror the source (02e113b)
๐ฅ BREAKING CHANGES
- skipLast:
skipLast
will no longer error when passed a negative number, rather it will simply return the source, as though0
was passed. - map:
thisArg
will now default toundefined
. The previous default ofMapSubscriber
never made any sense. This will only affect code that calls map with afunction
and referencesthis
like so:source.pipe(map(function () { console.log(this); }))
. There wasn't anything useful about doing this, so the breakage is expected to be very minimal. If anything we're no longer leaking an implementation detail. - onUnhandledError: Errors that occur during setup of an observable subscription after the subscription has emitted an error or completed will now throw in their own call stack. Before it would call
console.warn
. This is potentially breaking in edge cases for node applications, which may be configured to terminate for unhandled exceptions. In the unlikely event this affects you, you can configure the behavior toconsole.warn
in the new configuration setting like so:import { config } from 'rxjs'; config.onUnhandledError = (err) => console.warn(err);