Skip to content

Conversation

@crisbeto
Copy link
Member

Updates the project to support TypeScript 5.0 and to resolve any errors that came up as a result of the update.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: major This PR is targeted for the next major release area: compiler Issues related to `ngc`, Angular's template compiler labels Feb 17, 2023
@crisbeto crisbeto added this to the v16-candidates milestone Feb 17, 2023
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Feb 17, 2023
@crisbeto crisbeto force-pushed the ts-5 branch 2 times, most recently from 1793668 to c050f3b Compare February 17, 2023 10:25
@crisbeto crisbeto marked this pull request as ready for review February 17, 2023 11:15
@pullapprove pullapprove bot requested review from alxhub and devversion February 17, 2023 11:15
@crisbeto
Copy link
Member Author

Passing TGP

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM, just a few small questions on additional context.

Copy link
Member

Choose a reason for hiding this comment

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

Does this mean that the source mappings are incorrect? well, I guess, they were a little incorrect anyway if they included the \n}\n?

Copy link
Member Author

Choose a reason for hiding this comment

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

tbh, I'm not sure, as you said a correct mapping wouldn't include the newlines. It's possible that this is just how our testing utilities work.

Copy link
Member

Choose a reason for hiding this comment

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

Is there any context on this change? (if you recall, can be in the comment here)

Copy link
Member Author

Choose a reason for hiding this comment

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

The internal typings changed from readonly NONE: number to readonly NONE: 0 so our mock had to be updated as well.

Copy link
Member

Choose a reason for hiding this comment

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

Just picking this place for the comment: Are there things we need to keep in mind with the decorator changes. i.e. when applications don't have --experimentalDecorators=true? https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#differences-with-experimental-legacy-decorators

Copy link
Member Author

Choose a reason for hiding this comment

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

For the moment if apps disable experimentalDecorators, they'll get a compilation error on parameter decorators before the code even reaches our compiler. I think that eventually we'll have a schematic to move apps away from constructor injection.

Updates the project to support TypeScript 5.0 and to resolve any errors that came up as a result of the update.
@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 Feb 28, 2023
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit 99d874f.

@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 Mar 31, 2023
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: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime detected: feature PR contains a feature commit 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