refactor(compiler-cli): use semver range checking for partial versions #39847
+463
−373
Conversation
...es/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker.ts
Show resolved
Hide resolved
62bed75
to
d322b56
|
I knew you would do this one :-) |
...es/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker.ts
Show resolved
Hide resolved
d322b56
to
370c950
|
FYI, g3 presubmit is successful for the changes in this PR. Thank you. |
370c950
to
7f9a5f2
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.
7f9a5f2
to
0bbb3bc
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


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.