Skip to content

Merge into main from master #9

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ehsc/cls-context-wrapper",
"version": "1.1.0",
"version": "1.2.0",
"description": "A wrapper of the cls-hooked and node:asynchooks libs to use as middleware",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/context/ContextWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class ContextWrapper {
}

private static createInstance(props: InstanceParams): IContextStrategy {
return semver.gte(process.versions.node, '14.20.0') ? new ContextAsyncHooks(props) : new ContextLegacy(props);
return semver.gte(process.versions.node, '16.17.0') ? new ContextAsyncHooks(props) : new ContextLegacy(props);
}

static destroy(): void {
Expand Down