Visitar URL original
refactor(compiler-cli): use semver range checking for partial versions by petebacondarwin · Pull Request #39847 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20210120114051/https://github.com/angular/angular/pull/39847
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(compiler-cli): use semver range checking for partial versions #39847

Closed

Conversation

@petebacondarwin
Copy link
Member

@petebacondarwin petebacondarwin commented Nov 25, 2020

The partial compiler will add a version number to the objects that are
generated so that the linker can select the appropriate partial linker
class to process the metadata.

Previously this version matching was a simple number check. Now
the partial compilation writes the current Angular compiler version
into the generated metadata, and semantic version ranges are used
to select the appropriate partial linker.

@petebacondarwin petebacondarwin requested a review from JoostK Nov 25, 2020
@petebacondarwin petebacondarwin added this to In progress in ng-linker via automation Nov 25, 2020
@ngbot ngbot bot modified the milestone: needsTriage Nov 25, 2020
@google-cla google-cla bot added the cla: yes label Nov 25, 2020
@petebacondarwin petebacondarwin force-pushed the petebacondarwin:linker-sem-ver branch from 62bed75 to d322b56 Nov 25, 2020
@JoostK
JoostK approved these changes Nov 25, 2020
Copy link
Member

@JoostK JoostK left a comment

I knew you would do this one :-)

@petebacondarwin petebacondarwin force-pushed the petebacondarwin:linker-sem-ver branch from d322b56 to 370c950 Nov 26, 2020
@petebacondarwin petebacondarwin moved this from In progress to Reviewer approved in ng-linker Nov 26, 2020
@petebacondarwin
Copy link
Member Author

@petebacondarwin petebacondarwin commented Nov 26, 2020

The presubmit should be a noop, since the only change in G3 related code is this and this in the compiler.

@AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir commented Dec 2, 2020

@AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir commented Dec 2, 2020

FYI, g3 presubmit is successful for the changes in this PR. Thank you.

@petebacondarwin petebacondarwin force-pushed the petebacondarwin:linker-sem-ver branch from 370c950 to 7f9a5f2 Dec 3, 2020
The partial compiler will add a version number to the objects that are
generated so that the linker can select the appropriate partial linker
class to process the metadata.

Previously this version matching was a simple number check. Now
the partial compilation writes the current Angular compiler version
into the generated metadata, and semantic version ranges are used
to select the appropriate partial linker.
@petebacondarwin petebacondarwin force-pushed the petebacondarwin:linker-sem-ver branch from 7f9a5f2 to 0bbb3bc Dec 4, 2020
@AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir commented Dec 4, 2020

@mhevery mhevery closed this in d2042a0 Dec 4, 2020
ng-linker automation moved this from Reviewer approved to Done Dec 4, 2020
@petebacondarwin petebacondarwin deleted the petebacondarwin:linker-sem-ver branch Dec 7, 2020
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Jan 7, 2021

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 Jan 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
ng-linker
  
Done
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.