-
Notifications
You must be signed in to change notification settings - Fork 26.3k
fix(core): avoid breaking change with apps using rxjs 6.x #58341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The `rxResource` was using `firstValueFrom` which isn't supported in rxjs 6.x. `@angular/core` currently supports rxjs 6 so we need this to be backwards compatible. This came up when trying to deploy the Material docs site which is still on rxjs 6 ([see](https://github.com/angular/components/actions/runs/11487971079/job/31973721563)).
As v19 is a major release and breaking changes are allowed, it would be better to drop the RxJS v6 support. |
I generally agree about dropping rxjs 6, but from what I remember, we have kept it because the new error behavior in 7 was hugely breaking for a lot of users (internal ones included). Furthermore, since yesterday's release the breaking change window is closed. |
.subscribe({ | ||
next: resolve, | ||
error: reject, | ||
complete: () => reject(new Error('Resource completed before producing a value')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: rxjs raises an EmptyError
here.
This PR was merged into the repository by commit c7342be. The changes were merged into the following branches: main, 19.0.x |
The `rxResource` was using `firstValueFrom` which isn't supported in rxjs 6.x. `@angular/core` currently supports rxjs 6 so we need this to be backwards compatible. This came up when trying to deploy the Material docs site which is still on rxjs 6 ([see](https://github.com/angular/components/actions/runs/11487971079/job/31973721563)). PR Close #58341
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The
rxResource
was usingfirstValueFrom
which isn't supported in rxjs 6.x.@angular/core
currently supports rxjs 6 so we need this to be backwards compatible. This came up when trying to deploy the Material docs site which is still on rxjs 6 (see).