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 mz with custom promisified wrappers #140

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

TrySound
Copy link
Contributor

@TrySound TrySound commented Jul 1, 2020

util.promisify is supported since node v8
https://nodejs.org/api/util.html#util_util_promisify_original

fs.access is supported since 0.11 and recommended for checking file
existence.
https://nodejs.org/api/fs.html#fs_fs_access_path_mode_callback

Btw node v10 has const { promises: fs } = require('fs') support

util.promisify is supported since node v8
https://nodejs.org/api/util.html#util_util_promisify_original

fs.access is supported since 0.11 and recommended for checking file
existence.
https://nodejs.org/api/fs.html#fs_fs_access_path_mode_callback
Copy link
Member

@3imed-jaberi 3imed-jaberi left a comment

Choose a reason for hiding this comment

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

LGTM 🚀..

@niftylettuce, @dead-horse !!

@niftylettuce niftylettuce merged commit c3218a9 into koajs:master Jul 8, 2020
@niftylettuce
Copy link
Contributor

ping @jonathanong for npm access

npm owner add niftylettuce koa-send

@TrySound TrySound deleted the drop-mz branch July 8, 2020 07:36
@niftylettuce
Copy link
Contributor

v5.0.1 released

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.

3 participants