Skip to content

Commit 73e2bed

Browse files
authoredJul 26, 2024··
feat(no-unsupported): Support node 22.3.0 and 20.16.0 (#315)
feat(no-unsupported): Support node 20.16.0
1 parent 2539c9d commit 73e2bed

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed
 

‎lib/unsupported-features/node-builtins-modules/fs.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const promises_api = {
1111
chown: { [READ]: { supported: ["10.0.0"] } },
1212
constants: { [READ]: { supported: ["18.4.0", "16.17.0"] } },
1313
copyFile: { [READ]: { supported: ["10.0.0"] } },
14-
cp: { [READ]: { experimental: ["16.7.0"] } },
14+
cp: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
1515
glob: { [READ]: { experimental: ["22.0.0"] } },
1616
lchmod: { [READ]: { supported: ["10.0.0"], deprecated: ["10.0.0"] } },
1717
lchown: { [READ]: { supported: ["10.0.0"] } },
@@ -47,7 +47,7 @@ const callback_api = {
4747
chown: { [READ]: { supported: ["0.1.97"] } },
4848
close: { [READ]: { supported: ["0.0.2"] } },
4949
copyFile: { [READ]: { supported: ["8.5.0"] } },
50-
cp: { [READ]: { experimental: ["16.7.0"] } },
50+
cp: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
5151
createReadStream: { [READ]: { supported: ["0.1.31"] } },
5252
createWriteStream: { [READ]: { supported: ["0.1.31"] } },
5353
exists: { [READ]: { supported: ["0.0.2"], deprecated: ["1.0.0"] } },
@@ -104,7 +104,7 @@ const synchronous_api = {
104104
chownSync: { [READ]: { supported: ["0.1.97"] } },
105105
closeSync: { [READ]: { supported: ["0.1.21"] } },
106106
copyFileSync: { [READ]: { supported: ["8.5.0"] } },
107-
cpSync: { [READ]: { experimental: ["16.7.0"] } },
107+
cpSync: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
108108
existsSync: { [READ]: { supported: ["0.1.21"] } },
109109
fchmodSync: { [READ]: { supported: ["0.4.7"] } },
110110
fchownSync: { [READ]: { supported: ["0.4.7"] } },

‎lib/unsupported-features/node-builtins-modules/http.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const http = {
2020
ServerResponse: { [READ]: { supported: ["0.1.17"] } },
2121
IncomingMessage: { [READ]: { supported: ["0.1.17"] } },
2222
OutgoingMessage: { [READ]: { supported: ["0.1.17"] } },
23+
WebSocket: { [READ]: { supported: ["22.5.0"] } },
2324
}
2425

2526
/** @type {import('../types.js').SupportVersionTraceMap} */

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

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const process = {
2222
registerBeforeExit: { [READ]: { experimental: ["22.5.0"] } },
2323
unregister: { [READ]: { experimental: ["22.5.0"] } },
2424
},
25+
getBuiltinModule: { [READ]: { supported: ["22.3.0", "20.16.0"] } },
2526
mainModule: {
2627
[READ]: {
2728
supported: ["0.1.17"],

‎lib/unsupported-features/node-builtins-modules/test.js

+6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ const test = {
3030
after: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
3131
beforeEach: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
3232
afterEach: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
33+
snapshot: {
34+
[READ]: { experimental: ["22.3.0"] },
35+
setDefaultSnapshotSerializers: { [READ]: { experimental: ["22.3.0"] } },
36+
setResolveSnapshotPath: { [READ]: { experimental: ["22.3.0"] } },
37+
},
3338
MockFunctionContext: { [READ]: { supported: ["19.1.0", "18.13.0"] } },
39+
MockModuleContext: { [READ]: { experimental: ["22.3.0"] } },
3440
MockTracker: { [READ]: { supported: ["19.1.0", "18.13.0"] } },
3541
MockTimers: { [READ]: { experimental: ["20.4.0"] } },
3642
TestsStream: { [READ]: { supported: ["18.9.0", "16.19.0"] } },

‎lib/unsupported-features/node-builtins-modules/zlib.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { READ } = require("@eslint-community/eslint-utils")
55
/** @type {import('../types.js').SupportVersionTraceMap} */
66
const zlib = {
77
constants: { [READ]: { supported: ["7.0.0"] } },
8-
crc32: { [READ]: { supported: ["22.2.0"] } },
8+
crc32: { [READ]: { supported: ["22.2.0", "20.15.0"] } },
99
createBrotliCompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
1010
createBrotliDecompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
1111
createDeflate: { [READ]: { supported: ["0.5.8"] } },

‎lib/unsupported-features/node-globals.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ const nodeGlobals = {
8989
Response: {
9090
[READ]: { experimental: ["17.5.0", "16.15.0"], supported: ["21.0.0"] },
9191
},
92-
Storage: { [READ]: { experimental: ["22.4.0"] } },
9392
WebAssembly: { [READ]: { supported: ["8.0.0"] } },
9493
WebSocket: {
95-
[READ]: { experimental: ["21.0.0", "20.10.0"], supported: ["22.4.0"] },
94+
[READ]: {
95+
experimental: ["21.0.0", "20.10.0"],
96+
supported: ["22.4.0"],
97+
},
9698
},
9799

98100
fetch: {
@@ -112,6 +114,11 @@ const nodeGlobals = {
112114
},
113115
structuredClone: { [READ]: { supported: ["17.0.0"] } },
114116

117+
// --experimental-webstorage
118+
localStorage: { [READ]: { experimental: ["22.4.0"] } },
119+
sessionStorage: { [READ]: { experimental: ["22.4.0"] } },
120+
Storage: { [READ]: { experimental: ["22.4.0"] } },
121+
115122
// module.buffer
116123
Blob: buffer.Blob,
117124
Buffer: {

0 commit comments

Comments
 (0)
Please sign in to comment.