-
-
Notifications
You must be signed in to change notification settings - Fork 239
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 fs.exists with fs.stats #836
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@nodify-at Hi!
Sure, go ahead :) |
@magicmatatjahu I create a PR :) Thanks. (#838) |
🎉 This issue has been resolved in version 1.9.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reason/Context
fs.exists function is deprecated (see: https://nodejs.org/docs/latest-v14.x/api/fs.html#fs_fs_exists_path_callback) and it causes to unstable behaviour if used with promisify with async hooks. (see: open-telemetry/opentelemetry-js-contrib#1185)
Description
We can use fs.stat() as it is suggested in node.js official documentation.
This change won't break any functionality, we can release a patch version. I can prepare a PR if it is OK for you :)
The text was updated successfully, but these errors were encountered: