Skip to content

Commit cb24c66

Browse files
committed
feat: support node 22.16
1 parent bbdceb4 commit cb24c66

File tree

8 files changed

+28
-8
lines changed

8 files changed

+28
-8
lines changed

lib/rules/no-deprecated-api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ const rawModules = {
365365
REPL_MODE_MAGIC: {
366366
[READ]: { since: "8.0.0", replacedBy: null },
367367
},
368+
builtinModules: {
369+
[READ]: { since: "22.16.0", replacedBy: "module.builtinModules" },
370+
},
368371
},
369372
// safe-buffer.Buffer function/constructror is just a re-export of buffer.Buffer
370373
// and should be deprecated likewise.

lib/unsupported-features/node-builtins-modules/events.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const EventEmitterStatic = {
2626
listenerCount: { [READ]: { supported: ["0.9.12"], deprecated: ["3.2.0"] } },
2727
on: { [READ]: { supported: ["13.6.0", "12.16.0"] } },
2828
setMaxListeners: { [READ]: { supported: ["15.4.0"] } },
29-
addAbortListener: { [READ]: { experimental: ["20.5.0", "18.18.0"] } },
29+
addAbortListener: {
30+
[READ]: { experimental: ["20.5.0", "18.18.0"], supported: ["22.16.0"] },
31+
},
3032
}
3133

3234
/**

lib/unsupported-features/node-builtins-modules/process.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ const { READ } = require("@eslint-community/eslint-utils")
77
*/
88
const process = {
99
allowedNodeEnvironmentFlags: { [READ]: { supported: ["10.10.0"] } },
10-
availableMemory: { [READ]: { experimental: ["22.0.0", "20.13.0"] } },
10+
availableMemory: {
11+
[READ]: { experimental: ["22.0.0", "20.13.0"], supported: ["22.16.0"] },
12+
},
1113
arch: { [READ]: { supported: ["0.5.0"] } },
1214
argv: { [READ]: { supported: ["0.1.27"] } },
1315
argv0: { [READ]: { supported: ["6.4.0"] } },
@@ -113,14 +115,18 @@ const process = {
113115

114116
abort: { [READ]: { supported: ["0.7.0"] } },
115117
chdir: { [READ]: { supported: ["0.1.17"] } },
116-
constrainedMemory: { [READ]: { experimental: ["19.6.0", "18.15.0"] } },
118+
constrainedMemory: {
119+
[READ]: { experimental: ["19.6.0", "18.15.0"], supported: ["22.16.0"] },
120+
},
117121
cpuUsage: { [READ]: { supported: ["6.1.0"] } },
118122
cwd: { [READ]: { supported: ["0.1.8"] } },
119123
disconnect: { [READ]: { supported: ["0.7.2"] } },
120124
dlopen: { [READ]: { supported: ["0.1.16"] } },
121125
emitWarning: { [READ]: { supported: ["6.0.0"] } },
122126
exit: { [READ]: { supported: ["0.1.13"] } },
123-
getActiveResourcesInfo: { [READ]: { experimental: ["17.3.0", "16.14.0"] } },
127+
getActiveResourcesInfo: {
128+
[READ]: { experimental: ["17.3.0", "16.14.0"], supported: ["22.16.0"] },
129+
},
124130
getegid: { [READ]: { supported: ["2.0.0"] } },
125131
geteuid: { [READ]: { supported: ["2.0.0"] } },
126132
getgid: { [READ]: { supported: ["0.1.31"] } },

lib/unsupported-features/node-builtins-modules/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const repl = {
3434
[CALL]: { deprecated: ["22.9.0"] },
3535
},
3636
builtinModules: {
37-
[READ]: { supported: ["14.5.0"] },
37+
[READ]: { supported: ["14.5.0"], deprecated: ["22.16.0"] },
3838
},
3939
}
4040

lib/unsupported-features/node-builtins-modules/sqlite.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const sqlite = {
1212
SQLITE_CHANGESET_REPLACE: { [READ]: { supported: ["22.13.0"] } },
1313
SQLITE_CHANGESET_ABORT: { [READ]: { supported: ["22.13.0"] } },
1414
},
15+
backup: { [READ]: { supported: ["22.16.0"] } },
1516
DatabaseSync: { [READ]: { supported: ["22.5.0"] } },
1617
StatementSync: { [READ]: { supported: ["22.5.0"] } },
1718
SQLITE_CHANGESET_OMIT: {

lib/unsupported-features/node-builtins-modules/util.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const types = {
4343
isInt8Array: { [READ]: { supported: ["10.0.0"] } },
4444
isInt16Array: { [READ]: { supported: ["10.0.0"] } },
4545
isInt32Array: { [READ]: { supported: ["10.0.0"] } },
46+
isFloat16Array: { [READ]: { supported: ["22.16.0"] } },
4647
isFloat32Array: { [READ]: { supported: ["10.0.0"] } },
4748
isFloat64Array: { [READ]: { supported: ["10.0.0"] } },
4849
isBigInt64Array: { [READ]: { supported: ["10.0.0"] } },
@@ -123,7 +124,9 @@ const util = {
123124
transferableAbortSignal: {
124125
[READ]: { experimental: ["18.11.0"], supported: ["22.15.0"] },
125126
},
126-
aborted: { [READ]: { experimental: ["19.7.0", "18.16.0"] } },
127+
aborted: {
128+
[READ]: { experimental: ["19.7.0", "18.16.0"], supported: ["22.16.0"] },
129+
},
127130
MIMEType: {
128131
[READ]: { experimental: ["19.1.0", "18.13.0"], supported: ["22.15.0"] },
129132
},

lib/unsupported-features/node-builtins-modules/worker_threads.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ const worker_threads = {
1717
supported: ["17.5.0", "16.15.0"],
1818
},
1919
},
20+
getHeapStatistics: {
21+
[READ]: {
22+
supported: ["22.16.0"],
23+
},
24+
},
2025
markAsUncloneable: { [READ]: { supported: ["23.0.0", "22.10.0"] } },
2126
markAsUntransferable: { [READ]: { supported: ["14.5.0", "12.19.0"] } },
2227
isInternalThread: { [READ]: { supported: ["22.14.0"] } },

lib/unsupported-features/node-import-meta.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const importMeta = {
1414
},
1515
dirname: {
1616
[READ]: {
17-
supported: ["21.2.0", "20.11.0"],
17+
supported: ["21.2.0", "20.11.0", "22.16.0"],
1818
},
1919
},
2020
filename: {
2121
[READ]: {
22-
supported: ["21.2.0", "20.11.0"],
22+
supported: ["21.2.0", "20.11.0", "22.16.0"],
2323
},
2424
},
2525
}

0 commit comments

Comments
 (0)