From 2539c9deaa0c339b520dcd45ba4998dca6b678e3 Mon Sep 17 00:00:00 2001 From: Sebastian Good <2230835+scagood@users.noreply.github.com> Date: Wed, 24 Jul 2024 03:02:27 +0100 Subject: [PATCH] feat: Update to node v22.5.0 (#312) --- .../node-builtins-modules/path.js | 1 + .../node-builtins-modules/process.js | 5 +++++ .../node-builtins-modules/sqlite.js | 17 +++++++++++++++++ .../node-builtins-modules/worker_threads.js | 1 + 4 files changed, 24 insertions(+) create mode 100644 lib/unsupported-features/node-builtins-modules/sqlite.js diff --git a/lib/unsupported-features/node-builtins-modules/path.js b/lib/unsupported-features/node-builtins-modules/path.js index e0456255..0a2e5c3b 100644 --- a/lib/unsupported-features/node-builtins-modules/path.js +++ b/lib/unsupported-features/node-builtins-modules/path.js @@ -10,6 +10,7 @@ const path = { dirname: { [READ]: { supported: ["0.1.16"] } }, extname: { [READ]: { supported: ["0.1.25"] } }, format: { [READ]: { supported: ["0.11.15"] } }, + matchesGlob: { [READ]: { experimental: ["22.5.0"] } }, isAbsolute: { [READ]: { supported: ["0.11.2"] } }, join: { [READ]: { supported: ["0.1.16"] } }, normalize: { [READ]: { supported: ["0.1.23"] } }, diff --git a/lib/unsupported-features/node-builtins-modules/process.js b/lib/unsupported-features/node-builtins-modules/process.js index bd8b81bf..75127134 100644 --- a/lib/unsupported-features/node-builtins-modules/process.js +++ b/lib/unsupported-features/node-builtins-modules/process.js @@ -17,6 +17,11 @@ const process = { execArgv: { [READ]: { supported: ["0.7.7"] } }, execPath: { [READ]: { supported: ["0.1.100"] } }, exitCode: { [READ]: { supported: ["0.11.8"] } }, + finalization: { + register: { [READ]: { experimental: ["22.5.0"] } }, + registerBeforeExit: { [READ]: { experimental: ["22.5.0"] } }, + unregister: { [READ]: { experimental: ["22.5.0"] } }, + }, mainModule: { [READ]: { supported: ["0.1.17"], diff --git a/lib/unsupported-features/node-builtins-modules/sqlite.js b/lib/unsupported-features/node-builtins-modules/sqlite.js new file mode 100644 index 00000000..694fe60a --- /dev/null +++ b/lib/unsupported-features/node-builtins-modules/sqlite.js @@ -0,0 +1,17 @@ +"use strict" + +const { READ } = require("@eslint-community/eslint-utils") + +/** @type {import('../types.js').SupportVersionTraceMap} */ +const sqlite = { + DatabaseSync: { [READ]: { supported: ["22.5.0"] } }, + StatementSync: { [READ]: { supported: ["22.5.0"] } }, +} + +/** @type {import('../types.js').SupportVersionTraceMap} */ +module.exports = { + "node:sqlite": { + [READ]: { experimental: ["22.5.0"] }, + ...sqlite, + }, +} diff --git a/lib/unsupported-features/node-builtins-modules/worker_threads.js b/lib/unsupported-features/node-builtins-modules/worker_threads.js index 5129ff78..28c7f5d8 100644 --- a/lib/unsupported-features/node-builtins-modules/worker_threads.js +++ b/lib/unsupported-features/node-builtins-modules/worker_threads.js @@ -19,6 +19,7 @@ const worker_threads = { markAsUntransferable: { [READ]: { supported: ["14.5.0", "12.19.0"] } }, isMarkedAsUntransferable: { [READ]: { supported: ["21.0.0"] } }, moveMessagePortToContext: { [READ]: { supported: ["11.13.0"] } }, + postMessageToThread: { [READ]: { experimental: ["22.5.0"] } }, receiveMessageOnPort: { [READ]: { supported: ["12.3.0"] } }, setEnvironmentData: { [READ]: {