Skip to content

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Aug 13, 2024

Includes the following fixes that came up after internal testing of the inject migration.

fix(migrations): preserve optional parameters

Makes it so the inject migration preserves the optional token when declaring a parameter. This came up in some testing as something that can be potentially breaking for classes that implement interfaces.

fix(migrations): avoid duplicating comments when generating properties

Updates the logic that generates new component properties to avoid duplicating their doc strings.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer area: migrations Issues related to `ng update`/`ng generate` migrations target: rc This PR is targeted for the next release-candidate labels Aug 13, 2024
@crisbeto crisbeto requested a review from devversion August 13, 2024 10:22
@ngbot ngbot bot added this to the Backlog milestone Aug 13, 2024
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 13, 2024
@crisbeto crisbeto changed the title fix(migrations): preserve optional parameters Inject migration follow-up fixes Aug 13, 2024
@crisbeto
Copy link
Member Author

I pushed one more commit with a fix for comments that were being duplicated.

Makes it so the inject migration preserves the optional token when declaring a parameter. This came up in some testing as something that can be potentially breaking for classes that implement interfaces.
@crisbeto crisbeto force-pushed the inject-migration-followups branch from 4f0a3d1 to abdafa8 Compare August 13, 2024 16:21
Updates the logic that generates new component properties to avoid duplicating their doc strings.
@crisbeto crisbeto force-pushed the inject-migration-followups branch from abdafa8 to 99993bd Compare August 13, 2024 16:27
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit e4a6198.

The changes were merged into the following branches: main, 18.2.x

AndrewKushnir pushed a commit that referenced this pull request Aug 13, 2024
#57367)

Updates the logic that generates new component properties to avoid duplicating their doc strings.

PR Close #57367
AndrewKushnir pushed a commit that referenced this pull request Aug 13, 2024
Makes it so the inject migration preserves the optional token when declaring a parameter. This came up in some testing as something that can be potentially breaking for classes that implement interfaces.

PR Close #57367
AndrewKushnir pushed a commit that referenced this pull request Aug 13, 2024
#57367)

Updates the logic that generates new component properties to avoid duplicating their doc strings.

PR Close #57367
@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 Sep 13, 2024
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: migrations Issues related to `ng update`/`ng generate` migrations target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants