Skip to content

Commit b53f1be

Browse files
update version checks for v16
Ref: nodejs/node#40504
1 parent 3b40365 commit b53f1be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/esm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ export function createEsmHooks(tsNodeService: Service) {
5454
});
5555

5656
// The hooks API changed in node version X so we need to check for backwards compatibility.
57-
// TODO: When the new API is backported to v12, v14, v16, update these version checks accordingly.
57+
// TODO: When the new API is backported to v12, v14, update these version checks accordingly.
5858
const newHooksAPI =
5959
versionGteLt(process.versions.node, '17.0.0') ||
60-
versionGteLt(process.versions.node, '16.999.999', '17.0.0') ||
60+
versionGteLt(process.versions.node, '16.20.0') ||
6161
versionGteLt(process.versions.node, '14.999.999', '15.0.0') ||
6262
versionGteLt(process.versions.node, '12.999.999', '13.0.0');
6363

0 commit comments

Comments
 (0)