Visitar URL original
perf(core): remove support for the deprecated `WrappedValue` by JoostK · Pull Request #43507 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20240209223202/https://github.com/angular/angular/pull/43507
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

perf(core): remove support for the deprecated WrappedValue #43507

Closed
wants to merge 2 commits into from

Conversation

JoostK
Copy link
Member

@JoostK JoostK commented Sep 18, 2021

This commit removes the WrappedValue public API from @angular/core
which was deprecated in Angular 10 without replacement.

BREAKING CHANGE:

The WrappedValue class can no longer be imported from @angular/core,
which may result in compile errors or failures at runtime if outdated
libraries are used that are still using WrappedValue. The usage of
WrappedValue should be removed as no replacement is available.

@JoostK JoostK added breaking changes area: core Issues related to the framework runtime target: major This PR is targeted for the next major release labels Sep 18, 2021
@ngbot ngbot bot added this to the Backlog milestone Sep 18, 2021
@google-cla google-cla bot added the cla: yes label Sep 18, 2021
@JoostK JoostK marked this pull request as ready for review September 20, 2021 21:45
@JoostK JoostK added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 20, 2021
@AndrewKushnir
Copy link
Contributor

AndrewKushnir commented Sep 21, 2021 •

Presubmit + Global Presubmit.

@AndrewKushnir AndrewKushnir added the action: presubmit The PR is in need of a google3 presubmit label Sep 21, 2021
Copy link
Contributor

@atscott atscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch! Totally forgot that we deprecated that.

LGTM. As I recall, there were a couple places in g3 that used WrappedValue that we'll need to update.

@AndrewKushnir
Copy link
Contributor

@JoostK quick update: there is a couple places in Google's codebase where we need to do some cleanup (someone relies on the WrappedValue symbol) before we can land the change. The cleanup is mostly mechanical, so we should be able to do that quickly.

Could you please rebase this PR and resolve merge conflicts, so we can rerun tests if needed?

Thank you.

@JoostK JoostK force-pushed the remove-wrapped-value branch 2 times, most recently from 78e2a3f to edbbb88 Compare September 22, 2021 15:42
@JoostK
Copy link
Member Author

JoostK commented Sep 22, 2021

@AndrewKushnir rebased!

@AndrewKushnir AndrewKushnir self-assigned this Sep 23, 2021
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This is a great cleanup! Thank you, @JoostK. ❤️

Reviewed-for: public-api, global-approvers

aio/content/guide/deprecations.md Show resolved Hide resolved
goldens/public-api/core/core.md Outdated Show resolved Hide resolved
@IgorMinar IgorMinar added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Sep 24, 2021
@JoostK JoostK removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Sep 24, 2021
@JoostK JoostK force-pushed the remove-wrapped-value branch 2 times, most recently from 38c37aa to 1b0374d Compare September 27, 2021 19:53
@AndrewKushnir
Copy link
Contributor

Global Presubmit #2 (with cleanup).

@AndrewKushnir AndrewKushnir removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 30, 2021
@AndrewKushnir AndrewKushnir removed the request for review from alxhub September 30, 2021 04:05
@AndrewKushnir
Copy link
Contributor

FYI, global presubmit with the cleanup looks good. Once all the changes in Google's codebase land, we should be able to proceed with merging this PR. Thank you.

This commit removes the `WrappedValue` public API from `@angular/core`
which was deprecated in Angular 10 without replacement.

BREAKING CHANGE:

The `WrappedValue` class can no longer be imported from `@angular/core`,
which may result in compile errors or failures at runtime if outdated
libraries are used that are still using `WrappedValue`. The usage of
`WrappedValue` should be removed as no replacement is available.
@AndrewKushnir AndrewKushnir removed action: presubmit The PR is in need of a google3 presubmit breaking changes labels Sep 30, 2021
@AndrewKushnir
Copy link
Contributor

FYI I've started one more presubmit to make sure there are no new regressions (should have results in ~1hr).

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker action: presubmit The PR is in need of a google3 presubmit labels Sep 30, 2021
@AndrewKushnir AndrewKushnir added merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed state: blocked action: presubmit The PR is in need of a google3 presubmit labels Sep 30, 2021
@AndrewKushnir
Copy link
Contributor

Note to Caretaker: cleanup in g3 is completed, TGP is green for this PR. If there are any regressions reported in g3, let's see if we can fix them forward (please reach out to me). Thank you.

@dylhunn dylhunn closed this in 8878183 Oct 1, 2021
JoostK added a commit to JoostK/angular that referenced this pull request Oct 2, 2021
A rebase of angular#43507 seems to have inadvertently dropped the note about
the removed `WrappedValue` API from the deprecations page, so this
commit reintroduces the text.
AndrewKushnir pushed a commit that referenced this pull request Oct 15, 2021
A rebase of #43507 seems to have inadvertently dropped the note about
the removed `WrappedValue` API from the deprecations page, so this
commit reintroduces the text.

PR Close #43685
AndrewKushnir pushed a commit that referenced this pull request Oct 15, 2021
A rebase of #43507 seems to have inadvertently dropped the note about
the removed `WrappedValue` API from the deprecations page, so this
commit reintroduces the text.

PR Close #43685
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime breaking changes cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants