Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Conversation

@oleg-codaio
Copy link

Closes #792.

Would appreciate a maintainer to verify that this PR works, as I'm not familiar with this package: just trying to fix a deprecation warning a few levels deep into dependencies.

@@ -1,174 +0,0 @@
/**
Copy link
Author

Choose a reason for hiding this comment

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

cls-hooked already handles different versions of Node, so I don't think we need this.

? require('./cls-ah')
: require('continuation-local-storage');
// eslint-disable-next-line no-any
export type Func<T> = (...args: any[]) => T;
Copy link
Author

Choose a reason for hiding this comment

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

Not a huge fan of the no-any bypass here, but I just took this definition from the original continuation-local-storage package. Open to suggestions, though.

@oleg-codaio
Copy link
Author

Yikes, tests failed and looks this needs more work. Could be that this project or a dependency is interfering with queuing (https://github.com/nodejs/diagnostics/blob/master/tracing/AsyncHooks/problematic-modules.md), though I'm not at all familiar with this library and probably won't get to debugging in the near future. If anyone else with more familiarity has any ideas and a motivation to tackle this, please do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency on deprecated continuation-local-storage

2 participants