RxJs v7.0.0-beta.6 Release Notes

Release Date: 2020-09-23 // over 3 years ago
  • ๐Ÿ› Bug Fixes

    ๐Ÿ”จ 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 though 0 was passed.
    • map: thisArg will now default to undefined. The previous default of MapSubscriber never made any sense. This will only affect code that calls map with a function and references this 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 to console.warn in the new configuration setting like so: import { config } from 'rxjs'; config.onUnhandledError = (err) => console.warn(err);