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

Replace util.promisify with fs.promises #1290

Merged
merged 2 commits into from
Feb 13, 2021
Merged

Replace util.promisify with fs.promises #1290

merged 2 commits into from
Feb 13, 2021

Conversation

TrySound
Copy link
Member

@TrySound TrySound commented Oct 2, 2020

Node 10 add support for promisified fs methods.
https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_promises_api

In this diff I replaced util.promisify package with the new methods.
Though this requires to bump end-of-life node versions.

@TrySound
Copy link
Member Author

TrySound commented Oct 2, 2020

cc @GreLI

@TrySound
Copy link
Member Author

TrySound commented Oct 8, 2020

Oh, gosh. I just installed util.promisify in clean project and got 8mb in node_modules.

Node 10 add support for promisified fs methods.
https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_promises_api

In this diff I replaced util.promisify package with the new methods.
Though this requires to bump end-of-life node versions.
@TrySound TrySound merged commit 1a35a58 into svg:master Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant