-
Notifications
You must be signed in to change notification settings - Fork 27k
APF version 16 #49559
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
Closed
Closed
APF version 16 #49559
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Several updates to Angular Package Format. BREAKING CHANGE: Several changes to the Angular Package Format (APF) - Removal of FESM2015 - Replacing ES2020 with ES2022 - Replacing FESM2020 with FESM2022
This commit updates parts of the FW to be ES2022 complaint.
These changes are needed to fix the following problems problems with using properties before they are initialized.
Example
```ts
class Foo {
bar = this.buz;
constructor(private buz: unknown){}
}
```
google-closure-compiler does not support ES2022 (cherry picked from commit 54365418bb8388ffa9b6388ae438e4d6ac4e081d)
These are currently broken due to the APF v16 changes which dropped support for ES2015.
This commit patches `ts_library` to be able to produce `ES2022`. Also, updates the build tsconfig and sets `useDefineForClassFields` to `false` to keep the same behaviour of `ng_module`.
Benchpress requires a decent amount of work to be ES2022 compliant. This will be done in a followup PR.
Contributor
Author
|
Caretaker note: no need for re-approvals as this is an exact re-submit of #49332 |
atscott
approved these changes
Mar 23, 2023
Contributor
|
This PR was merged into the repository by commit 6161c50. |
atscott
pushed a commit
that referenced
this pull request
Mar 23, 2023
This commit updates parts of the FW to be ES2022 complaint.
These changes are needed to fix the following problems problems with using properties before they are initialized.
Example
```ts
class Foo {
bar = this.buz;
constructor(private buz: unknown){}
}
```
PR Close #49559
atscott
pushed a commit
that referenced
this pull request
Mar 23, 2023
google-closure-compiler does not support ES2022 (cherry picked from commit 54365418bb8388ffa9b6388ae438e4d6ac4e081d) PR Close #49559
atscott
pushed a commit
that referenced
this pull request
Mar 23, 2023
These are currently broken due to the APF v16 changes which dropped support for ES2015. PR Close #49559
atscott
pushed a commit
that referenced
this pull request
Mar 23, 2023
This commit patches `ts_library` to be able to produce `ES2022`. Also, updates the build tsconfig and sets `useDefineForClassFields` to `false` to keep the same behaviour of `ng_module`. PR Close #49559
atscott
pushed a commit
that referenced
this pull request
Mar 23, 2023
Benchpress requires a decent amount of work to be ES2022 compliant. This will be done in a followup PR. PR Close #49559
|
大佬好 |
|
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.
Labels
action: merge
The PR is ready for merge by the caretaker
area: build & ci
Related the build and CI infrastructure of the project
detected: breaking change
PR contains a commit with a breaking change
detected: feature
PR contains a feature commit
merge: caretaker note
Alert the caretaker performing the merge to check the PR for an out of normal action needed or note
PullApprove: disable
target: major
This PR is targeted for the next major release
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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several updates to Angular Package Format.
BREAKING CHANGE:
Several changes to the Angular Package Format (APF)
Resubmit of #49332 as it did not causes breakages in G3.
TGP 🟢: http://test/OCL:518773575:BASE:518788596:1679562605010:5c0b8a16