diff --git a/lib/node-modules/assert.js b/lib/node-modules/assert.js new file mode 100644 index 00000000..b5d99048 --- /dev/null +++ b/lib/node-modules/assert.js @@ -0,0 +1,62 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const assert = { + assert: { [READ]: { supported: ["0.5.9"] } }, + deepEqual: { [READ]: { supported: ["0.1.21"] } }, + deepStrictEqual: { [READ]: { supported: ["1.2.0"] } }, + doesNotMatch: { + [READ]: { + experimental: ["13.6.0", "12.16.0"], + supported: ["16.0.0"], + }, + }, + doesNotReject: { [READ]: { supported: ["10.0.0"] } }, + doesNotThrow: { [READ]: { supported: ["0.1.21"] } }, + equal: { [READ]: { supported: ["0.1.21"] } }, + fail: { [READ]: { supported: ["0.1.21"] } }, + ifError: { [READ]: { supported: ["0.1.97"] } }, + match: { + [READ]: { + experimental: ["13.6.0", "12.16.0"], + supported: ["16.0.0"], + }, + }, + notDeepEqual: { [READ]: { supported: ["0.1.21"] } }, + notDeepStrictEqual: { [READ]: { supported: ["1.2.0"] } }, + notEqual: { [READ]: { supported: ["0.1.21"] } }, + notStrictEqual: { [READ]: { supported: ["0.1.21"] } }, + ok: { [READ]: { supported: ["0.1.21"] } }, + rejects: { [READ]: { supported: ["10.0.0"] } }, + strictEqual: { [READ]: { supported: ["0.1.21"] } }, + throws: { [READ]: { supported: ["0.1.21"] } }, + CallTracker: { + [READ]: { + experimental: ["14.2.0", "12.19.0"], + deprecated: ["20.1.0"], + }, + }, +} + +assert.strict = { + [READ]: { supported: ["9.9.0", "8.13.0"] }, + ...assert, +} + +module.exports = { + assert: { + [READ]: { supported: ["0.1.21"] }, + ...assert, + }, + "node:assert": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...assert, + }, + "assert/strict": { + [READ]: { supported: ["15.0.0"] }, + ...assert.strict, + }, + "node:assert/strict": { + [READ]: { supported: ["15.0.0"] }, + ...assert.strict, + }, +} diff --git a/lib/node-modules/async_hooks.js b/lib/node-modules/async_hooks.js new file mode 100644 index 00000000..309ee6fa --- /dev/null +++ b/lib/node-modules/async_hooks.js @@ -0,0 +1,31 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const async_hooks = { + createHook: { [READ]: { supported: ["8.1.0"] } }, + executionAsyncResource: { [READ]: { supported: ["13.9.0", "12.17.0"] } }, + executionAsyncId: { [READ]: { supported: ["8.1.0"] } }, + triggerAsyncId: { [READ]: { supported: ["8.1.0"] } }, + AsyncLocalStorage: { + [READ]: { + experimental: ["13.10.0", "12.17.0"], + supported: ["16.4.0"], + }, + }, + AsyncResource: { + [READ]: { + experimental: ["9.6.0", "8.12.0"], + supported: ["16.4.0"], + }, + }, +} + +module.exports = { + async_hooks: { + [READ]: { supported: ["8.1.0"] }, + ...async_hooks, + }, + "node:async_hooks": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...async_hooks, + }, +} diff --git a/lib/node-modules/buffer.js b/lib/node-modules/buffer.js new file mode 100644 index 00000000..4e9bd8cc --- /dev/null +++ b/lib/node-modules/buffer.js @@ -0,0 +1,55 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const buffer = { + constants: { + [READ]: { supported: ["8.2.0"] }, + MAX_LENGTH: { [READ]: { supported: ["8.2.0"] } }, + MAX_STRING_LENGTH: { [READ]: { supported: ["8.2.0"] } }, + }, + INSPECT_MAX_BYTES: { [READ]: { supported: ["0.5.4"] } }, + kMaxLength: { [READ]: { supported: ["3.0.0"] } }, + kStringMaxLength: { [READ]: { supported: ["3.0.0"] } }, + atob: { [READ]: { supported: ["15.13.0", "14.17.0"] } }, + btoa: { [READ]: { supported: ["15.13.0", "14.17.0"] } }, + isAscii: { [READ]: { supported: ["19.6.0", "18.15.0"] } }, + isUtf8: { [READ]: { supported: ["19.4.0", "18.14.0"] } }, + resolveObjectURL: { [READ]: { experimental: ["16.7.0"] } }, + transcode: { [READ]: { supported: ["7.1.0"] } }, + SlowBuffer: { [READ]: { supported: ["0.1.90"], deprecated: ["6.0.0"] } }, + Blob: { + [READ]: { + experimental: ["15.7.0", "14.18.0"], + supported: ["18.0.0", "16.17.0"], + }, + }, + Buffer: { + [READ]: { supported: ["0.1.90"] }, + alloc: { [READ]: { supported: ["5.10.0", "4.5.0"] } }, + allocUnsafe: { [READ]: { supported: ["5.10.0", "4.5.0"] } }, + allocUnsafeSlow: { [READ]: { supported: ["5.12.0", "4.5.0"] } }, + byteLength: { [READ]: { supported: ["0.1.90"] } }, + compare: { [READ]: { supported: ["0.11.13"] } }, + concat: { [READ]: { supported: ["0.7.11"] } }, + copyBytesFrom: { [READ]: { supported: ["19.8.0", "18.16.0"] } }, + from: { [READ]: { supported: ["5.10.0", "4.5.0"] } }, + isBuffer: { [READ]: { supported: ["0.1.101"] } }, + isEncoding: { [READ]: { supported: ["0.9.1"] } }, + }, + File: { + [READ]: { + experimental: ["19.2.0", "18.13.0"], + supported: ["20.0.0"], + }, + }, +} + +module.exports = { + buffer: { + [READ]: { supported: ["0.1.90"] }, + ...buffer, + }, + "node:buffer": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...buffer, + }, +} diff --git a/lib/node-modules/child_process.js b/lib/node-modules/child_process.js new file mode 100644 index 00000000..52872700 --- /dev/null +++ b/lib/node-modules/child_process.js @@ -0,0 +1,23 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const child_process = { + exec: { [READ]: { supported: ["0.1.90"] } }, + execFile: { [READ]: { supported: ["0.1.91"] } }, + fork: { [READ]: { supported: ["0.5.0"] } }, + spawn: { [READ]: { supported: ["0.1.90"] } }, + execFileSync: { [READ]: { supported: ["0.11.12"] } }, + execSync: { [READ]: { supported: ["0.11.12"] } }, + spawnSync: { [READ]: { supported: ["0.11.12"] } }, + ChildProcess: { [READ]: { supported: ["2.2.0"] } }, +} + +module.exports = { + child_process: { + [READ]: { supported: ["0.1.90"] }, + ...child_process, + }, + "node:child_process": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...child_process, + }, +} diff --git a/lib/node-modules/cluster.js b/lib/node-modules/cluster.js new file mode 100644 index 00000000..7fc735e4 --- /dev/null +++ b/lib/node-modules/cluster.js @@ -0,0 +1,27 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const cluster = { + isMaster: { [READ]: { supported: ["0.8.1"], deprecated: ["16.0.0"] } }, + isPrimary: { [READ]: { supported: ["16.0.0"] } }, + isWorker: { [READ]: { supported: ["0.6.0"] } }, + schedulingPolicy: { [READ]: { supported: ["0.11.2"] } }, + settings: { [READ]: { supported: ["0.7.1"] } }, + worker: { [READ]: { supported: ["0.7.0"] } }, + workers: { [READ]: { supported: ["0.7.0"] } }, + disconnect: { [READ]: { supported: ["0.7.7"] } }, + fork: { [READ]: { supported: ["0.6.0"] } }, + setupMaster: { [READ]: { supported: ["0.7.1"], deprecated: ["16.0.0"] } }, + setupPrimary: { [READ]: { supported: ["16.0.0"] } }, + Worker: { [READ]: { supported: ["0.7.0"] } }, +} + +module.exports = { + cluster: { + [READ]: { supported: ["0.7.0"] }, + ...cluster, + }, + "node:cluster": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...cluster, + }, +} diff --git a/lib/node-modules/console.js b/lib/node-modules/console.js new file mode 100644 index 00000000..00569423 --- /dev/null +++ b/lib/node-modules/console.js @@ -0,0 +1,38 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const console = { + profile: { [READ]: { supported: ["8.0.0"] } }, + profileEnd: { [READ]: { supported: ["8.0.0"] } }, + timeStamp: { [READ]: { supported: ["8.0.0"] } }, + Console: { [READ]: { supported: ["0.1.100"] } }, + assert: { [READ]: { supported: ["0.1.101"] } }, + clear: { [READ]: { supported: ["8.3.0"] } }, + count: { [READ]: { supported: ["8.3.0"] } }, + countReset: { [READ]: { supported: ["8.3.0"] } }, + debug: { [READ]: { supported: ["8.0.0"] } }, + dir: { [READ]: { supported: ["0.1.101"] } }, + dirxml: { [READ]: { supported: ["8.0.0"] } }, + error: { [READ]: { supported: ["0.1.100"] } }, + group: { [READ]: { supported: ["8.5.0"] } }, + groupCollapsed: { [READ]: { supported: ["8.5.0"] } }, + groupEnd: { [READ]: { supported: ["8.5.0"] } }, + info: { [READ]: { supported: ["0.1.100"] } }, + log: { [READ]: { supported: ["0.1.100"] } }, + table: { [READ]: { supported: ["10.0.0"] } }, + time: { [READ]: { supported: ["0.1.104"] } }, + timeEnd: { [READ]: { supported: ["0.1.104"] } }, + timeLog: { [READ]: { supported: ["10.7.0"] } }, + trace: { [READ]: { supported: ["0.1.104"] } }, + warn: { [READ]: { supported: ["0.1.100"] } }, +} + +module.exports = { + console: { + [READ]: { supported: ["0.1.100"] }, + ...console, + }, + "node:console": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...console, + }, +} diff --git a/lib/node-modules/crypto.js b/lib/node-modules/crypto.js new file mode 100644 index 00000000..ce40f7f8 --- /dev/null +++ b/lib/node-modules/crypto.js @@ -0,0 +1,101 @@ +const { READ } = require("@eslint-community/eslint-utils") + +// TODO: https://nodejs.org/docs/latest/api/webcrypto.html + +const crypto = { + constants: { [READ]: { supported: ["6.3.0"] } }, + fips: { [READ]: { supported: ["6.0.0"], deprecated: ["10.0.0"] } }, + webcrypto: { [READ]: { experimental: ["15.0.0"], supported: ["19.0.0"] } }, + subtle: { [READ]: { experimental: ["17.4.0"], supported: ["19.0.0"] } }, + + // methods and properties + checkPrime: { [READ]: { supported: ["15.8.0"] } }, + checkPrimeSync: { [READ]: { supported: ["15.8.0"] } }, + createCipher: { [READ]: { supported: ["0.1.94"], deprecated: ["10.0.0"] } }, + createCipheriv: { [READ]: { supported: ["0.1.94"] } }, + createDecipher: { + [READ]: { supported: ["0.1.94"], deprecated: ["10.0.0"] }, + }, + createDecipheriv: { [READ]: { supported: ["0.1.94"] } }, + createDiffieHellman: { [READ]: { supported: ["0.11.12"] } }, + createDiffieHellmanGroup: { [READ]: { supported: ["0.9.3"] } }, + createECDH: { [READ]: { supported: ["0.11.14"] } }, + createHash: { [READ]: { supported: ["0.1.92"] } }, + createHmac: { [READ]: { supported: ["0.1.94"] } }, + createPrivateKey: { [READ]: { supported: ["11.6.0"] } }, + createPublicKey: { [READ]: { supported: ["11.6.0"] } }, + createSecretKey: { [READ]: { supported: ["11.6.0"] } }, + createSign: { [READ]: { supported: ["0.1.92"] } }, + createVerify: { [READ]: { supported: ["0.1.92"] } }, + diffieHellman: { [READ]: { supported: ["13.9.0", "12.17.0"] } }, + generateKey: { [READ]: { supported: ["15.0.0"] } }, + generateKeyPair: { [READ]: { supported: ["10.12.0"] } }, + generateKeyPairSync: { [READ]: { supported: ["10.12.0"] } }, + generateKeySync: { [READ]: { supported: ["15.0.0"] } }, + generatePrime: { [READ]: { supported: ["15.8.0"] } }, + generatePrimeSync: { [READ]: { supported: ["15.8.0"] } }, + getCipherInfo: { [READ]: { supported: ["15.0.0"] } }, + getCiphers: { [READ]: { supported: ["0.9.3"] } }, + getCurves: { [READ]: { supported: ["2.3.0"] } }, + getDiffieHellman: { [READ]: { supported: ["0.7.5"] } }, + getFips: { [READ]: { supported: ["10.0.0"] } }, + getHashes: { [READ]: { supported: ["0.9.3"] } }, + getRandomValues: { [READ]: { supported: ["17.4.0"] } }, + hkdf: { [READ]: { supported: ["15.0.0"] } }, + hkdfSync: { [READ]: { supported: ["15.0.0"] } }, + pbkdf2: { [READ]: { supported: ["0.5.5"] } }, + pbkdf2Sync: { [READ]: { supported: ["0.9.3"] } }, + privateDecrypt: { [READ]: { supported: ["0.11.14"] } }, + privateEncrypt: { [READ]: { supported: ["1.1.0"] } }, + publicDecrypt: { [READ]: { supported: ["1.1.0"] } }, + publicEncrypt: { [READ]: { supported: ["0.11.14"] } }, + randomBytes: { [READ]: { supported: ["0.5.8"] } }, + randomFillSync: { [READ]: { supported: ["7.10.0", "6.13.0"] } }, + randomFill: { [READ]: { supported: ["7.10.0", "6.13.0"] } }, + randomInt: { [READ]: { supported: ["14.10.0", "12.19.0"] } }, + randomUUID: { [READ]: { supported: ["15.6.0", "14.17.0"] } }, + scrypt: { [READ]: { supported: ["10.5.0"] } }, + scryptSync: { [READ]: { supported: ["10.5.0"] } }, + secureHeapUsed: { [READ]: { supported: ["15.6.0"] } }, + setEngine: { [READ]: { supported: ["0.11.11"] } }, + setFips: { [READ]: { supported: ["10.0.0"] } }, + sign: { [READ]: { supported: ["12.0.0"] } }, + timingSafeEqual: { [READ]: { supported: ["6.6.0"] } }, + verify: { [READ]: { supported: ["12.0.0"] } }, + + // Classes + Certificate: { + [READ]: { supported: ["0.11.8"] }, + exportChallenge: { [READ]: { supported: ["9.0.0"] } }, + exportPublicKey: { [READ]: { supported: ["9.0.0"] } }, + verifySpkac: { [READ]: { supported: ["9.0.0"] } }, + }, + Cipher: { [READ]: { supported: ["0.1.94"] } }, + Decipher: { [READ]: { supported: ["0.1.94"] } }, + DiffieHellman: { [READ]: { supported: ["0.5.0"] } }, + DiffieHellmanGroup: { [READ]: { supported: ["0.7.5"] } }, + ECDH: { + [READ]: { supported: ["0.11.14"] }, + convertKey: { [READ]: { supported: ["10.0.0"] } }, + }, + Hash: { [READ]: { supported: ["0.1.92"] } }, + Hmac: { [READ]: { supported: ["0.1.94"] } }, + KeyObject: { + [READ]: { supported: ["11.6.0"] }, + from: { [READ]: { supported: ["15.0.0"] } }, + }, + Sign: { [READ]: { supported: ["0.1.92"] } }, + Verify: { [READ]: { supported: ["0.1.92"] } }, + X509Certificate: { [READ]: { supported: ["15.6.0"] } }, +} + +module.exports = { + crypto: { + [READ]: { supported: ["0.1.92"] }, + ...crypto, + }, + "node:crypto": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...crypto, + }, +} diff --git a/lib/node-modules/dgram.js b/lib/node-modules/dgram.js new file mode 100644 index 00000000..412ff2b3 --- /dev/null +++ b/lib/node-modules/dgram.js @@ -0,0 +1,17 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const dgram = { + createSocket: { [READ]: { supported: ["0.1.99"] } }, + Socket: { [READ]: { supported: ["0.1.99"] } }, +} + +module.exports = { + dgram: { + [READ]: { supported: ["0.1.99"] }, + ...dgram, + }, + "node:dgram": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...dgram, + }, +} diff --git a/lib/node-modules/diagnostics_channel.js b/lib/node-modules/diagnostics_channel.js new file mode 100644 index 00000000..113b58e6 --- /dev/null +++ b/lib/node-modules/diagnostics_channel.js @@ -0,0 +1,28 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const diagnostics_channel = { + hasSubscribers: { [READ]: { supported: ["15.1.0", "14.17.0"] } }, + channel: { [READ]: { supported: ["15.1.0", "14.17.0"] } }, + subscribe: { [READ]: { supported: ["18.7.0", "16.17.0"] } }, + unsubscribe: { [READ]: { supported: ["18.7.0", "16.17.0"] } }, + tracingChannel: { [READ]: { experimental: ["19.9.0"] } }, + Channel: { [READ]: { supported: ["15.1.0", "14.17.0"] } }, + TracingChannel: { [READ]: { experimental: ["19.9.0"] } }, +} + +module.exports = { + diagnostics_channel: { + [READ]: { + experimental: ["15.1.0", "14.17.0"], + supported: ["19.2.0", "18.13.0"], + }, + ...diagnostics_channel, + }, + "node:diagnostics_channel": { + [READ]: { + experimental: ["15.1.0", "14.17.0"], + supported: ["19.2.0", "18.13.0"], + }, + ...diagnostics_channel, + }, +} diff --git a/lib/node-modules/dns.js b/lib/node-modules/dns.js new file mode 100644 index 00000000..6c9686b7 --- /dev/null +++ b/lib/node-modules/dns.js @@ -0,0 +1,62 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const dns = { + Resolver: { [READ]: { supported: ["8.3.0"] } }, + getServers: { [READ]: { supported: ["0.11.3"] } }, + lookup: { [READ]: { supported: ["0.1.90"] } }, + lookupService: { [READ]: { supported: ["0.11.14"] } }, + resolve: { [READ]: { supported: ["0.1.27"] } }, + resolve4: { [READ]: { supported: ["0.1.16"] } }, + resolve6: { [READ]: { supported: ["0.1.16"] } }, + resolveAny: { [READ]: { supported: ["0.1.16"] } }, + resolveCname: { [READ]: { supported: ["0.3.2"] } }, + resolveCaa: { [READ]: { supported: ["15.0.0", "14.17.0"] } }, + resolveMx: { [READ]: { supported: ["0.1.27"] } }, + resolveNaptr: { [READ]: { supported: ["0.9.12"] } }, + resolveNs: { [READ]: { supported: ["0.1.90"] } }, + resolvePtr: { [READ]: { supported: ["6.0.0"] } }, + resolveSoa: { [READ]: { supported: ["0.11.10"] } }, + resolveSrv: { [READ]: { supported: ["0.1.27"] } }, + resolveTxt: { [READ]: { supported: ["0.1.27"] } }, + reverse: { [READ]: { supported: ["0.1.16"] } }, + setDefaultResultOrder: { [READ]: { supported: ["16.4.0", "14.18.0"] } }, + getDefaultResultOrder: { [READ]: { supported: ["20.1.0", "18.17.0"] } }, + setServers: { [READ]: { supported: ["0.11.3"] } }, + + promises: { + [READ]: { + experimental: ["10.6.0"], + supported: ["11.14.0", "10.17.0"], + }, + Resolver: { [READ]: { supported: ["10.6.0"] } }, + cancel: { [READ]: { supported: ["15.3.0", "14.17.0"] } }, + getServers: { [READ]: { supported: ["10.6.0"] } }, + lookup: { [READ]: { supported: ["10.6.0"] } }, + lookupService: { [READ]: { supported: ["10.6.0"] } }, + resolve: { [READ]: { supported: ["10.6.0"] } }, + resolve4: { [READ]: { supported: ["10.6.0"] } }, + resolve6: { [READ]: { supported: ["10.6.0"] } }, + resolveAny: { [READ]: { supported: ["10.6.0"] } }, + resolveCaa: { [READ]: { supported: ["15.0.0", "14.17.0"] } }, + resolveCname: { [READ]: { supported: ["10.6.0"] } }, + resolveMx: { [READ]: { supported: ["10.6.0"] } }, + resolveNaptr: { [READ]: { supported: ["10.6.0"] } }, + resolveNs: { [READ]: { supported: ["10.6.0"] } }, + resolvePtr: { [READ]: { supported: ["10.6.0"] } }, + resolveSoa: { [READ]: { supported: ["10.6.0"] } }, + resolveSrv: { [READ]: { supported: ["10.6.0"] } }, + resolveTxt: { [READ]: { supported: ["10.6.0"] } }, + reverse: { [READ]: { supported: ["10.6.0"] } }, + setDefaultResultOrder: { [READ]: { supported: ["16.4.0", "14.18.0"] } }, + getDefaultResultOrder: { [READ]: { supported: ["20.1.0", "18.17.0"] } }, + setServers: { [READ]: { supported: ["10.6.0"] } }, + }, +} + +module.exports = { + dns: { ...dns, [READ]: { supported: ["0.1.16"] } }, + "node:dns": { ...dns, [READ]: { supported: ["14.13.1", "12.20.0"] } }, + + "dns/promises": { ...dns.promises, [READ]: { supported: ["15.0.0"] } }, + "node:dns/promises": { ...dns.promises, [READ]: { supported: ["15.0.0"] } }, +} diff --git a/lib/node-modules/domain.js b/lib/node-modules/domain.js new file mode 100644 index 00000000..0aa23d0c --- /dev/null +++ b/lib/node-modules/domain.js @@ -0,0 +1,16 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const domain = { + create: { [READ]: { supported: ["0.7.8"] } }, + Domain: { [READ]: { supported: ["0.7.8"] } }, +} + +module.exports = { + domain: { + [READ]: { + supported: ["0.7.8"], + deprecated: ["1.4.2"], + }, + ...domain, + }, +} diff --git a/lib/node-modules/events.js b/lib/node-modules/events.js new file mode 100644 index 00000000..911b5000 --- /dev/null +++ b/lib/node-modules/events.js @@ -0,0 +1,108 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const static = { + defaultMaxListeners: { + [READ]: { + supported: ["0.11.2"], + }, + }, + errorMonitor: { + [READ]: { + supported: ["13.6.0", "12.17.0"], + }, + }, + captureRejections: { + [READ]: { + experimental: ["13.4.0", "12.16.0"], + supported: ["17.4.0", "16.14.0"], + }, + }, + captureRejectionSymbol: { + [READ]: { + experimental: ["13.4.0", "12.16.0"], + supported: ["17.4.0", "16.14.0"], + }, + }, + getEventListeners: { + [READ]: { + supported: ["15.2.0", "14.17.0"], + }, + }, + getMaxListeners: { + [READ]: { + supported: ["19.9.0", "18.17.0"], + }, + }, + once: { + [READ]: { + supported: ["11.13.0", "10.16.0"], + }, + }, + listenerCount: { + [READ]: { + supported: ["0.9.12"], + deprecated: ["3.2.0"], + }, + }, + on: { + [READ]: { + supported: ["13.6.0", "12.16.0"], + }, + }, + setMaxListeners: { + [READ]: { + supported: ["15.4.0"], + }, + }, + addAbortListener: { + [READ]: { + experimental: ["20.5.0", "18.18.0"], + }, + }, +} + +const events = { + Event: { + [READ]: { + experimental: ["14.5.0"], + supported: ["15.4.0"], + }, + }, + EventTarget: { + [READ]: { + experimental: ["14.5.0"], + supported: ["15.4.0"], + }, + }, + CustomEvent: { + [READ]: { + experimental: ["18.7.0", "16.17.0"], + }, + }, + NodeEventTarget: { + [READ]: { + experimental: ["14.5.0"], + supported: ["15.4.0"], + }, + }, + EventEmitter: { + [READ]: { supported: ["0.1.26"] }, + ...static, + }, + EventEmitterAsyncResource: { + [READ]: { supported: ["17.4.0", "16.14.0"] }, + ...static, + }, + ...static, +} + +module.exports = { + events: { + [READ]: { supported: ["0.1.26"] }, + ...events, + }, + "node:events": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...events, + }, +} diff --git a/lib/node-modules/fs.js b/lib/node-modules/fs.js new file mode 100644 index 00000000..9b052528 --- /dev/null +++ b/lib/node-modules/fs.js @@ -0,0 +1,174 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const promises_api = { + constants: { [READ]: { supported: ["18.4.0", "16.17.0"] } }, + access: { [READ]: { supported: ["10.0.0"] } }, + appendFile: { [READ]: { supported: ["10.0.0"] } }, + chmod: { [READ]: { supported: ["10.0.0"] } }, + chown: { [READ]: { supported: ["10.0.0"] } }, + copyFile: { [READ]: { supported: ["10.0.0"] } }, + cp: { [READ]: { experimental: ["16.7.0"] } }, + lchmod: { [READ]: { supported: ["10.0.0"], deprecated: ["10.0.0"] } }, + lchown: { [READ]: { supported: ["10.0.0"] } }, + lutimes: { [READ]: { supported: ["14.5.0", "12.19.0"] } }, + link: { [READ]: { supported: ["10.0.0"] } }, + lstat: { [READ]: { supported: ["10.0.0"] } }, + mkdir: { [READ]: { supported: ["10.0.0"] } }, + mkdtemp: { [READ]: { supported: ["10.0.0"] } }, + open: { [READ]: { supported: ["10.0.0"] } }, + opendir: { [READ]: { supported: ["12.12.0"] } }, + readdir: { [READ]: { supported: ["10.0.0"] } }, + readFile: { [READ]: { supported: ["10.0.0"] } }, + readlink: { [READ]: { supported: ["10.0.0"] } }, + realpath: { [READ]: { supported: ["10.0.0"] } }, + rename: { [READ]: { supported: ["10.0.0"] } }, + rmdir: { [READ]: { supported: ["10.0.0"] } }, + rm: { [READ]: { supported: ["14.14.0"] } }, + stat: { [READ]: { supported: ["10.0.0"] } }, + statfs: { [READ]: { supported: ["19.6.0", "18.15.0"] } }, + symlink: { [READ]: { supported: ["10.0.0"] } }, + truncate: { [READ]: { supported: ["10.0.0"] } }, + unlink: { [READ]: { supported: ["10.0.0"] } }, + utimes: { [READ]: { supported: ["10.0.0"] } }, + watch: { [READ]: { supported: ["15.9.0", "14.18.0"] } }, + writeFile: { [READ]: { supported: ["10.0.0"] } }, + FileHandle: { [READ]: { supported: ["10.0.0"] } }, +} +const callback_api = { + access: { [READ]: { supported: ["0.11.15"] } }, + appendFile: { [READ]: { supported: ["0.6.7"] } }, + chmod: { [READ]: { supported: ["0.1.30"] } }, + chown: { [READ]: { supported: ["0.1.97"] } }, + close: { [READ]: { supported: ["0.0.2"] } }, + copyFile: { [READ]: { supported: ["8.5.0"] } }, + cp: { [READ]: { 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"] } }, + fchmod: { [READ]: { supported: ["0.4.7"] } }, + fchown: { [READ]: { supported: ["0.4.7"] } }, + fdatasync: { [READ]: { supported: ["0.1.96"] } }, + fstat: { [READ]: { supported: ["0.1.95"] } }, + fsync: { [READ]: { supported: ["0.1.96"] } }, + ftruncate: { [READ]: { supported: ["0.8.6"] } }, + futimes: { [READ]: { supported: ["0.4.2"] } }, + lchmod: { [READ]: { supported: ["0.1.8"], deprecated: ["0.4.7"] } }, + lchown: { [READ]: { supported: ["0.1.8"] } }, + lutimes: { [READ]: { supported: ["14.5.0", "12.19.0"] } }, + link: { [READ]: { supported: ["0.1.31"] } }, + lstat: { [READ]: { supported: ["0.1.30"] } }, + mkdir: { [READ]: { supported: ["0.1.8"] } }, + mkdtemp: { [READ]: { supported: ["5.10.0"] } }, + open: { [READ]: { supported: ["0.0.2"] } }, + openAsBlob: { [READ]: { experimental: ["19.8.0"] } }, + opendir: { [READ]: { supported: ["12.12.0"] } }, + read: { [READ]: { supported: ["0.0.2"] } }, + readdir: { [READ]: { supported: ["0.1.8"] } }, + readFile: { [READ]: { supported: ["0.1.29"] } }, + readlink: { [READ]: { supported: ["0.1.31"] } }, + readv: { [READ]: { supported: ["13.13.0", "12.17.0"] } }, + realpath: { [READ]: { supported: ["0.1.31"] } }, + native: { [READ]: { supported: ["9.2.0"] } }, + rename: { [READ]: { supported: ["0.0.2"] } }, + rmdir: { [READ]: { supported: ["0.0.2"] } }, + rm: { [READ]: { supported: ["14.14.0"] } }, + stat: { [READ]: { supported: ["0.0.2"] } }, + statfs: { [READ]: { supported: ["19.6.0", "18.15.0"] } }, + symlink: { [READ]: { supported: ["0.1.31"] } }, + truncate: { [READ]: { supported: ["0.8.6"] } }, + unlink: { [READ]: { supported: ["0.0.2"] } }, + unwatchFile: { [READ]: { supported: ["0.1.31"] } }, + utimes: { [READ]: { supported: ["0.4.2"] } }, + watch: { [READ]: { supported: ["0.5.10"] } }, + watchFile: { [READ]: { supported: ["0.1.31"] } }, + write: { [READ]: { supported: ["0.0.2"] } }, + writeFile: { [READ]: { supported: ["0.1.29"] } }, + writev: { [READ]: { supported: ["12.9.0"] } }, +} +const synchronous_api = { + accessSync: { [READ]: { supported: ["0.11.15"] } }, + appendFileSync: { [READ]: { supported: ["0.6.7"] } }, + chmodSync: { [READ]: { supported: ["0.6.7"] } }, + chownSync: { [READ]: { supported: ["0.1.97"] } }, + closeSync: { [READ]: { supported: ["0.1.21"] } }, + copyFileSync: { [READ]: { supported: ["8.5.0"] } }, + cpSync: { [READ]: { experimental: ["16.7.0"] } }, + existsSync: { [READ]: { supported: ["0.1.21"] } }, + fchmodSync: { [READ]: { supported: ["0.4.7"] } }, + fchownSync: { [READ]: { supported: ["0.4.7"] } }, + fdatasyncSync: { [READ]: { supported: ["0.1.96"] } }, + fstatSync: { [READ]: { supported: ["0.1.95"] } }, + fsyncSync: { [READ]: { supported: ["0.1.96"] } }, + ftruncateSync: { [READ]: { supported: ["0.8.6"] } }, + futimesSync: { [READ]: { supported: ["0.4.2"] } }, + lchmodSync: { [READ]: { supported: ["0.1.8"], deprecated: ["0.4.7"] } }, + lchownSync: { [READ]: { supported: ["0.1.8"] } }, + lutimesSync: { [READ]: { supported: ["14.5.0", "12.19.0"] } }, + linkSync: { [READ]: { supported: ["0.1.31"] } }, + lstatSync: { [READ]: { supported: ["0.1.30"] } }, + mkdirSync: { [READ]: { supported: ["0.1.21"] } }, + mkdtempSync: { [READ]: { supported: ["5.10.0"] } }, + opendirSync: { [READ]: { supported: ["12.12.0"] } }, + openSync: { [READ]: { supported: ["0.1.21"] } }, + readdirSync: { [READ]: { supported: ["0.1.21"] } }, + readFileSync: { [READ]: { supported: ["0.1.8"] } }, + readlinkSync: { [READ]: { supported: ["0.1.31"] } }, + readSync: { [READ]: { supported: ["0.1.21"] } }, + readvSync: { [READ]: { supported: ["13.13.0", "12.17.0"] } }, + realpathSync: { [READ]: { supported: ["0.1.31"] } }, + native: { [READ]: { supported: ["9.2.0"] } }, + renameSync: { [READ]: { supported: ["0.1.21"] } }, + rmdirSync: { [READ]: { supported: ["0.1.21"] } }, + rmSync: { [READ]: { supported: ["14.14.0"] } }, + statSync: { [READ]: { supported: ["0.1.21"] } }, + statfsSync: { [READ]: { supported: ["19.6.0", "18.15.0"] } }, + symlinkSync: { [READ]: { supported: ["0.1.31"] } }, + truncateSync: { [READ]: { supported: ["0.8.6"] } }, + unlinkSync: { [READ]: { supported: ["0.1.21"] } }, + utimesSync: { [READ]: { supported: ["0.4.2"] } }, + writeFileSync: { [READ]: { supported: ["0.1.29"] } }, + writeSync: { [READ]: { supported: ["0.1.21"] } }, + writevSync: { [READ]: { supported: ["12.9.0"] } }, +} + +const fs = { + promises: { + [READ]: { + experimental: ["10.0.0"], + supported: ["11.14.0", "10.17.0"], + }, + ...promises_api, + }, + ...callback_api, + ...synchronous_api, + constants: { [READ]: { supported: ["0.1.8"] } }, + Dir: { [READ]: { supported: ["12.12.0"] } }, + Dirent: { [READ]: { supported: ["10.10.0"] } }, + FSWatcher: { [READ]: { supported: ["0.5.8"] } }, + StatWatcher: { [READ]: { supported: ["14.3.0", "12.20.0"] } }, + ReadStream: { [READ]: { supported: ["0.1.93"] } }, + Stats: { [READ]: { supported: ["0.1.21"] } }, + StatFs: { [READ]: { supported: ["19.6.0", "18.15.0"] } }, + WriteStream: { [READ]: { supported: ["0.1.93"] } }, + common_objects: { [READ]: { supported: ["0.1.8"] } }, +} + +module.exports = { + fs: { + [READ]: { supported: ["0.1.8"] }, + ...fs, + }, + "node:fs": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...fs, + }, + + "fs/promises": { + [READ]: { supported: ["14.0.0"] }, + ...promises_api, + }, + "node:fs/promises": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...promises_api, + }, +} diff --git a/lib/node-modules/http.js b/lib/node-modules/http.js new file mode 100644 index 00000000..96b944b9 --- /dev/null +++ b/lib/node-modules/http.js @@ -0,0 +1,31 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const http = { + METHODS: { [READ]: { supported: ["0.11.8"] } }, + STATUS_CODES: { [READ]: { supported: ["0.1.22"] } }, + globalAgent: { [READ]: { supported: ["0.5.9"] } }, + maxHeaderSize: { [READ]: { supported: ["11.6.0", "10.15.0"] } }, + createServer: { [READ]: { supported: ["0.1.13"] } }, + get: { [READ]: { supported: ["0.3.6"] } }, + request: { [READ]: { supported: ["0.3.6"] } }, + validateHeaderName: { [READ]: { supported: ["14.3.0"] } }, + validateHeaderValue: { [READ]: { supported: ["14.3.0"] } }, + setMaxIdleHTTPParsers: { [READ]: { supported: ["18.8.0", "16.18.0"] } }, + Agent: { [READ]: { supported: ["0.3.4"] } }, + ClientRequest: { [READ]: { supported: ["0.1.17"] } }, + Server: { [READ]: { supported: ["0.1.17"] } }, + ServerResponse: { [READ]: { supported: ["0.1.17"] } }, + IncomingMessage: { [READ]: { supported: ["0.1.17"] } }, + OutgoingMessage: { [READ]: { supported: ["0.1.17"] } }, +} + +module.exports = { + http: { + [READ]: { supported: ["0.0.1"] }, + ...http, + }, + "node:http": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...http, + }, +} diff --git a/lib/node-modules/http2.js b/lib/node-modules/http2.js new file mode 100644 index 00000000..a6db42fd --- /dev/null +++ b/lib/node-modules/http2.js @@ -0,0 +1,33 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const http2 = { + constants: { [READ]: { supported: ["8.4.0"] } }, + sensitiveHeaders: { [READ]: { supported: ["15.0.0", "14.18.0"] } }, + createServer: { [READ]: { supported: ["8.4.0"] } }, + createSecureServer: { [READ]: { supported: ["8.4.0"] } }, + connect: { [READ]: { supported: ["8.4.0"] } }, + getDefaultSettings: { [READ]: { supported: ["8.4.0"] } }, + getPackedSettings: { [READ]: { supported: ["8.4.0"] } }, + getUnpackedSettings: { [READ]: { supported: ["8.4.0"] } }, + Http2Session: { [READ]: { supported: ["8.4.0"] } }, + ServerHttp2Session: { [READ]: { supported: ["8.4.0"] } }, + ClientHttp2Session: { [READ]: { supported: ["8.4.0"] } }, + Http2Stream: { [READ]: { supported: ["8.4.0"] } }, + ClientHttp2Stream: { [READ]: { supported: ["8.4.0"] } }, + ServerHttp2Stream: { [READ]: { supported: ["8.4.0"] } }, + Http2Server: { [READ]: { supported: ["8.4.0"] } }, + Http2SecureServer: { [READ]: { supported: ["8.4.0"] } }, + Http2ServerRequest: { [READ]: { supported: ["8.4.0"] } }, + Http2ServerResponse: { [READ]: { supported: ["8.4.0"] } }, +} + +module.exports = { + http2: { + [READ]: { experimental: ["8.4.0"], supported: ["10.10.0"] }, + ...http2, + }, + "node:http2": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...http2, + }, +} diff --git a/lib/node-modules/https.js b/lib/node-modules/https.js new file mode 100644 index 00000000..12f9251a --- /dev/null +++ b/lib/node-modules/https.js @@ -0,0 +1,21 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const http = { + globalAgent: { [READ]: { supported: ["0.5.9"] } }, + createServer: { [READ]: { supported: ["0.3.4"] } }, + get: { [READ]: { supported: ["0.3.6"] } }, + request: { [READ]: { supported: ["0.3.6"] } }, + Agent: { [READ]: { supported: ["0.4.5"] } }, + Server: { [READ]: { supported: ["0.3.4"] } }, +} + +module.exports = { + http: { + [READ]: { supported: ["0.3.4"] }, + ...http, + }, + "node:http": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...http, + }, +} diff --git a/lib/node-modules/inspector.js b/lib/node-modules/inspector.js new file mode 100644 index 00000000..2eb78905 --- /dev/null +++ b/lib/node-modules/inspector.js @@ -0,0 +1,38 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const common_objects = { + console: { [READ]: { supported: ["8.0.0"] } }, + close: { [READ]: { supported: ["9.0.0"] } }, + open: { [READ]: { supported: ["8.0.0"] } }, + url: { [READ]: { supported: ["8.0.0"] } }, + waitForDebugger: { [READ]: { supported: ["12.7.0"] } }, +} + +const promises_api = { + Session: { [READ]: { supported: ["19.0.0"] } }, + ...common_objects, +} +const callback_api = { + Session: { [READ]: { supported: ["8.0.0"] } }, + ...common_objects, +} + +module.exports = { + inspector: { + [READ]: { supported: ["8.0.0"] }, + ...callback_api, + }, + "node:inspector": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...callback_api, + }, + + "inspector/promises": { + [READ]: { experimental: ["19.0.0"] }, + ...promises_api, + }, + "node:inspector/promises": { + [READ]: { experimental: ["19.0.0"] }, + ...promises_api, + }, +} diff --git a/lib/node-modules/module.js b/lib/node-modules/module.js new file mode 100644 index 00000000..34329c8b --- /dev/null +++ b/lib/node-modules/module.js @@ -0,0 +1,22 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const module = { + builtinModules: { [READ]: { supported: ["9.3.0", "8.10.0", "6.13.0"] } }, + createRequire: { [READ]: { supported: ["12.2.0"] } }, + isBuiltin: { [READ]: { supported: ["18.6.0", "16.17.0"] } }, + register: { [READ]: { experimental: ["20.6.0"] } }, + syncBuiltinESMExports: { [READ]: { supported: ["12.12.0"] } }, + findSourceMap: { [READ]: { supported: ["13.7.0", "12.17.0"] } }, + SourceMap: { [READ]: { supported: ["13.7.0", "12.17.0"] } }, +} + +module.exports = { + module: { + [READ]: { supported: ["0.3.7"] }, + ...module, + }, + "node:module": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...module, + }, +} diff --git a/lib/node-modules/net.js b/lib/node-modules/net.js new file mode 100644 index 00000000..fa47147f --- /dev/null +++ b/lib/node-modules/net.js @@ -0,0 +1,33 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const net = { + connect: { [READ]: { supported: ["0.0.1"] } }, + createConnection: { [READ]: { supported: ["0.0.1"] } }, + createServer: { [READ]: { supported: ["0.5.0"] } }, + getDefaultAutoSelectFamily: { [READ]: { supported: ["19.4.0"] } }, + setDefaultAutoSelectFamily: { [READ]: { supported: ["19.4.0"] } }, + getDefaultAutoSelectFamilyAttemptTimeout: { + [READ]: { supported: ["19.8.0", "18.18.0"] }, + }, + setDefaultAutoSelectFamilyAttemptTimeout: { + [READ]: { supported: ["19.8.0", "18.18.0"] }, + }, + isIP: { [READ]: { supported: ["0.3.0"] } }, + isIPv4: { [READ]: { supported: ["0.3.0"] } }, + isIPv6: { [READ]: { supported: ["0.3.0"] } }, + BlockList: { [READ]: { supported: ["15.0.0", "14.18.0"] } }, + SocketAddress: { [READ]: { supported: ["15.14.0", "14.18.0"] } }, + Server: { [READ]: { supported: ["0.1.90"] } }, + Socket: { [READ]: { supported: ["0.3.4"] } }, +} + +module.exports = { + net: { + [READ]: { supported: ["0.0.1"] }, + ...net, + }, + "node:net": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...net, + }, +} diff --git a/lib/node-modules/os.js b/lib/node-modules/os.js new file mode 100644 index 00000000..bf27114c --- /dev/null +++ b/lib/node-modules/os.js @@ -0,0 +1,38 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const os = { + EOL: { [READ]: { supported: ["0.7.8"] } }, + constants: { [READ]: { supported: ["5.11.0", "6.3.0"] } }, + devNull: { [READ]: { supported: ["16.3.0", "14.18.0"] } }, + availableParallelism: { [READ]: { supported: ["19.4.0", "18.14.0"] } }, + arch: { [READ]: { supported: ["0.5.0"] } }, + cpus: { [READ]: { supported: ["0.3.3"] } }, + endianness: { [READ]: { supported: ["0.9.4"] } }, + freemem: { [READ]: { supported: ["0.3.3"] } }, + getPriority: { [READ]: { supported: ["10.10.0"] } }, + homedir: { [READ]: { supported: ["2.3.0"] } }, + hostname: { [READ]: { supported: ["0.3.3"] } }, + loadavg: { [READ]: { supported: ["0.3.3"] } }, + machine: { [READ]: { supported: ["18.9.0", "16.18.0"] } }, + networkInterfaces: { [READ]: { supported: ["0.6.0"] } }, + platform: { [READ]: { supported: ["0.5.0"] } }, + release: { [READ]: { supported: ["0.3.3"] } }, + setPriority: { [READ]: { supported: ["10.10.0"] } }, + tmpdir: { [READ]: { supported: ["0.9.9"] } }, + totalmem: { [READ]: { supported: ["0.3.3"] } }, + type: { [READ]: { supported: ["0.3.3"] } }, + uptime: { [READ]: { supported: ["0.3.3"] } }, + userInfo: { [READ]: { supported: ["6.0.0"] } }, + version: { [READ]: { supported: ["13.11.0", "12.17.0"] } }, +} + +module.exports = { + os: { + [READ]: { supported: ["0.3.3"] }, + ...os, + }, + "node:os": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...os, + }, +} diff --git a/lib/node-modules/path.js b/lib/node-modules/path.js new file mode 100644 index 00000000..332e2416 --- /dev/null +++ b/lib/node-modules/path.js @@ -0,0 +1,38 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const path = { + delimiter: { [READ]: { supported: ["0.9.3"] } }, + sep: { [READ]: { supported: ["0.7.9"] } }, + basename: { [READ]: { supported: ["0.1.25"] } }, + dirname: { [READ]: { supported: ["0.1.16"] } }, + extname: { [READ]: { supported: ["0.1.25"] } }, + format: { [READ]: { supported: ["0.11.15"] } }, + isAbsolute: { [READ]: { supported: ["0.11.2"] } }, + join: { [READ]: { supported: ["0.1.16"] } }, + normalize: { [READ]: { supported: ["0.1.23"] } }, + parse: { [READ]: { supported: ["0.11.15"] } }, + relative: { [READ]: { supported: ["0.5.0"] } }, + resolve: { [READ]: { supported: ["0.3.4"] } }, + toNamespacedPath: { [READ]: { supported: ["9.0.0"] } }, +} + +module.exports = { + path: { + [READ]: { supported: ["0.1.16"] }, + posix: { [READ]: { supported: ["0.11.15"] }, ...path }, + win32: { [READ]: { supported: ["0.11.15"] }, ...path }, + ...path, + }, + "node:path": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + posix: { [READ]: { supported: ["0.11.15"] }, ...path }, + win32: { [READ]: { supported: ["0.11.15"] }, ...path }, + ...path, + }, + + "path/posix": { [READ]: { supported: ["15.3.0"] }, ...path }, + "node:path/posix": { [READ]: { supported: ["15.3.0"] }, ...path }, + + "path/win32": { [READ]: { supported: ["15.3.0"] }, ...path }, + "node:path/win32": { [READ]: { supported: ["15.3.0"] }, ...path }, +} diff --git a/lib/node-modules/perf_hooks.js b/lib/node-modules/perf_hooks.js new file mode 100644 index 00000000..2ffdb6f4 --- /dev/null +++ b/lib/node-modules/perf_hooks.js @@ -0,0 +1,29 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const perf_hooks = { + performance: { [READ]: { supported: ["8.5.0"] } }, + createHistogram: { [READ]: { supported: ["15.9.0", "14.18.0"] } }, + monitorEventLoopDelay: { [READ]: { supported: ["11.10.0"] } }, + PerformanceEntry: { [READ]: { supported: ["8.5.0"] } }, + PerformanceMark: { [READ]: { supported: ["18.2.0", "16.17.0"] } }, + PerformanceMeasure: { [READ]: { supported: ["18.2.0", "16.17.0"] } }, + PerformanceNodeEntry: { [READ]: { supported: ["19.0.0"] } }, + PerformanceNodeTiming: { [READ]: { supported: ["8.5.0"] } }, + PerformanceResourceTiming: { [READ]: { supported: ["18.2.0", "16.17.0"] } }, + PerformanceObserver: { [READ]: { supported: ["8.5.0"] } }, + PerformanceObserverEntryList: { [READ]: { supported: ["8.5.0"] } }, + Histogram: { [READ]: { supported: ["11.10.0"] } }, + IntervalHistogram: { [READ]: { supported: ["8.5.0"] } }, + RecordableHistogram: { [READ]: { supported: ["15.9.0", "14.18.0"] } }, +} + +module.exports = { + perf_hooks: { + [READ]: { supported: ["8.5.0"] }, + ...perf_hooks, + }, + "node:perf_hooks": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...perf_hooks, + }, +} diff --git a/lib/node-modules/process.js b/lib/node-modules/process.js new file mode 100644 index 00000000..7f2a3d92 --- /dev/null +++ b/lib/node-modules/process.js @@ -0,0 +1,89 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const process = { + allowedNodeEnvironmentFlags: { [READ]: { supported: ["10.10.0"] } }, + arch: { [READ]: { supported: ["0.5.0"] } }, + argv: { [READ]: { supported: ["0.1.27"] } }, + argv0: { [READ]: { supported: ["6.4.0"] } }, + channel: { [READ]: { supported: ["7.1.0"] } }, + config: { [READ]: { supported: ["0.7.7"] } }, + connected: { [READ]: { supported: ["0.7.2"] } }, + debugPort: { [READ]: { supported: ["0.7.2"] } }, + env: { [READ]: { supported: ["0.1.27"] } }, + execArgv: { [READ]: { supported: ["0.7.7"] } }, + execPath: { [READ]: { supported: ["0.1.100"] } }, + exitCode: { [READ]: { supported: ["0.11.8"] } }, + mainModule: { + [READ]: { + supported: ["0.1.17"], + deprecated: ["14.0.0"], + }, + }, + noDeprecation: { [READ]: { supported: ["0.8.0"] } }, + permission: { [READ]: { supported: ["20.0.0"] } }, + pid: { [READ]: { supported: ["0.1.15"] } }, + platform: { [READ]: { supported: ["0.1.16"] } }, + ppid: { [READ]: { supported: ["9.2.0", "8.10.0", "6.13.0"] } }, + release: { [READ]: { supported: ["3.0.0"] } }, + report: { + [READ]: { + experimental: ["11.8.0"], + supported: ["13.12.0", "12.17.0"], + }, + }, + sourceMapsEnabled: { [READ]: { experimental: ["20.7.0"] } }, + stderr: { [READ]: { supported: ["0.1.3"] } }, + stdin: { [READ]: { supported: ["0.1.3"] } }, + stdout: { [READ]: { supported: ["0.1.3"] } }, + throwDeprecation: { [READ]: { supported: ["0.9.12"] } }, + title: { [READ]: { supported: ["0.1.104"] } }, + traceDeprecation: { [READ]: { supported: ["0.8.0"] } }, + version: { [READ]: { supported: ["0.1.3"] } }, + versions: { [READ]: { supported: ["0.2.0"] } }, + + abort: { [READ]: { supported: ["0.7.0"] } }, + chdir: { [READ]: { supported: ["0.1.17"] } }, + constrainedMemory: { [READ]: { experimental: ["19.6.0", "18.15.0"] } }, + cpuUsage: { [READ]: { supported: ["6.1.0"] } }, + cwd: { [READ]: { supported: ["0.1.8"] } }, + disconnect: { [READ]: { supported: ["0.7.2"] } }, + dlopen: { [READ]: { supported: ["0.1.16"] } }, + emitWarning: { [READ]: { supported: ["8.0.0"] } }, + exit: { [READ]: { supported: ["0.1.13"] } }, + getActiveResourcesInfo: { [READ]: { experimental: ["17.3.0", "16.14.0"] } }, + getegid: { [READ]: { supported: ["2.0.0"] } }, + geteuid: { [READ]: { supported: ["2.0.0"] } }, + getgid: { [READ]: { supported: ["0.1.31"] } }, + getgroups: { [READ]: { supported: ["0.9.4"] } }, + getuid: { [READ]: { supported: ["0.1.28"] } }, + hasUncaughtExceptionCaptureCallback: { [READ]: { supported: ["9.3.0"] } }, + hrtime: { [READ]: { supported: ["0.7.6"] } }, + bigint: { [READ]: { supported: ["10.7.0"] } }, + initgroups: { [READ]: { supported: ["0.9.4"] } }, + kill: { [READ]: { supported: ["0.0.6"] } }, + memoryUsage: { [READ]: { supported: ["0.1.16"] } }, + rss: { [READ]: { supported: ["15.6.0", "14.18.0"] } }, + nextTick: { [READ]: { supported: ["0.1.26"] } }, + resourceUsage: { [READ]: { supported: ["12.6.0"] } }, + send: { [READ]: { supported: ["0.5.9"] } }, + setegid: { [READ]: { supported: ["2.0.0"] } }, + seteuid: { [READ]: { supported: ["2.0.0"] } }, + setgid: { [READ]: { supported: ["0.1.31"] } }, + setgroups: { [READ]: { supported: ["0.9.4"] } }, + setuid: { [READ]: { supported: ["0.1.28"] } }, + setSourceMapsEnabled: { [READ]: { experimental: ["16.6.0", "14.18.0"] } }, + setUncaughtExceptionCaptureCallback: { [READ]: { supported: ["9.3.0"] } }, + umask: { [READ]: { supported: ["0.1.19"] } }, + uptime: { [READ]: { supported: ["0.5.0"] } }, +} + +module.exports = { + process: { + [READ]: { supported: ["0.1.3"] }, + ...process, + }, + "node:process": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...process, + }, +} diff --git a/lib/node-modules/punycode.js b/lib/node-modules/punycode.js new file mode 100644 index 00000000..41dff2bb --- /dev/null +++ b/lib/node-modules/punycode.js @@ -0,0 +1,20 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const punycode = { + ucs2: { [READ]: { supported: ["0.7.0"] } }, + version: { [READ]: { supported: ["0.6.1"] } }, + decode: { [READ]: { supported: ["0.5.1"] } }, + encode: { [READ]: { supported: ["0.5.1"] } }, + toASCII: { [READ]: { supported: ["0.6.1"] } }, + toUnicode: { [READ]: { supported: ["0.6.1"] } }, +} + +module.exports = { + punycode: { + [READ]: { + supported: ["0.5.1"], + deprecated: ["7.0.0"], + }, + ...punycode, + }, +} diff --git a/lib/node-modules/querystring.js b/lib/node-modules/querystring.js new file mode 100644 index 00000000..7f0eec14 --- /dev/null +++ b/lib/node-modules/querystring.js @@ -0,0 +1,21 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const querystring = { + decode: { [READ]: { supported: ["0.1.99"] } }, + encode: { [READ]: { supported: ["0.1.99"] } }, + escape: { [READ]: { supported: ["0.1.25"] } }, + parse: { [READ]: { supported: ["0.1.25"] } }, + stringify: { [READ]: { supported: ["0.1.25"] } }, + unescape: { [READ]: { supported: ["0.1.25"] } }, +} + +module.exports = { + querystring: { + [READ]: { supported: ["0.1.25"] }, + ...querystring, + }, + "node:querystring": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...querystring, + }, +} diff --git a/lib/node-modules/readline.js b/lib/node-modules/readline.js new file mode 100644 index 00000000..2a4dc33a --- /dev/null +++ b/lib/node-modules/readline.js @@ -0,0 +1,42 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const promises_api = { + createInterface: { [READ]: { supported: ["17.0.0"] } }, + Interface: { [READ]: { supported: ["17.0.0"] } }, + Readline: { [READ]: { supported: ["17.0.0"] } }, +} + +const readline = { + promises: { + [READ]: { experimental: ["17.0.0"] }, + ...promises_api, + }, + clearLine: { [READ]: { supported: ["0.7.7"] } }, + clearScreenDown: { [READ]: { supported: ["0.7.7"] } }, + createInterface: { [READ]: { supported: ["0.1.98"] } }, + cursorTo: { [READ]: { supported: ["0.7.7"] } }, + moveCursor: { [READ]: { supported: ["0.7.7"] } }, + Interface: { [READ]: { supported: ["0.1.104"] } }, + emitKeypressEvents: { [READ]: { supported: ["0.7.7"] } }, + InterfaceConstructor: { [READ]: { supported: ["0.1.104"] } }, +} + +module.exports = { + readline: { + [READ]: { supported: ["0.1.98"] }, + ...readline, + }, + "node:readline": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...readline, + }, + + "readline/promises": { + [READ]: { experimental: ["17.0.0"] }, + ...promises_api, + }, + "node:readline/promises": { + [READ]: { experimental: ["17.0.0"] }, + ...promises_api, + }, +} diff --git a/lib/node-modules/stream.js b/lib/node-modules/stream.js new file mode 100644 index 00000000..da955462 --- /dev/null +++ b/lib/node-modules/stream.js @@ -0,0 +1,72 @@ +const { READ } = require("@eslint-community/eslint-utils") + +// TODO: https://nodejs.org/docs/latest/api/webstreams.html + +const Readable = { + [READ]: { supported: ["0.9.4"] }, + from: { [READ]: { supported: ["12.3.0", "10.17.0"] } }, + isDisturbed: { [READ]: { experimental: ["16.8.0"] } }, + fromWeb: { [READ]: { experimental: ["17.0.0"] } }, + toWeb: { [READ]: { experimental: ["17.0.0"] } }, +} + +const Writable = { + [READ]: { supported: ["0.9.4"] }, + fromWeb: { [READ]: { experimental: ["17.0.0"] } }, + toWeb: { [READ]: { experimental: ["17.0.0"] } }, +} + +const Duplex = { + [READ]: { supported: ["0.9.4"] }, + from: { [READ]: { experimental: ["16.8.0"] } }, + fromWeb: { [READ]: { experimental: ["17.0.0"] } }, + toWeb: { [READ]: { experimental: ["17.0.0"] } }, +} + +const Transform = Duplex + +const promises_api = { + pipeline: { [READ]: { supported: ["15.0.0"] } }, + finished: { [READ]: { supported: ["15.0.0"] } }, +} + +const stream = { + promises: { + [READ]: { supported: ["15.0.0"] }, + ...promises_api, + }, + finished: { [READ]: { supported: ["10.0.0"] } }, + pipeline: { [READ]: { supported: ["10.0.0"] } }, + compose: { [READ]: { supported: ["16.9.0"] } }, + + Readable, + Writable, + Duplex, + Transform, + + isErrored: { [READ]: { experimental: ["17.3.0", "16.14.0"] } }, + isReadable: { [READ]: { experimental: ["17.4.0", "16.14.0"] } }, + addAbortSignal: { [READ]: { supported: ["15.4.0"] } }, + getDefaultHighWaterMark: { [READ]: { supported: ["19.9.0", "18.17.0"] } }, + setDefaultHighWaterMark: { [READ]: { supported: ["19.9.0", "18.17.0"] } }, +} + +module.exports = { + stream: { + [READ]: { supported: ["0.9.4"] }, + ...stream, + }, + "node:stream": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...stream, + }, + + "stream/promises": { + [READ]: { experimental: ["15.0.0"] }, + ...promises_api, + }, + "node:stream/promises": { + [READ]: { experimental: ["15.0.0"] }, + ...promises_api, + }, +} diff --git a/lib/node-modules/string_decoder.js b/lib/node-modules/string_decoder.js new file mode 100644 index 00000000..1534b8e8 --- /dev/null +++ b/lib/node-modules/string_decoder.js @@ -0,0 +1,16 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const string_decoder = { + StringDecoder: { [READ]: { supported: ["0.1.99"] } }, +} + +module.exports = { + string_decoder: { + [READ]: { supported: ["0.1.99"] }, + ...string_decoder, + }, + "node:string_decoder": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...string_decoder, + }, +} diff --git a/lib/node-modules/test.js b/lib/node-modules/test.js new file mode 100644 index 00000000..c807df35 --- /dev/null +++ b/lib/node-modules/test.js @@ -0,0 +1,42 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const test = { + run: { [READ]: { supported: ["18.9.0", "16.19.0"] } }, + skip: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + todo: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + only: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + describe: { + [READ]: { supported: ["18.7.0", "16.17.0"] }, + skip: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + todo: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + only: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + }, + it: { + [READ]: { supported: ["18.6.0", "16.17.0"] }, + skip: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + todo: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + only: { [READ]: { supported: ["20.2.0", "18.17.0"] } }, + }, + before: { [READ]: { supported: ["18.8.0", "16.18.0"] } }, + 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"] } }, + MockFunctionContext: { [READ]: { supported: ["19.1.0", "18.13.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"] } }, + TestContext: { [READ]: { supported: ["18.0.0", "16.17.0"] } }, + SuiteContext: { [READ]: { supported: ["18.7.0", "16.17.0"] } }, +} + +test.test = test + +module.exports = { + "node:test": { + [READ]: { + experimental: ["18.7.0", "16.17.0"], + supported: ["20.0.0"], + }, + ...test, + }, +} diff --git a/lib/node-modules/timers.js b/lib/node-modules/timers.js new file mode 100644 index 00000000..045a50da --- /dev/null +++ b/lib/node-modules/timers.js @@ -0,0 +1,52 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const promises_api = { + setTimeout: { [READ]: { supported: ["15.0.0"] } }, + setImmediate: { [READ]: { supported: ["15.0.0"] } }, + setInterval: { [READ]: { supported: ["15.9.0"] } }, + scheduler: { + wait: { [READ]: { experimental: ["17.3.0", "16.14.0"] } }, + yield: { [READ]: { experimental: ["17.3.0", "16.14.0"] } }, + }, +} + +const timers = { + Immediate: { [READ]: { supported: ["0.9.1"] } }, + Timeout: { [READ]: { supported: ["0.9.1"] } }, + setImmediate: { [READ]: { supported: ["0.9.1"] } }, + clearImmediate: { [READ]: { supported: ["0.9.1"] } }, + setInterval: { [READ]: { supported: ["0.0.1"] } }, + clearInterval: { [READ]: { supported: ["0.0.1"] } }, + setTimeout: { [READ]: { supported: ["0.0.1"] } }, + clearTimeout: { [READ]: { supported: ["0.0.1"] } }, + + // active: [Function: deprecated], + // unenroll: [Function: deprecated], + // enroll: [Function: deprecated] +} + +module.exports = { + timers: { + [READ]: { supported: ["0.9.1"] }, + ...timers, + }, + "node:timers": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...timers, + }, + + "timers/promises": { + [READ]: { + experimental: ["15.0.0"], + supported: ["16.0.0"], + }, + ...promises_api, + }, + "node:timers/promises": { + [READ]: { + experimental: ["15.0.0"], + supported: ["16.0.0"], + }, + ...promises_api, + }, +} diff --git a/lib/node-modules/tls.js b/lib/node-modules/tls.js new file mode 100644 index 00000000..f3750e61 --- /dev/null +++ b/lib/node-modules/tls.js @@ -0,0 +1,33 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const tls = { + rootCertificates: { [READ]: { supported: ["12.3.0"] } }, + DEFAULT_ECDH_CURVE: { [READ]: { supported: ["0.11.13"] } }, + DEFAULT_MAX_VERSION: { [READ]: { supported: ["11.4.0"] } }, + DEFAULT_MIN_VERSION: { [READ]: { supported: ["11.4.0"] } }, + DEFAULT_CIPHERS: { [READ]: { supported: ["19.8.0", "18.16.0"] } }, + checkServerIdentity: { [READ]: { supported: ["0.8.4"] } }, + connect: { [READ]: { supported: ["0.11.3"] } }, + createSecureContext: { [READ]: { supported: ["0.11.13"] } }, + createSecurePair: { + [READ]: { supported: ["0.3.2"], deprecated: ["0.11.3"] }, + }, + createServer: { [READ]: { supported: ["0.3.2"] } }, + getCiphers: { [READ]: { supported: ["0.10.2"] } }, + SecureContext: { [READ]: { supported: ["0.11.13"] } }, + CryptoStream: { [READ]: { supported: ["0.3.4"], deprecated: ["0.11.3"] } }, + SecurePair: { [READ]: { supported: ["0.3.2"], deprecated: ["0.11.3"] } }, + Server: { [READ]: { supported: ["0.3.2"] } }, + TLSSocket: { [READ]: { supported: ["0.11.4"] } }, +} + +module.exports = { + tls: { + [READ]: { supported: ["0.3.2"] }, + ...tls, + }, + "node:tls": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...tls, + }, +} diff --git a/lib/node-modules/trace_events.js b/lib/node-modules/trace_events.js new file mode 100644 index 00000000..8ad10f70 --- /dev/null +++ b/lib/node-modules/trace_events.js @@ -0,0 +1,17 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const trace_events = { + createTracing: { [READ]: { supported: ["10.0.0"] } }, + getEnabledCategories: { [READ]: { supported: ["10.0.0"] } }, +} + +module.exports = { + trace_events: { + [READ]: { experimental: ["10.0.0"] }, + ...trace_events, + }, + "node:trace_events": { + [READ]: { experimental: ["14.13.1", "12.20.0"] }, + ...trace_events, + }, +} diff --git a/lib/node-modules/tty.js b/lib/node-modules/tty.js new file mode 100644 index 00000000..7e8599dc --- /dev/null +++ b/lib/node-modules/tty.js @@ -0,0 +1,18 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const tty = { + isatty: { [READ]: { supported: ["0.5.8"] } }, + ReadStream: { [READ]: { supported: ["0.5.8"] } }, + WriteStream: { [READ]: { supported: ["0.5.8"] } }, +} + +module.exports = { + tty: { + [READ]: { supported: ["0.5.8"] }, + ...tty, + }, + "node:tty": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...tty, + }, +} diff --git a/lib/node-modules/url.js b/lib/node-modules/url.js new file mode 100644 index 00000000..0b7de740 --- /dev/null +++ b/lib/node-modules/url.js @@ -0,0 +1,24 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const url = { + domainToASCII: { [READ]: { supported: ["7.4.0", "6.13.0"] } }, + domainToUnicode: { [READ]: { supported: ["7.4.0", "6.13.0"] } }, + fileURLToPath: { [READ]: { supported: ["10.12.0"] } }, + format: { [READ]: { supported: ["7.6.0"] } }, + pathToFileURL: { [READ]: { supported: ["10.12.0"] } }, + urlToHttpOptions: { [READ]: { supported: ["15.7.0", "14.18.0"] } }, + URL: { [READ]: { supported: ["7.0.0", "6.13.0"] } }, + URLSearchParams: { [READ]: { supported: ["7.5.0", "6.13.0"] } }, + Url: { [READ]: { supported: ["0.1.25"] } }, +} + +module.exports = { + url: { + [READ]: { supported: ["0.1.25"] }, + ...url, + }, + "node:url": { + [READ]: { supported: ["14.13.1", "12.20.0"] }, + ...url, + }, +} diff --git a/lib/node-modules/util.js b/lib/node-modules/util.js new file mode 100644 index 00000000..facc34d7 --- /dev/null +++ b/lib/node-modules/util.js @@ -0,0 +1,118 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const types = { + [READ]: { supported: ["10.0.0"] }, + isExternal: { [READ]: { supported: ["10.0.0"] } }, + isDate: { [READ]: { supported: ["10.0.0"] } }, + isArgumentsObject: { [READ]: { supported: ["10.0.0"] } }, + isBigIntObject: { [READ]: { supported: ["10.0.0"] } }, + isBooleanObject: { [READ]: { supported: ["10.0.0"] } }, + isNumberObject: { [READ]: { supported: ["10.0.0"] } }, + isStringObject: { [READ]: { supported: ["10.0.0"] } }, + isSymbolObject: { [READ]: { supported: ["10.0.0"] } }, + isNativeError: { [READ]: { supported: ["10.0.0"] } }, + isRegExp: { [READ]: { supported: ["10.0.0"] } }, + isAsyncFunction: { [READ]: { supported: ["10.0.0"] } }, + isGeneratorFunction: { [READ]: { supported: ["10.0.0"] } }, + isGeneratorObject: { [READ]: { supported: ["10.0.0"] } }, + isPromise: { [READ]: { supported: ["10.0.0"] } }, + isMap: { [READ]: { supported: ["10.0.0"] } }, + isSet: { [READ]: { supported: ["10.0.0"] } }, + isMapIterator: { [READ]: { supported: ["10.0.0"] } }, + isSetIterator: { [READ]: { supported: ["10.0.0"] } }, + isWeakMap: { [READ]: { supported: ["10.0.0"] } }, + isWeakSet: { [READ]: { supported: ["10.0.0"] } }, + isArrayBuffer: { [READ]: { supported: ["10.0.0"] } }, + isDataView: { [READ]: { supported: ["10.0.0"] } }, + isSharedArrayBuffer: { [READ]: { supported: ["10.0.0"] } }, + isProxy: { [READ]: { supported: ["10.0.0"] } }, + isModuleNamespaceObject: { [READ]: { supported: ["10.0.0"] } }, + isAnyArrayBuffer: { [READ]: { supported: ["10.0.0"] } }, + isBoxedPrimitive: { [READ]: { supported: ["10.11.0"] } }, + isArrayBufferView: { [READ]: { supported: ["10.0.0"] } }, + isTypedArray: { [READ]: { supported: ["10.0.0"] } }, + isUint8Array: { [READ]: { supported: ["10.0.0"] } }, + isUint8ClampedArray: { [READ]: { supported: ["10.0.0"] } }, + isUint16Array: { [READ]: { supported: ["10.0.0"] } }, + isUint32Array: { [READ]: { supported: ["10.0.0"] } }, + isInt8Array: { [READ]: { supported: ["10.0.0"] } }, + isInt16Array: { [READ]: { supported: ["10.0.0"] } }, + isInt32Array: { [READ]: { supported: ["10.0.0"] } }, + isFloat32Array: { [READ]: { supported: ["10.0.0"] } }, + isFloat64Array: { [READ]: { supported: ["10.0.0"] } }, + isBigInt64Array: { [READ]: { supported: ["10.0.0"] } }, + isBigUint64Array: { [READ]: { supported: ["10.0.0"] } }, + isKeyObject: { [READ]: { supported: ["16.2.0"] } }, + isCryptoKey: { [READ]: { supported: ["16.2.0"] } }, + isWebAssemblyCompiledModule: { + [READ]: { supported: ["10.0.0"], deprecated: ["14.0.0"] }, + }, +} + +const deprecated = { + _extend: { [READ]: { supported: ["0.7.5"], deprecated: ["6.0.0"] } }, + isArray: { [READ]: { supported: ["0.6.0"], deprecated: ["4.0.0"] } }, + isBoolean: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isBuffer: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isDate: { [READ]: { supported: ["0.6.0"], deprecated: ["4.0.0"] } }, + isError: { [READ]: { supported: ["0.6.0"], deprecated: ["4.0.0"] } }, + isFunction: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isNull: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isNullOrUndefined: { + [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] }, + }, + isNumber: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isObject: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isPrimitive: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isRegExp: { [READ]: { supported: ["0.6.0"], deprecated: ["4.0.0"] } }, + isString: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isSymbol: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + isUndefined: { [READ]: { supported: ["0.11.5"], deprecated: ["4.0.0"] } }, + log: { [READ]: { supported: ["0.3.0"], deprecated: ["6.0.0"] } }, +} + +const util = { + promisify: { + [READ]: { supported: ["8.0.0"] }, + custom: { [READ]: { supported: ["8.0.0"] } }, + }, + callbackify: { [READ]: { supported: ["8.2.0"] } }, + + debuglog: { [READ]: { supported: ["0.11.3"] } }, + debug: { [READ]: { supported: ["14.9.0"] } }, + deprecate: { [READ]: { supported: ["0.8.0"] } }, + format: { [READ]: { supported: ["0.5.3"] } }, + formatWithOptions: { [READ]: { supported: ["10.0.0"] } }, + getSystemErrorName: { [READ]: { supported: ["9.7.0", "8.12.0"] } }, + getSystemErrorMap: { [READ]: { supported: ["16.0.0", "14.17.0"] } }, + inherits: { [READ]: { supported: ["0.3.0"] } }, + inspect: { + [READ]: { supported: ["0.3.0"] }, + custom: { [READ]: { supported: ["6.6.0"] } }, + defaultOptions: { [READ]: { supported: ["6.4.0"] } }, + replDefaults: { [READ]: { supported: ["11.12.0"] } }, + }, + isDeepStrictEqual: { [READ]: { supported: ["9.0.0"] } }, + parseArgs: { + [READ]: { experimental: ["18.3.0", "16.17.0"], supported: ["20.0.0"] }, + }, + stripVTControlCharacters: { [READ]: { supported: ["16.11.0"] } }, + toUSVString: { [READ]: { supported: ["16.8.0", "14.18.0"] } }, + transferableAbortController: { [READ]: { experimental: ["18.11.0"] } }, + transferableAbortSignal: { [READ]: { experimental: ["18.11.0"] } }, + aborted: { [READ]: { experimental: ["19.7.0", "18.16.0"] } }, + MIMEType: { [READ]: { experimental: ["19.1.0", "18.13.0"] } }, + MIMEParams: { [READ]: { supported: ["19.1.0", "18.13.0"] } }, + TextDecoder: { [READ]: { supported: ["8.9.0"], experimental: "8.3.0" } }, + TextEncoder: { [READ]: { supported: ["8.9.0"], experimental: "8.3.0" } }, + + types, + ...deprecated, +} + +module.exports = { + util: util, + "node:util": { ...util, [READ]: { supported: ["14.13.1", "12.20.0"] } }, + "util/types": { ...types, [READ]: { supported: ["15.3.0"] } }, + "node:util/types": { ...types, [READ]: { supported: ["15.3.0"] } }, +} diff --git a/lib/node-modules/v8.js b/lib/node-modules/v8.js new file mode 100644 index 00000000..66be0856 --- /dev/null +++ b/lib/node-modules/v8.js @@ -0,0 +1,47 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const v8 = { + serialize: { [READ]: { supported: ["8.0.0"] } }, + deserialize: { [READ]: { supported: ["8.0.0"] } }, + Serializer: { [READ]: { supported: ["8.0.0"] } }, + Deserializer: { [READ]: { supported: ["8.0.0"] } }, + DefaultSerializer: { [READ]: { supported: ["8.0.0"] } }, + DefaultDeserializer: { [READ]: { supported: ["8.0.0"] } }, + promiseHooks: { + [READ]: { supported: ["17.1.0", "16.14.0"] }, + onInit: { [READ]: { supported: ["17.1.0", "16.14.0"] } }, + onSettled: { [READ]: { supported: ["17.1.0", "16.14.0"] } }, + onBefore: { [READ]: { supported: ["17.1.0", "16.14.0"] } }, + onAfter: { [READ]: { supported: ["17.1.0", "16.14.0"] } }, + createHook: { [READ]: { supported: ["17.1.0", "16.14.0"] } }, + }, + startupSnapshot: { + [READ]: { experimental: ["18.6.0", "16.17.0"] }, + addSerializeCallback: { [READ]: { supported: ["18.6.0", "16.17.0"] } }, + addDeserializeCallback: { + [READ]: { supported: ["18.6.0", "16.17.0"] }, + }, + setDeserializeMainFunction: { + [READ]: { supported: ["18.6.0", "16.17.0"] }, + }, + isBuildingSnapshot: { [READ]: { supported: ["18.6.0", "16.17.0"] } }, + }, + cachedDataVersionTag: { [READ]: { supported: ["8.0.0"] } }, + getHeapCodeStatistics: { [READ]: { supported: ["12.8.0"] } }, + getHeapSnapshot: { [READ]: { supported: ["11.13.0"] } }, + getHeapSpaceStatistics: { [READ]: { supported: ["6.0.0"] } }, + getHeapStatistics: { [READ]: { supported: ["1.0.0"] } }, + setFlagsFromString: { [READ]: { supported: ["1.0.0"] } }, + stopCoverage: { [READ]: { supported: ["15.1.0", "14.18.0", "12.22.0"] } }, + takeCoverage: { [READ]: { supported: ["15.1.0", "14.18.0", "12.22.0"] } }, + writeHeapSnapshot: { [READ]: { supported: ["11.13.0"] } }, + setHeapSnapshotNearHeapLimit: { + [READ]: { experimental: ["18.10.0", "16.18.0"] }, + }, + GCProfiler: { [READ]: { supported: ["19.6.0", "18.15.0"] } }, +} + +module.exports = { + v8: v8, + "node:v8": { ...v8, [READ]: { supported: ["14.13.1", "12.20.0"] } }, +} diff --git a/lib/node-modules/vm.js b/lib/node-modules/vm.js new file mode 100644 index 00000000..60000eba --- /dev/null +++ b/lib/node-modules/vm.js @@ -0,0 +1,20 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const vm = { + compileFunction: { [READ]: { supported: ["10.10.0"] } }, + createContext: { [READ]: { supported: ["0.3.1"] } }, + isContext: { [READ]: { supported: ["0.11.7"] } }, + measureMemory: { [READ]: { experimental: ["13.10.0"] } }, + runInContext: { [READ]: { supported: ["0.3.1"] } }, + runInNewContext: { [READ]: { supported: ["0.3.1"] } }, + runInThisContext: { [READ]: { supported: ["0.3.1"] } }, + Script: { [READ]: { supported: ["0.3.1"] } }, + Module: { [READ]: { experimental: ["13.0.0", "12.16.0"] } }, + SourceTextModule: { [READ]: { experimental: ["9.6.0"] } }, + SyntheticModule: { [READ]: { experimental: ["13.0.0", "12.16.0"] } }, +} + +module.exports = { + vm: vm, + "node:vm": { ...vm, [READ]: { supported: ["14.13.1", "12.20.0"] } }, +} diff --git a/lib/node-modules/wasi.js b/lib/node-modules/wasi.js new file mode 100644 index 00000000..e2ef9a17 --- /dev/null +++ b/lib/node-modules/wasi.js @@ -0,0 +1,10 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const wasi = { + WASI: { [READ]: { supported: ["13.3.0", "12.16.0"] } }, +} + +module.exports = { + wasi: wasi, + "node:wasi": { ...wasi, [READ]: { supported: ["14.13.1", "12.20.0"] } }, +} diff --git a/lib/node-modules/worker_threads.js b/lib/node-modules/worker_threads.js new file mode 100644 index 00000000..cd021be7 --- /dev/null +++ b/lib/node-modules/worker_threads.js @@ -0,0 +1,43 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const worker_threads = { + isMainThread: { [READ]: { supported: ["10.5.0"] } }, + parentPort: { [READ]: { supported: ["10.5.0"] } }, + resourceLimits: { [READ]: { supported: ["13.2.0", "12.16.0"] } }, + SHARE_ENV: { [READ]: { supported: ["11.14.0"] } }, + threadId: { [READ]: { supported: ["10.5.0"] } }, + workerData: { [READ]: { supported: ["10.5.0"] } }, + getEnvironmentData: { + [READ]: { + experimental: ["15.12.0", "14.18.0"], + supported: ["17.5.0", "16.15.0"], + }, + }, + markAsUntransferable: { [READ]: { supported: ["14.5.0", "12.19.0"] } }, + isMarkedAsUntransferable: { [READ]: { supported: ["21.0.0"] } }, + moveMessagePortToContext: { [READ]: { supported: ["11.13.0"] } }, + receiveMessageOnPort: { [READ]: { supported: ["12.3.0"] } }, + setEnvironmentData: { + [READ]: { + experimental: ["15.12.0", "14.18.0"], + supported: ["17.5.0", "16.15.0"], + }, + }, + BroadcastChannel: { + [READ]: { experimental: ["15.4.0"], supported: ["18.0.0"] }, + }, + MessageChannel: { [READ]: { supported: ["10.5.0"] } }, + MessagePort: { [READ]: { supported: ["10.5.0"] } }, + Worker: { [READ]: { supported: ["10.5.0"] } }, +} + +module.exports = { + worker_threads: { + ...worker_threads, + [READ]: { supported: ["12.11.0"], experimental: ["10.5.0"] }, + }, + "node:worker_threads": { + ...worker_threads, + [READ]: { supported: ["14.13.1", "12.20.0"] }, + }, +} diff --git a/lib/node-modules/zlib.js b/lib/node-modules/zlib.js new file mode 100644 index 00000000..d3eec127 --- /dev/null +++ b/lib/node-modules/zlib.js @@ -0,0 +1,49 @@ +const { READ } = require("@eslint-community/eslint-utils") + +const zlib = { + constants: { [READ]: { supported: ["7.0.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"] } }, + createDeflateRaw: { [READ]: { supported: ["0.5.8"] } }, + createGunzip: { [READ]: { supported: ["0.5.8"] } }, + createGzip: { [READ]: { supported: ["0.5.8"] } }, + createInflate: { [READ]: { supported: ["0.5.8"] } }, + createInflateRaw: { [READ]: { supported: ["0.5.8"] } }, + createUnzip: { [READ]: { supported: ["0.5.8"] } }, + brotliCompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } }, + brotliCompressSync: { [READ]: { supported: ["11.7.0", "10.16.0"] } }, + brotliDecompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } }, + brotliDecompressSync: { [READ]: { supported: ["11.7.0", "10.16.0"] } }, + deflate: { [READ]: { supported: ["0.6.0"] } }, + deflateSync: { [READ]: { supported: ["0.11.12"] } }, + deflateRaw: { [READ]: { supported: ["0.6.0"] } }, + deflateRawSync: { [READ]: { supported: ["0.11.12"] } }, + gunzip: { [READ]: { supported: ["0.6.0"] } }, + gunzipSync: { [READ]: { supported: ["0.11.12"] } }, + gzip: { [READ]: { supported: ["0.6.0"] } }, + gzipSync: { [READ]: { supported: ["0.11.12"] } }, + inflate: { [READ]: { supported: ["0.6.0"] } }, + inflateSync: { [READ]: { supported: ["0.11.12"] } }, + inflateRaw: { [READ]: { supported: ["0.6.0"] } }, + inflateRawSync: { [READ]: { supported: ["0.11.12"] } }, + unzip: { [READ]: { supported: ["0.6.0"] } }, + unzipSync: { [READ]: { supported: ["0.11.12"] } }, + BrotliCompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } }, + BrotliDecompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } }, + Deflate: { [READ]: { supported: ["0.5.8"] } }, + DeflateRaw: { [READ]: { supported: ["0.5.8"] } }, + Gunzip: { [READ]: { supported: ["0.5.8"] } }, + Gzip: { [READ]: { supported: ["0.5.8"] } }, + Inflate: { [READ]: { supported: ["0.5.8"] } }, + InflateRaw: { [READ]: { supported: ["0.5.8"] } }, + Unzip: { [READ]: { supported: ["0.5.8"] } }, +} + +module.exports = { + zlib: zlib, + "node:zlib": { + ...zlib, + [READ]: { supported: ["14.13.1", "12.20.0"] }, + }, +}