diff --git a/lib/rules/no-deprecated-api.js b/lib/rules/no-deprecated-api.js index 32efff22..92c03640 100644 --- a/lib/rules/no-deprecated-api.js +++ b/lib/rules/no-deprecated-api.js @@ -330,6 +330,12 @@ const rawModules = { }, }, }, + nextTick: { + [READ]: { + since: "22.7.0", + replacedBy: "'queueMicrotask()'", + }, + }, }, punycode: { [READ]: { diff --git a/lib/unsupported-features/node-builtins-modules/inspector.js b/lib/unsupported-features/node-builtins-modules/inspector.js index 6323e663..f587c149 100644 --- a/lib/unsupported-features/node-builtins-modules/inspector.js +++ b/lib/unsupported-features/node-builtins-modules/inspector.js @@ -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"] } }, @@ -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, }