Skip to content

Commit d39d99a

Browse files
feat(no-unsupported): support Node 20.18.0 (#374)
1 parent 8a8104e commit d39d99a

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const { READ } = require("@eslint-community/eslint-utils")
77
*/
88
const common_objects = {
99
Network: {
10-
requestWillBeSent: { [READ]: { experimental: ["22.6.0"] } },
11-
responseReceived: { [READ]: { experimental: ["22.6.0"] } },
12-
loadingFinished: { [READ]: { experimental: ["22.6.0"] } },
13-
loadingFailed: { [READ]: { experimental: ["22.7.0"] } },
10+
loadingFailed: { [READ]: { experimental: ["22.7.0", "20.18.0"] } },
11+
loadingFinished: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
12+
requestWillBeSent: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
13+
responseReceived: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
1414
},
1515
console: { [READ]: { supported: ["8.0.0"] } },
1616
close: { [READ]: { supported: ["9.0.0"] } },

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const perf_hooks = {
2626
loopExit: { [READ]: { supported: ["8.5.0"] } },
2727
loopStart: { [READ]: { supported: ["8.5.0"] } },
2828
nodeStart: { [READ]: { supported: ["8.5.0"] } },
29-
uvMetricsInfo: { [READ]: { supported: ["22.8.0"] } },
29+
uvMetricsInfo: { [READ]: { supported: ["22.8.0", "20.18.0"] } },
3030
v8Start: { [READ]: { supported: ["8.5.0"] } },
3131
},
3232
now: { [READ]: { supported: ["8.5.0"] } },

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ const test = {
3838
setResolveSnapshotPath: { [READ]: { experimental: ["22.3.0"] } },
3939
},
4040
MockFunctionContext: { [READ]: { supported: ["19.1.0", "18.13.0"] } },
41-
MockModuleContext: { [READ]: { experimental: ["22.3.0"] } },
42-
MockTracker: { [READ]: { supported: ["19.1.0", "18.13.0"] } },
41+
MockModuleContext: { [READ]: { experimental: ["22.3.0", "20.18.0"] } },
42+
MockTracker: {
43+
[READ]: { supported: ["19.1.0", "18.13.0"] },
44+
module: { [READ]: { experimental: ["20.18.0"] } },
45+
},
4346
MockTimers: { [READ]: { experimental: ["20.4.0"], supported: ["23.1.0"] } },
4447
TestsStream: { [READ]: { supported: ["18.9.0", "16.19.0"] } },
4548
TestContext: { [READ]: { supported: ["18.0.0", "16.17.0"] } },

lib/unsupported-features/node-globals.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ const nodeGlobals = {
153153
[READ]: { experimental: ["18.7.0", "16.17.0"], supported: ["23.0.0"] },
154154
},
155155
Event: events.Event,
156+
EventSource: { [READ]: { experimental: ["10.18.0"] } },
156157
EventTarget: events.EventTarget,
157158

158159
// module.perf_hooks

0 commit comments

Comments
 (0)