Skip to content

Commit

Permalink
feat(no-unsupported-features): ✨ Update to node v20.12.0/v21.7.0 (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood committed Apr 9, 2024
1 parent 3504227 commit a8d0539
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins-modules/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const crypto = {
getFips: { [READ]: { supported: ["10.0.0"] } },
getHashes: { [READ]: { supported: ["0.9.3"] } },
getRandomValues: { [READ]: { supported: ["17.4.0"] } },
hash: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
hkdf: { [READ]: { supported: ["15.0.0"] } },
hkdfSync: { [READ]: { supported: ["15.0.0"] } },
pbkdf2: { [READ]: { supported: ["0.5.5"] } },
Expand Down
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins-modules/http2.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const http2 = {
getDefaultSettings: { [READ]: { supported: ["8.4.0"] } },
getPackedSettings: { [READ]: { supported: ["8.4.0"] } },
getUnpackedSettings: { [READ]: { supported: ["8.4.0"] } },
performServerHandshake: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
Http2Session: { [READ]: { supported: ["8.4.0"] } },
ServerHttp2Session: { [READ]: { supported: ["8.4.0"] } },
ClientHttp2Session: { [READ]: { supported: ["8.4.0"] } },
Expand Down
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins-modules/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const process = {
},
initgroups: { [READ]: { supported: ["0.9.4"] } },
kill: { [READ]: { supported: ["0.0.6"] } },
loadEnvFile: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
memoryUsage: { [READ]: { supported: ["0.1.16"] } },
rss: { [READ]: { supported: ["15.6.0", "14.18.0"] } },
nextTick: { [READ]: { supported: ["0.1.26"] } },
Expand Down
21 changes: 21 additions & 0 deletions lib/unsupported-features/node-builtins-modules/sea.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"use strict"

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

/** @type {import('../types.js').SupportVersionTraceMap} */
const test = {
isSea: { [READ]: { supported: ["21.7.0", "20.12.0"] } },
getAsset: { [READ]: { supported: ["21.7.0", "20.12.0"] } },
getAssetAsBlob: { [READ]: { supported: ["21.7.0", "20.12.0"] } },
getRawAsset: { [READ]: { supported: ["21.7.0", "20.12.0"] } },
}

test.test = test

/** @type {import('../types.js').SupportVersionTraceMap} */
module.exports = {
"node:sea": {
[READ]: { experimental: ["21.7.0", "20.12.0"] },
...test,
},
}
2 changes: 2 additions & 0 deletions lib/unsupported-features/node-builtins-modules/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const util = {
parseArgs: {
[READ]: { experimental: ["18.3.0", "16.17.0"], supported: ["20.0.0"] },
},
parseEnv: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
stripVTControlCharacters: { [READ]: { supported: ["16.11.0"] } },
styleText: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
toUSVString: { [READ]: { supported: ["16.8.0", "14.18.0"] } },
transferableAbortController: { [READ]: { experimental: ["18.11.0"] } },
transferableAbortSignal: { [READ]: { experimental: ["18.11.0"] } },
Expand Down
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins-modules/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { READ } = require("@eslint-community/eslint-utils")

/** @type {import('../types.js').SupportVersionTraceMap} */
const vm = {
constants: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
compileFunction: { [READ]: { supported: ["10.10.0"] } },
createContext: { [READ]: { supported: ["0.3.1"] } },
isContext: { [READ]: { supported: ["0.11.7"] } },
Expand Down
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const NodeBuiltinModules = {
...require("./node-builtins-modules/punycode.js"),
...require("./node-builtins-modules/querystring.js"),
...require("./node-builtins-modules/readline.js"),
...require("./node-builtins-modules/sea.js"),
...require("./node-builtins-modules/stream.js"),
...require("./node-builtins-modules/string_decoder.js"),
...require("./node-builtins-modules/test.js"),
Expand Down

0 comments on commit a8d0539

Please sign in to comment.