Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(no-unsupported): Support node 22.3.0 and 20.16.0 #315

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/unsupported-features/node-builtins-modules/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const promises_api = {
chown: { [READ]: { supported: ["10.0.0"] } },
constants: { [READ]: { supported: ["18.4.0", "16.17.0"] } },
copyFile: { [READ]: { supported: ["10.0.0"] } },
cp: { [READ]: { experimental: ["16.7.0"] } },
cp: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
glob: { [READ]: { experimental: ["22.0.0"] } },
lchmod: { [READ]: { supported: ["10.0.0"], deprecated: ["10.0.0"] } },
lchown: { [READ]: { supported: ["10.0.0"] } },
Expand Down Expand Up @@ -47,7 +47,7 @@ const callback_api = {
chown: { [READ]: { supported: ["0.1.97"] } },
close: { [READ]: { supported: ["0.0.2"] } },
copyFile: { [READ]: { supported: ["8.5.0"] } },
cp: { [READ]: { experimental: ["16.7.0"] } },
cp: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
createReadStream: { [READ]: { supported: ["0.1.31"] } },
createWriteStream: { [READ]: { supported: ["0.1.31"] } },
exists: { [READ]: { supported: ["0.0.2"], deprecated: ["1.0.0"] } },
Expand Down Expand Up @@ -104,7 +104,7 @@ const synchronous_api = {
chownSync: { [READ]: { supported: ["0.1.97"] } },
closeSync: { [READ]: { supported: ["0.1.21"] } },
copyFileSync: { [READ]: { supported: ["8.5.0"] } },
cpSync: { [READ]: { experimental: ["16.7.0"] } },
cpSync: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
existsSync: { [READ]: { supported: ["0.1.21"] } },
fchmodSync: { [READ]: { supported: ["0.4.7"] } },
fchownSync: { [READ]: { supported: ["0.4.7"] } },
Expand Down
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins-modules/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const http = {
ServerResponse: { [READ]: { supported: ["0.1.17"] } },
IncomingMessage: { [READ]: { supported: ["0.1.17"] } },
OutgoingMessage: { [READ]: { supported: ["0.1.17"] } },
WebSocket: { [READ]: { supported: ["22.5.0"] } },
}

/** @type {import('../types.js').SupportVersionTraceMap} */
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 @@ -22,6 +22,7 @@ const process = {
registerBeforeExit: { [READ]: { experimental: ["22.5.0"] } },
unregister: { [READ]: { experimental: ["22.5.0"] } },
},
getBuiltinModule: { [READ]: { supported: ["22.3.0", "20.16.0"] } },
mainModule: {
[READ]: {
supported: ["0.1.17"],
Expand Down
6 changes: 6 additions & 0 deletions lib/unsupported-features/node-builtins-modules/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ const test = {
after: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
beforeEach: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
afterEach: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
snapshot: {
[READ]: { experimental: ["22.3.0"] },
setDefaultSnapshotSerializers: { [READ]: { experimental: ["22.3.0"] } },
setResolveSnapshotPath: { [READ]: { experimental: ["22.3.0"] } },
},
MockFunctionContext: { [READ]: { supported: ["19.1.0", "18.13.0"] } },
MockModuleContext: { [READ]: { experimental: ["22.3.0"] } },
MockTracker: { [READ]: { supported: ["19.1.0", "18.13.0"] } },
MockTimers: { [READ]: { experimental: ["20.4.0"] } },
TestsStream: { [READ]: { supported: ["18.9.0", "16.19.0"] } },
Expand Down
2 changes: 1 addition & 1 deletion lib/unsupported-features/node-builtins-modules/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { READ } = require("@eslint-community/eslint-utils")
/** @type {import('../types.js').SupportVersionTraceMap} */
const zlib = {
constants: { [READ]: { supported: ["7.0.0"] } },
crc32: { [READ]: { supported: ["22.2.0"] } },
crc32: { [READ]: { supported: ["22.2.0", "20.15.0"] } },
createBrotliCompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
createBrotliDecompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
createDeflate: { [READ]: { supported: ["0.5.8"] } },
Expand Down
11 changes: 9 additions & 2 deletions lib/unsupported-features/node-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ const nodeGlobals = {
Response: {
[READ]: { experimental: ["17.5.0", "16.15.0"], supported: ["21.0.0"] },
},
Storage: { [READ]: { experimental: ["22.4.0"] } },
WebAssembly: { [READ]: { supported: ["8.0.0"] } },
WebSocket: {
[READ]: { experimental: ["21.0.0", "20.10.0"], supported: ["22.4.0"] },
[READ]: {
experimental: ["21.0.0", "20.10.0"],
supported: ["22.4.0"],
},
},

fetch: {
Expand All @@ -112,6 +114,11 @@ const nodeGlobals = {
},
structuredClone: { [READ]: { supported: ["17.0.0"] } },

// --experimental-webstorage
localStorage: { [READ]: { experimental: ["22.4.0"] } },
sessionStorage: { [READ]: { experimental: ["22.4.0"] } },
Storage: { [READ]: { experimental: ["22.4.0"] } },

// module.buffer
Blob: buffer.Blob,
Buffer: {
Expand Down