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 98e561f
Show file tree
Hide file tree
Showing 40 changed files with 1,875 additions and 0 deletions.
126 changes: 126 additions & 0 deletions lib/node-modules/assert.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
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,
},
}
35 changes: 35 additions & 0 deletions lib/node-modules/async_hooks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
const { READ } = require("@eslint-community/eslint-utils")

const async_hooks = {
createHook: {
supported: ["8.1.0"],
},
executionAsyncResource: {
supported: ["13.9.0", "12.17.0"],
},
executionAsyncId: {
supported: ["8.1.0"],
},
triggerAsyncId: {
supported: ["8.1.0"],
},
AsyncLocalStorage: {
experimental: ["13.10.0", "12.17.0"],
supported: ["16.4.0"],
},
AsyncResource: {
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,
},
}
101 changes: 101 additions & 0 deletions lib/node-modules/buffer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
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,
},
}
Loading

0 comments on commit 98e561f

Please sign in to comment.