nx-packaged
nx-packaged copied to clipboard
build: update rxjs to version ^7.0.0-beta
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| rxjs (source) | dependencies | major | ^6.4.0 -> ^7.0.0-beta |
Release Notes
reactivex/rxjs
v7.0.0-beta.8
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
fromand 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:
mergeScanwill no longer emit its inner state again upon completion. - pairs:
pairswill no longer function in IE without a polyfill forObject.entries.pairsitself 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
sourceobservable 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.
v7.0.0-beta.7
Bug Fixes
- multicast: and other publish variants will handle errors thrown in a selector appropriately (bde8eda)
Code Refactoring
- tap: reduce the size of the implementation (1222d5a)
- Subscriber: Massively untangle Subscriber and SafeSubscriber (07902ca)
BREAKING CHANGES
- Subscriber:
new Subscriberno longer takes 0-3 arguments. To create aSubscriberwith 0-3 arguments, useSubscriber.create. However, please note that there is little to no reason that you should be creatingSubscriberreferences directly, andSubscriber.createandnew Subscriberare both deprecated.
v7.0.0-beta.6
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:
skipLastwill no longer error when passed a negative number, rather it will simply return the source, as though0was passed. - map:
thisArgwill now default toundefined. The previous default ofMapSubscribernever made any sense. This will only affect code that calls map with afunctionand referencesthislike 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.warnin the new configuration setting like so:import { config } from 'rxjs'; config.onUnhandledError = (err) => console.warn(err);
v7.0.0-beta.5
Bug Fixes
- ajax: Allow XHR to perform body serialization and set content-type where possible (d8657ed), closes #2837
- ajax: Do not mutate headers passed as arguments (0d66ba4), closes #2801
- bindCallback: now emits errors that happen after callback (2bddd31)
- bindNodeCallback: now emits errors that happen after callback (edc28cf)
- buffer: Ensure notifier is subscribed after source (#5654) (c088b0e), closes #2195 #1754
- catchError: ensure proper handling of async return for synchronous source error handling (#5627) (1b29d4b), closes #5115
- catchError: inner synchronous observables will properly terminate (#5655) (d3fd2fb)
- errors: Custom RxJS errors now all have a call stack (#5686) (9bb046c), closes #4250
- onErrorResumeNext: observables always finalized before moving to next source (#5650) (ff68ad2)
- package.json: change homepage setting to official docs site. (#5669) (e57c402)
- repeat: Ensure teardown happens between repeated synchronous obs… (#5620) (0ca8a65)
- repeatWhen: Ensure teardown happens between repeat subscriptions (#5625) (98356f4)
- retry: Ensure teardown happens before resubscription with synchronous observables (6f90597), closes #5620
- retryWhen: Ensure subscription tears down between retries (#5623) (6752af7)
- throttleTime: ensure the spacing between throttles is always at least the throttled amount (#5687) (ea84fc4), closes #3712 #4864 #2727 #4727 #4429
- zip: zip operators and functions are now able to zip all iterable sources (#5688) (02c3a1b), closes #4304
switchMapandexhaustMapbehave correctly with re-entrant code. (c289688)- webSocket: close websocket connection attempt on unsubscribe (e1a671c), closes #4446
Code Refactoring
- ajax: Use simple Observable (17b9add)
- Subscriber: remove _unsubscribeAndRecycle (d879c3f)
- VirtualTimeScheduler: remove sortActions from public API (#5657) (a468f88)
Features
- combineLatest: add N-args signature for observable inputs (#5488) (fcc47e7)
- Subscription:
addno longer returns unnecessary Subscription reference (#5656) (4de604e) - Subscription:
removewill now remove any teardown by reference (#5659) (1531152) - throwError: now accepts a factory to create the error (#5647) (dad270a), closes #5617
- useDeprecatedNextContext: Puts deprecated next context behavior behind a flag (dfdef5d)
- support schedulers within run (#5619) (c63de0d)
Performance Improvements
- SafeSubscriber: avoid using
Object.create(40a9e77)
BREAKING CHANGES
-
ajax:
ajaxbody serialization will now use default XHR behavior in all cases. If the body is aBlob,ArrayBuffer, any array buffer view (like a byte sequence, e.g.Uint8Array, etc),FormData,URLSearchParams,string, orReadableStream, default handling is use. If thebodyis otherwisetypeof"object", then it will be converted to JSON viaJSON.stringify, and theContent-Typeheader will be set toapplication/json;charset=utf-8. All other types will emit an error.- The
Content-Typeheader passed toajaxconfiguration no longer has any effect on the serialization behavior of the AJAX request. - For TypeScript users,
AjaxRequestis no longer the type that should be explicitly used to create anajax. It is nowAjaxConfig, although the two types are compatible, onlyAjaxConfighasprogressSubscriberandcreateXHR.
-
zip:
zipoperators will no longer iterate provided iterables "as needed", instead the iterables will be treated as push-streams just like they would be everywhere else in RxJS. This means that passing an endless iterable will result in the thread locking up, as it will endlessly try to read from that iterable. This puts us in-line with all other Rx implementations. To work around this, it is probably best to usemapor some combination ofmapandzip. For example,zip(source$, iterator)could besource$.pipe(map(value => [value, iterator.next().value])). -
Subscription:
addno longer returns an unnecessary Subscription reference. This was done to prevent confusion caused by a legacy behavior. You can now add and remove functions and Subscriptions as teardowns to and from aSubscriptionusingaddandremovedirectly. Before this,removeonly accepted subscriptions. -
RxJS Error types Tests that are written with naive expectations against errors may fail now that errors have a proper
stackproperty. In some testing frameworks, a deep equality check on two error instances will check the values instack, which could be different. -
Undocumented Behaviors/APIs Removed:
unsubscribeno longer available via thethiscontext of observer functions. To reenable, setconfig.useDeprecatedNextContext = trueon the rxjsconfigfound atimport { config } from 'rxjs';. Note that enabling this will result in a performance penalty for all consumer subscriptions.- Leaked implementation detail
_unsubscribeAndRecycleofSubscriberhas been removed. Just use newSubscriptionobjects - Removed an undocumented behavior where passing a negative count argument to
retrywould result in an observable that repeats forever. - An undocumented behavior where passing a negative count argument to
repeatwould result in an observable that repeats forever. - The static
sortActionsmethod onVirtualTimeScheduleris no longer publicly exposed by our TS types.
-
throwError: In an extreme corner case for usage,
throwErroris no longer able to emit a function as an error directly. If you need to push a function as an error, you will have to use the factory function to return the function like so:throwError(() => functionToEmit), in other wordsthrowError(() => () => console.log('called later')).
v7.0.0-beta.4
Bug Fixes
- ajax: Partial observers passed to
progressSubscriberwill no longer error (25d279f) - ajax: Unparsable responses will no longer prevent full AjaxError from being thrown (605ee55)
- animationFrames: emit the timestamp from the rAF's callback (#5438) (c980ae6)
- Ensure unsubscriptions/teardowns on internal subscribers are idempotent (#5465) (3e39749), closes #5464
- timeout: defer error creation until timeout occurs (#5497) (3be9840), closes #5491
Code Refactoring
- ajax: Drop support for IE10 and lower (0eaadd6)
- Observable: Update property and method types (#5572) (144b626)
Features
- combineLatest: support for observable dictionaries (#5022) (#5363) (f5278aa)
- TestScheduler: add an animate "run mode" helper (#5607) (edd6731)
- timeout: One timeout to rule them all (def1d34)
BREAKING CHANGES
- ajax: In an extreme corner-case... If an error occurs, the responseType is
"json", we're in IE, and theresponseTypeis not valid JSON, theajaxobservable will no longer emit a syntax error, rather it will emit a fullAjaxErrorwith more details. - ajax: Ajax implementation drops support for IE10 and lower. This puts us in-line with other implementations and helps clean up code in this area
- Observable:
liftno longer exposed. It was NEVER documented that end users of the library should be creating operators usinglift. Lift has a variety of issues and was always an internal implementation detail of rxjs that might have been used by a few power users in the early days when it had the most value. The value oflift, originally, was that subclassedObservables would compose through all operators that implemented lift. The reality is that feature is not widely known, used, or supported, and it was never documented as it was very experimental when it was first added. Until the end of v7,liftwill remain on Observable. Standard JavaScript users will notice no difference. However, TypeScript users might see complaints aboutliftnot being a member of observable. To workaround this issue there are two things you can do: 1. Rewrite your operators as outlined in the documentation, such that they returnnew Observable. or 2. cast your observable asanyand accessliftthat way. Method 1 is recommended if you do not want things to break when we move to version 8.
v7.0.0-beta.3
Bug Fixes
- perf: Ensure unsubscriptions/teardowns on internal subscribers are idempotent (#5465) (3e39749), closes #5464
- timeout: defer error creation until timeout occurs (#5497) (3be9840), closes #5491
Code Refactoring
- perf: Reduce memory pressure by no longer retaining outer values across the majority of operators. (#5610) (bff1827)
- Observable: Update property and method types (#5572) (144b626)
Features
BREAKING CHANGES
- Observable:
liftno longer exposed. It was never documented that end users of the library should be creating operators usinglift. Lift has a variety of issues and was always an internal implementation detail of rxjs that might have been used by a few power users in the early days when it had the most value. The value oflift, originally, was that subclassedObservables would compose through all operators that implemented lift. The reality is that feature is not widely known, used, or supported, and it was never documented as it was very experimental when it was first added. Until the end of v7,liftwill remain on Observable. Standard JavaScript users will notice no difference. However, TypeScript users might see complaints aboutliftnot being a member of observable. To workaround this issue there are two things you can do: 1. Rewrite your operators as outlined in the documentation, such that they returnnew Observable. or 2. cast your observable asanyand accessliftthat way. It is recommended that operators be implemented in terms of functions that return(sourcc: Observable<T>) => new Observable<R>(...), per the documentation/guide.
v7.0.0-beta.2
Bug Fixes
v7.0.0-beta.1
Bug Fixes
- pluck: operator breaks with null/undefined inputs. (#5524) (c5f6550)
- shareReplay: no longer misses synchronous values from source (92452cc)
- interop: chain interop/safe subscriber unsubscriptions correctly (#5472) (98ad0eb), closes #5469 #5311 #2675
- finalize: chain subscriptions for interop with finalize (#5239) (04ba662), closes #5237 #5237
- animationFrameScheduler: don't execute rescheduled animation frame and asap actions in flush (#5399) (33c9c8c), closes #4972 #5397
- iterables: errors thrown from iterables now properly propagated (#5444) (75d4c2f)
- finalize: callback will be called after the source observable is torn down. (0d7b7c1), closes #5357
- Notification: typing improvements (#5478) (96868ac)
- TestScheduler: support empty subscription marbles (#5502) (e65696e), closes #5499
- expand: now works properly with asynchronous schedulers (294b27e)
- subscribeOn: allow Infinity as valid delay (#5500) (cd7d649)
- Subject: resolve issue where Subject constructor errantly allowed an argument (#5476) (e1d35dc)
- Subject: no default generic (e678e81)
- defer: No longer allows
() => undefinedto observableFactory (#5449) (1ae937a), closes #5449 - single: Corrected behavior for
single(() => false)on empty observables. (#5325) (27931bc), closes #5325 - take/takeLast: Properly assert number types at runtime (#5326) (5efc474), closes #5326
Features
- Observable: Remove async iteration (#5492) (8f43e71)
- groupBy: Add typeguards support for groupBy (#5441) (da382da)
- raceWith: add raceWith, the renamed
raceoperator (#5303) (ca7f370) - fetch: add selector (#5306) (99b5af1), closes #4744
- TimestampProvider: Reduced scheduler footprint for default usage of shareReplay, timeInterval, and timestamp (#4973) (b2e67e3)
BREAKING CHANGES
-
Notification.createNext(undefined)will no longer return the exact same reference everytime. -
Type signatures tightened up around
Notificationanddematerialize, may uncover issues with invalid types passed to those operators. -
Experimental support for
for awaitas been removed. Use https://github.com/benlesh/rxjs-for-await instead. -
deferno longer allows factories to returnvoidorundefined. All factories passed to defer must return a properObservableInput, such asObservable,Promise, et al. To get the same behavior as you may have relied on previously,return EMPTYorreturn of()from the factory. -
singleoperator will now throw for scenarios where values coming in are either not present, or do not match the provided predicate. Error types have thrown have also been updated, please check documentation for changes. -
takeand will now throw runtime error for arguments that are negative or NaN, this includes non-TS calls liketake(). -
takeLastnow has runtime assertions that throwTypeErrors for invalid arguments. Calling takeLast without arguments or with an argument that isNaNwill throw aTypeError -
ReplaySubjectno longer schedules emissions when a scheduler is provided. If you need that behavior, please compose inobserveOnusingpipe, for example:new ReplaySubject(2, 3000).pipe(observeOn(asap)) -
timestampoperator accepts aTimestampProvider, which is any object with anowmethod that returns a number. This means pulling in less code for the use of thetimestampoperator. This may cause issues withTestSchedulerrun mode. (Issue here: ReactiveX#5553)
v7.0.0-beta.0
Bug Fixes
- mergeMapTo: remove redundant/unused generic (#5299) (d67b7da)
- ajax: AjaxTimeoutErrorImpl extends AjaxError (#5226) (a8da8dc)
- delay: emit complete notification as soon as possible (63b8797), closes #4249
- endWith: will properly type N arguments (#5246) (81ee1f7)
- fetch: don't leak event listeners added to passed-in signals (#5305) (d4d6c47)
- TestScheduler: Subclassing TestScheduler needs RunHelpers (#5138) (927d5d9)
- pipe: Special handling for 0-arg case. (#4936) (290fa51)
- pluck: fix pluck's catch-all signature for better type safety (#5192) (e0c5b7c)
- pluck: param type now accepts number and symbol (9697b69)
- startWith: accepts N arguments and returns correct type (#5247) (150ed8b)
- combineLatestWith: and zipWith infer types from n-arguments (#5257) (3e282a5)
- race: support N args in static race and ensure observable returned (#5286) (6d901cb)
- toPromise: correct toPromise return type (#5072) (b1c3573)
- fromFetch: don't reassign closed-over parameter in fromFetch (#5234) (37d2d99), closes #5233 #5233
Features
- add
lastValueFromandfirstValueFrommethods (#5295) (e69b765) - RxJS now supports first-class interop with AsyncIterables (4fa9d01)
- combineLatestWith: adds
combineLatestWith- renamed legacycombineLatestoperator (#5251) (6d7b146) - retry: add config to reset error count on successful emission (#5280) (ab6e9fc)
- zipWith: add
zipWithwhich is just a rename of legacyzipoperator (#5249) (86b6a27)
BREAKING CHANGES
- startWith:
startWithwill return incorrect types when called with more than 7 arguments and a scheduler. Passing scheduler to startWith is deprecated - toPromise: toPromise return type now returns
T | undefinedin TypeScript, which is correct, but may break builds.
v7.0.0-alpha.1
Bug Fixes
- chain subscriptions from observables that belong to other instances of RxJS (e.g. in node_modules) (#5059) (d7f7078)
- clear subscription on
shareReplaycompletion (#5044) (35e600f), closes #5034 - closure: Annotate next() for ReplaySubject (#5088) (8687fbd)
- closure: static prop frameTimeFactor being collapsed when compiled with closure. (39872c9)
- docs: remove repetitive op3() in example (#5043) (e17df33)
- filter: Fix overload order for filter to support inferring the generic type (#5024) (8255365)
- fromFetch: passing already aborted signal to init aborts fetch (0e4849a)
Features
v7.0.0-alpha.0
Bug Fixes
- missing package.json in rxjs/fetch (#5001) (f4bee07)
- filter: Resolve TS build failures for certain situations where Boolean is the predicate (77c7dfd)
- pluck: key union type strictness (#4585) (bd5ec2d)
- race: ignore latter sources after first complete or error (#4809) (f31c3df), closes #4808
- scan/reduce: Typings correct for mixed seed/value types (#4858) (b89ebe5)
- scheduled: import from relative paths (#4832) (1d37a87)
- TS: Error impls now properly type
this(#4978) (7606dc7) - TS: fix type inference for defaultIfEmpty. (#4833) (9b5ce2f)
- types: add Boolean signature to filter (#4961) (259853e), closes #4959 /github.com/ReactiveX/rxjs/issues/4959#issuecomment-520629091
Features
- animationFrames: Adds an observable of animationFrames (#5021) (6a4cd68)
- concat: can infer N types (6c0cbc4)
- of: Update of typings (e8adbb5)
- rxjs-compat: removed for v7 (#4839) (79b1b95)
- TestScheduler: expose
frameTimeFactorproperty (#4977) (8c32ed0) - TS: Update to TypeScript 3.5.3 (741a136)
BREAKING CHANGES
- concat: Generic signature changed. Recommend not explicitly passing generics, just let inference do its job. If you must, cast with
as. - of: Generic signature changed, do not specify generics, allow them to be inferred or use
as - of: Use with more than 9 arguments, where the last argument is a
SchedulerLikemay result in the wrong type which includes theSchedulerLike, even though the run time implementation does not support that. Developers should be usingscheduledinstead - TS: RxJS requires TS 3.5
- rxjs-compat:
rxjs/Rxis no longer a valid import site. - rxjs-compat:
rxjs-compatis not published for v7 (yet) - race:
race()will no longer subscribe to subsequent observables if a provided source synchronously errors or completes. This means side effects that might have occurred during subscription in those rare cases will no longer occur.
6.5.3 (2019-09-03)
Bug Fixes
- general: Refactor modules so they don't show side effects in some tools (#4769) (9829c5e0)
- defer: restrict allowed factory types (#4835) (40a22096)
6.5.2 (2019-05-10)
Bug Fixes
- endWith: wrap args - they are not observables - in of before concatenating (#4735) (986be2f)
- forkJoin: test for object literal (#4741) (c11e1b3), closes #4737 #4737
- Notification: replace const enum (#4556) (e460eec), closes #4538
- of: remove deprecation comment to prevent false positive warning (#4724) (da69c16)
- pairwise: make it recursion-proof (#4743) (21ab261)
- scan: fixed declarations to properly support different return types (#4598) (126d2b6)
- Subscription: Return Empty when teardown === null (#4575) (ffc4e68)
- throttleTime: emit single value with trailing enabled (#4564) (fd690a6), closes #2859 #4491
- umd: export fetch namespace (#4738) (7926122)
- fromFetch: don't abort if fetch resolves (#4742 (ed8d771)
6.5.1 (2019-04-23)
Bug Fixes
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.