Skip to content

Commit

Permalink
feat(no-unsupported): Support node 23.0.0 and 22.10.0 (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Oct 18, 2024
1 parent 23d0e84 commit 0fd0350
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins-modules/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const Module = {
},
},
enableCompileCache: { [READ]: { experimental: ["22.8.0"] } },
flushCompileCache: { [READ]: { 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"] } },
Expand Down
4 changes: 4 additions & 0 deletions lib/unsupported-features/node-builtins-modules/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"] } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const worker_threads = {
supported: ["17.5.0", "16.15.0"],
},
},
markAsUncloneable: { [READ]: { 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"] } },
Expand Down
15 changes: 11 additions & 4 deletions lib/unsupported-features/node-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,21 @@ 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"], supported: ["23.0.0"] },
},
CryptoKey: {
[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"] } },
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,

Expand Down

0 comments on commit 0fd0350

Please sign in to comment.