Skip to content

fix(core): fix typing on injector.get to omit 'any' - #60202

Closed
atscott wants to merge 1 commit into
angular:mainfrom
atscott:removeAnyInjectorGet
Closed

atscott wants to merge 1 commit into
angular:mainfrom
atscott:removeAnyInjectorGet

Conversation

@atscott

@atscott atscott commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

This commit further restricts the deprecated type on injector.get to exclude all but string. Progresses towards #48408

BREAKING CHANGE: The any overload has been removed from injector.get. It now only supports ProviderToken<T> and (deprecated since v4) string.

@atscott atscott added area: core Issues related to the framework runtime target: major This PR is targeted for the next major release requires: TGP This PR requires a passing TGP before merging is allowed labels Mar 4, 2025
@ngbot ngbot Bot modified the milestone: Backlog Mar 4, 2025
@pullapprove pullapprove Bot removed the requires: TGP This PR requires a passing TGP before merging is allowed label Mar 4, 2025
@angular-robot angular-robot Bot added the detected: breaking change PR contains a commit with a breaking change label Mar 4, 2025
@atscott
atscott force-pushed the removeAnyInjectorGet branch from 7d79975 to 2e99fda Compare March 4, 2025 20:12
@atscott
atscott force-pushed the removeAnyInjectorGet branch from 2e99fda to c686345 Compare March 5, 2025 19:00
This commit further restricts the deprecated type on injector.get to exclude
all but `string`. Progresses towards angular#48408

BREAKING CHANGE: The `any` overload has been removed from
`injector.get`. It now only supports `ProviderToken<T>` and (deprecated
since v4) `string`.
@atscott
atscott force-pushed the removeAnyInjectorGet branch from c686345 to 65cd39a Compare March 5, 2025 19:10
@atscott

atscott commented Mar 5, 2025 •

Copy link
Copy Markdown
Contributor Author

TGP is green with 1 fix submitted

@AndrewKushnir AndrewKushnir modified the milestones: Backlog, v20 candidates Mar 6, 2025

@alxhub alxhub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed-for: public-api

@pkozlowski-opensource pkozlowski-opensource left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: public-api

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Mar 10, 2025
@AndrewKushnir

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit ff772d7.

The changes were merged into the following branches: main

@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Apr 10, 2025
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 detected: breaking change PR contains a commit with a breaking change target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants