Skip to content

[12.2.x] build(docs-infra): update Angular framework/Material to version 12.2.8 - #43687

Closed
gkalpak wants to merge 6 commits into
angular:12.2.xfrom
gkalpak:12.2.x-build-aio-update-angular
Closed

gkalpak wants to merge 6 commits into
angular:12.2.xfrom
gkalpak:12.2.x-build-aio-update-angular

Conversation

@gkalpak

@gkalpak gkalpak commented Oct 2, 2021 •

Copy link
Copy Markdown
Member

See individual commits for details.

This is the equivalent of #43686, but for the 12.2.x branch.

Fixes #28114.

…ovide intellisense

Add an appropriate `$schema` property in `ngsw-config.template.json` to
allow IDEs to provide intellisense about the various fields of the
config.
Prefix error messages with the Angular version currently used in the
angular.io app. This applies to both errors logged to the console and
reported to Google Analytics and makes debugging certain errors easier.
@gkalpak gkalpak added state: WIP area: build & ci Related the build and CI infrastructure of the project refactoring Issue that involves refactoring or code-cleanup comp: docs-infra target: patch This PR is targeted for the next patch release labels Oct 2, 2021
@gkalpak gkalpak added this to the docs-infra-aio-app milestone Oct 2, 2021
@google-cla google-cla Bot added the cla: yes label Oct 2, 2021
@gkalpak gkalpak changed the title build(docs-infra): update Angular framework/Material to version 12.2.8 [12.2.x] build(docs-infra): update Angular framework/Material to version 12.2.8 Oct 2, 2021
@mary-poppins

Copy link
Copy Markdown

@gkalpak
gkalpak force-pushed the 12.2.x-build-aio-update-angular branch from 6f46d15 to 15a734a Compare October 2, 2021 22:07
@mary-poppins

Copy link
Copy Markdown

This commit updates angular.io to the latest stable version of the
Angular framework (v12.2.8). Among other benefits, this version also
includes the ServiceWorker fix from angular#43518, which fixes angular#28114.

NOTE:
This commit also makes the necessary changes to more closely align
angular.io with new apps created with the latest stable Angular CLI.

Fixes angular#28114
@gkalpak
gkalpak force-pushed the 12.2.x-build-aio-update-angular branch from 15a734a to 4667157 Compare October 2, 2021 22:35
@mary-poppins

Copy link
Copy Markdown

@gkalpak
gkalpak force-pushed the 12.2.x-build-aio-update-angular branch from 4667157 to e0b106f Compare October 3, 2021 06:14
This commit updates angular.io to the latest stable version of Angular
CDK/Material (v12.2.8).

NOTE:
The payload size changes in styles are not entriely caused by this
commit, since the limits where outdated. The actual size changes caused
by this commit are ~100B per theme:
- `light-theme`: 79217 --> 79320
- `dark-theme`:  79116 --> 79216
@gkalpak gkalpak added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Oct 3, 2021
@gkalpak
gkalpak marked this pull request as ready for review October 3, 2021 06:22
@pullapprove
pullapprove Bot requested review from jelbourn and zarend October 3, 2021 06:22
@mary-poppins

Copy link
Copy Markdown

…ministic

As explained in angular#43679, currently the generation of the `ngsw.json` SW
manifest is non-deterministic and often incorrect. Until we can update
to an `@angular/service-worker` version that includes the fix from
PR angular#43679, we temporarily work-around the issue by re-generating the
`ngsw.json` manifest after `ng build` using the `ngsw-config` binary
exposed by `@angular/service-worker`.

NOTE:
This works around the issue, because the [FileSystem][1] class used by
the `ngsw-config` binary happens to be synchronous (unlike the
implementation provided by the Angular CLI), thus avoiding the race
conditions described in angular#43679.

[1]: https://github.com/angular/angular/blob/c721135e370b34c840756bcfb22c8119b4c8c452/packages/service-worker/cli/filesystem.ts#L15
@mary-poppins

Copy link
Copy Markdown

@pullapprove
pullapprove Bot requested a review from jessicajaniuk October 3, 2021 14:33
Comment thread goldens/size-tracking/aio-payloads.json Outdated
"uncompressed": {
"runtime-es2017": 4841,
"main-es2017": 462975,
"main-es2017": 463310,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any idea what change in the Angular CLI causes this bump to the size?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nope 😃 But it's not necessarily the CLI. It could also be some change in the Angular framework packages (between v12.1.1 and v12.2.8). It didn't look like a significant enough change for me to look into in more detail 😅

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed-for: size-tracking

@mary-poppins

Copy link
Copy Markdown

@jessicajaniuk jessicajaniuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🍪

reviewed-for: size-tracking

@gkalpak gkalpak 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 Oct 5, 2021
@dylhunn

dylhunn commented Oct 5, 2021

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 307da62.

@dylhunn dylhunn closed this Oct 5, 2021
dylhunn pushed a commit that referenced this pull request Oct 5, 2021
…ovide intellisense (#43687)

Add an appropriate `$schema` property in `ngsw-config.template.json` to
allow IDEs to provide intellisense about the various fields of the
config.

PR Close #43687
dylhunn pushed a commit that referenced this pull request Oct 5, 2021
…#43687)

Prefix error messages with the Angular version currently used in the
angular.io app. This applies to both errors logged to the console and
reported to Google Analytics and makes debugging certain errors easier.

PR Close #43687
dylhunn pushed a commit that referenced this pull request Oct 5, 2021
This commit updates angular.io to the latest stable version of the
Angular framework (v12.2.8). Among other benefits, this version also
includes the ServiceWorker fix from #43518, which fixes #28114.

NOTE:
This commit also makes the necessary changes to more closely align
angular.io with new apps created with the latest stable Angular CLI.

Fixes #28114

PR Close #43687
dylhunn pushed a commit that referenced this pull request Oct 5, 2021
This commit updates angular.io to the latest stable version of Angular
CDK/Material (v12.2.8).

NOTE:
The payload size changes in styles are not entriely caused by this
commit, since the limits where outdated. The actual size changes caused
by this commit are ~100B per theme:
- `light-theme`: 79217 --> 79320
- `dark-theme`:  79116 --> 79216

PR Close #43687
dylhunn pushed a commit that referenced this pull request Oct 5, 2021
…ministic (#43687)

As explained in #43679, currently the generation of the `ngsw.json` SW
manifest is non-deterministic and often incorrect. Until we can update
to an `@angular/service-worker` version that includes the fix from
PR #43679, we temporarily work-around the issue by re-generating the
`ngsw.json` manifest after `ng build` using the `ngsw-config` binary
exposed by `@angular/service-worker`.

NOTE:
This works around the issue, because the [FileSystem][1] class used by
the `ngsw-config` binary happens to be synchronous (unlike the
implementation provided by the Angular CLI), thus avoiding the race
conditions described in #43679.

[1]: https://github.com/angular/angular/blob/c721135e370b34c840756bcfb22c8119b4c8c452/packages/service-worker/cli/filesystem.ts#L15

PR Close #43687
@gkalpak
gkalpak deleted the 12.2.x-build-aio-update-angular branch October 5, 2021 17:15
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Nov 5, 2021
Serginho pushed a commit to TuLotero/angular that referenced this pull request Jan 20, 2022
…ovide intellisense (angular#43687)

Add an appropriate `$schema` property in `ngsw-config.template.json` to
allow IDEs to provide intellisense about the various fields of the
config.

PR Close angular#43687
Serginho pushed a commit to TuLotero/angular that referenced this pull request Jan 20, 2022
…angular#43687)

Prefix error messages with the Angular version currently used in the
angular.io app. This applies to both errors logged to the console and
reported to Google Analytics and makes debugging certain errors easier.

PR Close angular#43687
Serginho pushed a commit to TuLotero/angular that referenced this pull request Jan 20, 2022
…r#43687)

This commit updates angular.io to the latest stable version of the
Angular framework (v12.2.8). Among other benefits, this version also
includes the ServiceWorker fix from angular#43518, which fixes angular#28114.

NOTE:
This commit also makes the necessary changes to more closely align
angular.io with new apps created with the latest stable Angular CLI.

Fixes angular#28114

PR Close angular#43687
Serginho pushed a commit to TuLotero/angular that referenced this pull request Jan 20, 2022
…#43687)

This commit updates angular.io to the latest stable version of Angular
CDK/Material (v12.2.8).

NOTE:
The payload size changes in styles are not entriely caused by this
commit, since the limits where outdated. The actual size changes caused
by this commit are ~100B per theme:
- `light-theme`: 79217 --> 79320
- `dark-theme`:  79116 --> 79216

PR Close angular#43687
Serginho pushed a commit to TuLotero/angular that referenced this pull request Jan 20, 2022
…ministic (angular#43687)

As explained in angular#43679, currently the generation of the `ngsw.json` SW
manifest is non-deterministic and often incorrect. Until we can update
to an `@angular/service-worker` version that includes the fix from
PR angular#43679, we temporarily work-around the issue by re-generating the
`ngsw.json` manifest after `ng build` using the `ngsw-config` binary
exposed by `@angular/service-worker`.

NOTE:
This works around the issue, because the [FileSystem][1] class used by
the `ngsw-config` binary happens to be synchronous (unlike the
implementation provided by the Angular CLI), thus avoiding the race
conditions described in angular#43679.

[1]: https://github.com/angular/angular/blob/c721135e370b34c840756bcfb22c8119b4c8c452/packages/service-worker/cli/filesystem.ts#L15

PR Close angular#43687
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 cla: yes refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants