-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
ALS is deprecated and archived, Better to use AsyncLocalStorage class fom the async_hook std module #148
Comments
Check out the underlying library that we use, it already uses ALS when supported by used Node version. |
As far as I can see if is part of node 14. So i agree, we can replace this dependency with the built in. Can you provide a PR? |
This is not an issue, but I struggled to integrate the |
This plugin works with any lifecycle phase, and does not use the library that you mentioned. |
node 14 is the minimum requirement. |
I will create a PR then |
I think there's a mix up between @kibertoad's The It's probably time to drop |
Yeah, I was planning to do that for quite a while. PR would be welcome |
@kibertoad PR for which of the two?
|
The second one. |
While bumping Fastify major is hard, bumping an individual package is easy. There are good reasons to bump this package major version and drop Node.js v14. |
I'm making a PR |
Fixes fastify#148 Signed-off-by: Pelle Wessman <pelle@kodfabrik.se>
Fixes fastify#148 Signed-off-by: Pelle Wessman <pelle@kodfabrik.se>
https://github.com/vicanso/async-local-storage is archived.
Working Example with the native
AsyncLocalStorage
:you can start using get and set function to access the store
The text was updated successfully, but these errors were encountered: