Skip to content

Commit

Permalink
chore: Update and split-up all supported node-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood committed Feb 6, 2024
1 parent cd5cbbb commit 33f5b4b
Show file tree
Hide file tree
Showing 40 changed files with 1,758 additions and 0 deletions.
62 changes: 62 additions & 0 deletions lib/node-modules/assert.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
31 changes: 31 additions & 0 deletions lib/node-modules/async_hooks.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
55 changes: 55 additions & 0 deletions lib/node-modules/buffer.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
23 changes: 23 additions & 0 deletions lib/node-modules/child_process.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
27 changes: 27 additions & 0 deletions lib/node-modules/cluster.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
38 changes: 38 additions & 0 deletions lib/node-modules/console.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
101 changes: 101 additions & 0 deletions lib/node-modules/crypto.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
17 changes: 17 additions & 0 deletions lib/node-modules/dgram.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
28 changes: 28 additions & 0 deletions lib/node-modules/diagnostics_channel.js
Original file line number Diff line number Diff line change
@@ -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,
},
}
Loading

0 comments on commit 33f5b4b

Please sign in to comment.