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

Use util.promisify instead of Bluebird.promisify #3470

Merged
merged 2 commits into from Oct 15, 2019

Conversation

maximelkin
Copy link
Collaborator

fixes #3257

@maximelkin
Copy link
Collaborator Author

Not sure what to do with Bluebird.promisifyAll in https://github.com/tgriesser/knex/blob/master/lib/dialects/oracle/index.js#L85

@kibertoad kibertoad closed this Oct 9, 2019
@kibertoad kibertoad reopened this Oct 9, 2019
@lorefnon
Copy link
Collaborator

node-oracle hasn't been updated since 2016 and is deprecated in favor of node-oracledb. Support for it can perhaps just be dropped.

@maximelkin maximelkin closed this Oct 12, 2019
@maximelkin maximelkin reopened this Oct 12, 2019
return bluebird
.promisify(fs.stat, { context: fs })(dir)
.catch(() => bluebird.promisify(mkdirp)(dir));
return promisify(fs.stat)(dir).catch(() => promisify(mkdirp)(dir));
Copy link
Collaborator

Choose a reason for hiding this comment

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

{ context: fs } part is irrelevant?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, but i cant find it in official docs or changelogs
only this example
https://nodejs.org/docs/latest-v8.x/api/util.html#util_util_promisify_original

@kibertoad
Copy link
Collaborator

Bunch of conflicts came up.

@kibertoad kibertoad merged commit 5317148 into knex:master Oct 15, 2019
@kibertoad
Copy link
Collaborator

Thanks!

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.

[Bluebird] Replace bluebird.promisify with util.promisify
3 participants