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(@angular-devkit/build-angular): use Node.js promise fs API in service-worker augmentation #20518

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

clydin
Copy link
Member

@clydin clydin commented Apr 14, 2021

With the minimum version of Node.js now set to v12, the promise fs API can now be leveraged within the tooling.
This change also uses copyFile (with copy-on-write where available) to setup the the service worker files as well a streaming APIs to generate service worker hashes. Both of which improves performance and reduces memory usage.

@clydin clydin added the target: major This PR is targeted for the next major release label Apr 14, 2021
@google-cla google-cla bot added the cla: yes label Apr 14, 2021
@clydin clydin force-pushed the core/cleanup-service-worker branch from eb960b5 to ec26831 Compare April 14, 2021 00:53
…n service-worker augmentation

With the minimum version of Node.js now set to v12, the promise fs API can now be leveraged within the tooling.
This change also uses `copyFile` (with copy-on-write where available) to setup the the service worker files as well a streaming APIs to generate service worker hashes. Both of which improves performance and reduces memory usage.
@clydin clydin force-pushed the core/cleanup-service-worker branch from ec26831 to fa18319 Compare April 14, 2021 13:16
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Apr 14, 2021
@clydin clydin merged commit d3bc530 into angular:master Apr 14, 2021
@clydin clydin deleted the core/cleanup-service-worker branch April 14, 2021 14:17
@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 May 15, 2021
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 target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants