Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support Node 22.10.0 & 23.0.0
Browse files Browse the repository at this point in the history
MichaelDeBoey committed Oct 17, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent 23d0e84 commit e2d546c
Showing 4 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/unsupported-features/node-builtins-modules/module.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

const { READ } = require("@eslint-community/eslint-utils")
const { CALL, READ } = require("@eslint-community/eslint-utils")

/** @type {import('../types.js').SupportVersionTraceMap} */
const Module = {
@@ -18,6 +18,7 @@ const Module = {
},
},
enableCompileCache: { [READ]: { experimental: ["22.8.0"] } },
flushCompileCache: { [CALL]: { experimental: ["23.0.0", "22.10.0"] } },
getCompileCacheDir: { [READ]: { experimental: ["22.8.0"] } },
isBuiltin: { [READ]: { supported: ["18.6.0", "16.17.0"] } },
register: { [READ]: { experimental: ["20.6.0"] } },
4 changes: 4 additions & 0 deletions lib/unsupported-features/node-builtins-modules/process.js
Original file line number Diff line number Diff line change
@@ -17,6 +17,10 @@ const process = {
execArgv: { [READ]: { supported: ["0.7.7"] } },
execPath: { [READ]: { supported: ["0.1.100"] } },
exitCode: { [READ]: { supported: ["0.11.8"] } },
features: {
require_module: { [READ]: { supported: ["23.0.0", "22.10.0"] } },
typescript: { [READ]: { experimental: ["23.0.0", "22.10.0"] } },
},
finalization: {
register: { [READ]: { experimental: ["22.5.0"] } },
registerBeforeExit: { [READ]: { experimental: ["22.5.0"] } },
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

const { READ } = require("@eslint-community/eslint-utils")
const { CALL, READ } = require("@eslint-community/eslint-utils")

/** @type {import('../types.js').SupportVersionTraceMap} */
const worker_threads = {
@@ -16,6 +16,7 @@ const worker_threads = {
supported: ["17.5.0", "16.15.0"],
},
},
markAsUncloneable: { [CALL]: { supported: ["23.0.0", "22.10.0"] } },
markAsUntransferable: { [READ]: { supported: ["14.5.0", "12.19.0"] } },
isMarkedAsUntransferable: { [READ]: { supported: ["21.0.0"] } },
moveMessagePortToContext: { [READ]: { supported: ["11.13.0"] } },
9 changes: 5 additions & 4 deletions lib/unsupported-features/node-globals.js
Original file line number Diff line number Diff line change
@@ -135,14 +135,15 @@ const nodeGlobals = {
// module.crypto
crypto: {
...crypto.webcrypto,
[READ]: { experimental: ["17.6.0", "16.15.0"] },
[READ]: { experimental: ["17.6.0", "16.15.0"], supported: ["23.0.0"] },
},
Crypto: { [READ]: { experimental: ["17.6.0", "16.15.0"] } },
CryptoKey: { [READ]: { experimental: ["17.6.0", "16.15.0"] } },
Crypto: { [READ]: { experimental: ["17.6.0", "16.15.0"], supported: ["23.0.0"] } },
CryptoKey: { [READ]: { experimental: ["17.6.0", "16.15.0"], supported: ["23.0.0"] } },
SubtleCrypto: { [READ]: { experimental: ["17.6.0", "16.15.0"] } },

// module.events
CustomEvent: events.CustomEvent,
CloseEvent: { [READ]: { supported: ["23.0.0"] } },
CustomEvent: {[READ]: { experimental: ["18.7.0", "16.17.0"], supported: ["23.0.0"] } },
Event: events.Event,
EventTarget: events.EventTarget,

0 comments on commit e2d546c

Please sign in to comment.