The Wayback Machine - https://web.archive.org/web/20210802233724/https://github.com/angular/angular/pull/42991
Skip to content
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

refactor(core): update peerDependencies to allow rxjs7 #42991

Closed
wants to merge 1 commit into from

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Jul 29, 2021

We can't update the framework to rxjs7 until version 13, because it contains breaking changes, but we can allow users to opt into it since all of our code should be compatible.

These changes expand the allowed version range of rxjs and add an integration test to verify that we don't get compilation errors. Note that we also have a test that runs the AIO examples against rxjs 7 already (#42660).

Fixes #41897.

@google-cla google-cla bot added the cla: yes label Jul 29, 2021
@crisbeto crisbeto marked this pull request as ready for review Jul 29, 2021
@ngbot ngbot bot modified the milestone: Backlog Jul 29, 2021
Copy link
Member

@gkalpak gkalpak left a comment

Not sure if feat is the right commit type. Is that what we've uses for other similar changes in the past?
Otherwise lgtm 👍

integration/typings_test_rxjs7/package.json Outdated Show resolved Hide resolved
},
"files": [
"include-all.ts",
"node_modules/@types/jasmine/index.d.ts"

This comment has been minimized.

@gkalpak

gkalpak Jul 29, 2021
Member

OOC, shouldn't this be in the types list?

This comment has been minimized.

@crisbeto

crisbeto Jul 29, 2021
Author Member

Not sure, I was following the same pattern as the TS tests.

@crisbeto crisbeto force-pushed the crisbeto:41897/optional-rxjs-7 branch from 054e751 to f7a01bd Jul 29, 2021
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

LGTM, thanks @crisbeto 👍

I've just left a comment about EventEmitter. This is not a problem for now since RxJS v7 is an opt-in, but we'd probably need to look at it when we decide to drop RxJS v6 support (in favor of v7).

@@ -187,7 +187,7 @@ describe('property bindings', () => {
})
class OtherDir {
@Input() id: number|undefined;
@Output('click') clickStream = new EventEmitter();
@Output('click') clickStream = new EventEmitter<void>();

This comment has been minimized.

@AndrewKushnir

AndrewKushnir Jul 29, 2021
Contributor

Just curious how break-y that would be for apps code as well and whether we should consider doing a migration (schematic) to simplify the upgrade? That also reminds me of #38916...

This comment has been minimized.

@crisbeto

crisbeto Jul 29, 2021
Author Member

It'll be pretty break-ey, even for our own code, but as you mentioned, it's not a problem for now because version 7 is opt in. I explored it a bit in #41793 which revealed a few other breaking changes.

Copy link
Member

@IgorMinar IgorMinar left a comment

This looks good to me. With all the aio tests running on rxjs 7 would should have enough test coverage to know when things break.

It's going to be really interesting to see how easy it will be for everyone to get from 6 to 7 and collect pain points that we might need to help or resolve before removing v6 support.

Thanks for getting this thought the line.

Reviewed-for: global-approvers

@crisbeto crisbeto changed the title feat(core): update peerDependencies to allow rxjs7 refactor(core): update peerDependencies to allow rxjs7 Aug 2, 2021
@crisbeto crisbeto force-pushed the crisbeto:41897/optional-rxjs-7 branch from f7a01bd to 9bb1042 Aug 2, 2021
We can't update the framework to rxjs7 until version 13, because it contains breaking changes, but we can allow users to opt into it since all of our code should be compatible.

These changes expand the allowed version range of rxjs and add an integration test to verify that we don't get compilation errors. Note that we also have a test that runs the AIO examples against rxjs 7 already (#42660).

Fixes #41897.
@crisbeto crisbeto force-pushed the crisbeto:41897/optional-rxjs-7 branch from 9bb1042 to 445e755 Aug 2, 2021
@atscott atscott closed this in 9a3cf66 Aug 2, 2021
atscott added a commit that referenced this pull request Aug 2, 2021
We can't update the framework to rxjs7 until version 13, because it contains breaking changes, but we can allow users to opt into it since all of our code should be compatible.

These changes expand the allowed version range of rxjs and add an integration test to verify that we don't get compilation errors. Note that we also have a test that runs the AIO examples against rxjs 7 already (#42660).

Fixes #41897.

PR Close #42991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

4 participants