Skip to content

Commit

Permalink
feat: Node v22.7.0 eslint-community#334
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood authored and aladdin-add committed Oct 9, 2024
1 parent 7343495 commit 37c6bf1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions lib/rules/no-deprecated-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,12 @@ const rawModules = {
},
},
},
nextTick: {
[READ]: {
since: "22.7.0",
replacedBy: "'queueMicrotask()'",
},
},
},
punycode: {
[READ]: {
Expand Down
11 changes: 6 additions & 5 deletions lib/unsupported-features/node-builtins-modules/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ const { READ } = require("@eslint-community/eslint-utils")

/** @type {import('../types.js').SupportVersionTraceMap} */
const common_objects = {
Network: {
requestWillBeSent: { [READ]: { experimental: ["22.6.0"] } },
responseReceived: { [READ]: { experimental: ["22.6.0"] } },
loadingFinished: { [READ]: { experimental: ["22.6.0"] } },
loadingFailed: { [READ]: { experimental: ["22.7.0"] } },
},
console: { [READ]: { supported: ["8.0.0"] } },
close: { [READ]: { supported: ["9.0.0"] } },
open: { [READ]: { supported: ["8.0.0"] } },
Expand All @@ -20,11 +26,6 @@ const promises_api = {
/** @type {import('../types.js').SupportVersionTraceMap} */
const callback_api = {
Session: { [READ]: { supported: ["8.0.0"] } },
Network: {
requestWillBeSent: { [READ]: { experimental: ["22.6.0"] } },
responseReceived: { [READ]: { experimental: ["22.6.0"] } },
loadingFinished: { [READ]: { experimental: ["22.6.0"] } },
},
...common_objects,
}

Expand Down

0 comments on commit 37c6bf1

Please sign in to comment.