Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
./lib/index.js
.github/release-please/manifest.json
./lib/index.js
3 changes: 2 additions & 1 deletion lib/unsupported-features/node-builtins-modules/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { READ } = require("@eslint-community/eslint-utils")
* @satisfies {import('../types.js').SupportVersionTraceMap}
*/
const assert = {
Assert: { [READ]: { supported: ["22.19.0"] } },
Assert: { [READ]: { supported: ["22.19.0", "24.6.0"] } },
assert: { [READ]: { supported: ["0.5.9"] } },
deepEqual: { [READ]: { supported: ["0.1.21"] } },
deepStrictEqual: { [READ]: { supported: ["1.2.0"] } },
Expand Down Expand Up @@ -35,6 +35,7 @@ const assert = {
partialDeepStrictEqual: {
[READ]: {
experimental: ["22.13.0", "23.4.0"],
supported: ["24.0.0"],
},
},
rejects: { [READ]: { supported: ["10.0.0"] } },
Expand Down
7 changes: 6 additions & 1 deletion lib/unsupported-features/node-builtins-modules/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ const buffer = {
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"] } },
resolveObjectURL: {
[READ]: {
experimental: ["16.7.0"],
supported: ["24.0.0"],
},
},
transcode: { [READ]: { supported: ["7.1.0"] } },
SlowBuffer: { [READ]: { supported: ["0.1.90"], deprecated: ["6.0.0"] } },
Blob: {
Expand Down
9 changes: 9 additions & 0 deletions lib/unsupported-features/node-builtins-modules/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ const WebCrypto = {
[READ]: { experimental: ["15.0.0"], supported: ["19.0.0"] },
subtle: {
[READ]: { supported: ["15.0.0"] },
decapsulateBits: { [READ]: { supported: ["24.7.0"] } },
decapsulateKey: { [READ]: { supported: ["24.7.0"] } },
decrypt: { [READ]: { supported: ["15.0.0"] } },
deriveBits: { [READ]: { supported: ["15.0.0"] } },
deriveKey: { [READ]: { supported: ["15.0.0"] } },
digest: { [READ]: { supported: ["15.0.0"] } },
encapsulateBits: { [READ]: { supported: ["24.7.0"] } },
encapsulateKey: { [READ]: { supported: ["24.7.0"] } },
encrypt: { [READ]: { supported: ["15.0.0"] } },
exportKey: { [READ]: { supported: ["15.0.0"] } },
generateKey: { [READ]: { supported: ["15.0.0"] } },
getPublicKey: { [READ]: { supported: ["24.7.0"] } },
importKey: { [READ]: { supported: ["15.0.0"] } },
sign: { [READ]: { supported: ["15.0.0"] } },
unwrapKey: { [READ]: { supported: ["15.0.0"] } },
Expand All @@ -40,6 +45,8 @@ const crypto = {
},

// methods and properties
argon2: { [READ]: { experimental: ["24.7.0"] } },
argon2Sync: { [READ]: { experimental: ["24.7.0"] } },
checkPrime: { [READ]: { supported: ["15.8.0"] } },
checkPrimeSync: { [READ]: { supported: ["15.8.0"] } },
createCipher: { [READ]: { supported: ["0.1.94"], deprecated: ["10.0.0"] } },
Expand All @@ -58,7 +65,9 @@ const crypto = {
createSecretKey: { [READ]: { supported: ["11.6.0"] } },
createSign: { [READ]: { supported: ["0.1.92"] } },
createVerify: { [READ]: { supported: ["0.1.92"] } },
decapsulate: { [READ]: { experimental: ["24.7.0"] } },
diffieHellman: { [READ]: { supported: ["13.9.0", "12.17.0"] } },
encapsulate: { [READ]: { experimental: ["24.7.0"] } },
generateKey: { [READ]: { supported: ["15.0.0"] } },
generateKeyPair: { [READ]: { supported: ["10.12.0"] } },
generateKeyPairSync: { [READ]: { supported: ["10.12.0"] } },
Expand Down
5 changes: 4 additions & 1 deletion lib/unsupported-features/node-builtins-modules/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ const EventEmitterStatic = {
on: { [READ]: { supported: ["13.6.0", "12.16.0"] } },
setMaxListeners: { [READ]: { supported: ["15.4.0"] } },
addAbortListener: {
[READ]: { experimental: ["20.5.0", "18.18.0"], supported: ["22.16.0"] },
[READ]: {
experimental: ["20.5.0", "18.18.0"],
supported: ["22.16.0", "24.0.0"],
},
},
}

Expand Down
17 changes: 13 additions & 4 deletions lib/unsupported-features/node-builtins-modules/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ const promises_api = {
constants: { [READ]: { supported: ["18.4.0", "16.17.0"] } },
copyFile: { [READ]: { supported: ["10.0.0"] } },
cp: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
glob: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
glob: {
[READ]: { experimental: ["22.0.0"], supported: ["22.17.0", "24.0.0"] },
},
lchmod: { [READ]: { supported: ["10.0.0"], deprecated: ["10.0.0"] } },
lchown: { [READ]: { supported: ["10.0.0"] } },
link: { [READ]: { supported: ["10.0.0"] } },
lstat: { [READ]: { supported: ["10.0.0"] } },
lutimes: { [READ]: { supported: ["14.5.0", "12.19.0"] } },
mkdir: { [READ]: { supported: ["10.0.0"] } },
mkdtemp: { [READ]: { supported: ["10.0.0"] } },
mkdtempDisposable: { [READ]: { supported: ["24.4.0"] } },
open: { [READ]: { supported: ["10.0.0"] } },
opendir: { [READ]: { supported: ["12.12.0"] } },
readFile: { [READ]: { supported: ["10.0.0"] } },
Expand Down Expand Up @@ -62,7 +65,9 @@ const callback_api = {
fsync: { [READ]: { supported: ["0.1.96"] } },
ftruncate: { [READ]: { supported: ["0.8.6"] } },
futimes: { [READ]: { supported: ["0.4.2"] } },
glob: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
glob: {
[READ]: { experimental: ["22.0.0"], supported: ["22.17.0", "24.0.0"] },
},
lchmod: { [READ]: { supported: ["0.1.8"], deprecated: ["0.4.7"] } },
lchown: { [READ]: { supported: ["0.1.8"] } },
link: { [READ]: { supported: ["0.1.31"] } },
Expand All @@ -73,7 +78,7 @@ const callback_api = {
native: { [READ]: { supported: ["9.2.0"] } },
open: { [READ]: { supported: ["0.0.2"] } },
openAsBlob: {
[READ]: { experimental: ["19.8.0"], supported: ["22.17.0"] },
[READ]: { experimental: ["19.8.0"], supported: ["22.17.0", "24.0.0"] },
},
opendir: { [READ]: { supported: ["12.12.0"] } },
read: { [READ]: { supported: ["0.0.2"] } },
Expand Down Expand Up @@ -121,14 +126,17 @@ const synchronous_api = {
fsyncSync: { [READ]: { supported: ["0.1.96"] } },
ftruncateSync: { [READ]: { supported: ["0.8.6"] } },
futimesSync: { [READ]: { supported: ["0.4.2"] } },
globSync: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
globSync: {
[READ]: { experimental: ["22.0.0"], supported: ["22.17.0", "24.0.0"] },
},
lchmodSync: { [READ]: { supported: ["0.1.8"], deprecated: ["0.4.7"] } },
lchownSync: { [READ]: { supported: ["0.1.8"] } },
linkSync: { [READ]: { supported: ["0.1.31"] } },
lstatSync: { [READ]: { supported: ["0.1.30"] } },
lutimesSync: { [READ]: { supported: ["14.5.0", "12.19.0"] } },
mkdirSync: { [READ]: { supported: ["0.1.21"] } },
mkdtempSync: { [READ]: { supported: ["5.10.0"] } },
mkdtempDisposableSync: { [READ]: { supported: ["24.4.0"] } },
native: { [READ]: { supported: ["9.2.0"] } },
opendirSync: { [READ]: { supported: ["12.12.0"] } },
openSync: { [READ]: { supported: ["0.1.21"] } },
Expand Down Expand Up @@ -181,6 +189,7 @@ const fs = {
},
StatFs: { [READ]: { supported: ["19.6.0", "18.15.0"] } },
WriteStream: { [READ]: { supported: ["0.1.93"] } },
Utf8Stream: { [READ]: { experimental: ["24.6.0"] } },
common_objects: { [READ]: { supported: ["0.1.8"] } },
}

Expand Down
49 changes: 35 additions & 14 deletions lib/unsupported-features/node-builtins-modules/http.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

const { READ } = require("@eslint-community/eslint-utils")
const { READ, CALL } = require("@eslint-community/eslint-utils")

/**
* @satisfies {import('../types.js').SupportVersionTraceMap}
Expand All @@ -16,13 +16,34 @@ const http = {
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"] } },
WebSocket: { [READ]: { supported: ["22.5.0"] } },
Agent: {
[READ]: { supported: ["0.3.4"] },
[CALL]: { deprecated: ["24.2.0"] },
},
ClientRequest: {
[READ]: { supported: ["0.1.17"] },
[CALL]: { deprecated: ["24.2.0"] },
},
Server: {
[READ]: { supported: ["0.1.17"] },
[CALL]: { deprecated: ["24.2.0"] },
},
ServerResponse: {
[READ]: { supported: ["0.1.17"] },
[CALL]: { deprecated: ["24.2.0"] },
},
IncomingMessage: {
[READ]: { supported: ["0.1.17"] },
[CALL]: { deprecated: ["24.2.0"] },
},
OutgoingMessage: {
[READ]: { supported: ["0.1.17"] },
[CALL]: { deprecated: ["24.2.0"] },
},
WebSocket: {
[READ]: { supported: ["22.5.0"] },
[CALL]: { deprecated: ["24.2.0"] },
},
}

/**
Expand All @@ -38,21 +59,21 @@ module.exports = {
...http,
},
"node:_http_agent": {
[READ]: { deprecated: ["22.19.0"] },
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
},
"node:_http_client": {
[READ]: { deprecated: ["22.19.0"] },
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
},
"node:_http_common": {
[READ]: { deprecated: ["22.19.0"] },
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
},
"node:_http_incoming": {
[READ]: { deprecated: ["22.19.0"] },
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
},
"node:_http_outgoing": {
[READ]: { deprecated: ["22.19.0"] },
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
},
"node:_http_server": {
[READ]: { deprecated: ["22.19.0"] },
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
},
}
21 changes: 18 additions & 3 deletions lib/unsupported-features/node-builtins-modules/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,30 @@ const { READ } = require("@eslint-community/eslint-utils")
*/
const common_objects = {
Network: {
dataReceived: { [READ]: { supported: ["22.17.0"] } },
dataSent: { [READ]: { supported: ["22.18.0"] } },
dataReceived: { [READ]: { supported: ["22.17.0", "24.2.0"] } },
dataSent: { [READ]: { supported: ["22.18.0", "24.3.0"] } },
loadingFailed: { [READ]: { experimental: ["22.7.0", "20.18.0"] } },
loadingFinished: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
requestWillBeSent: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
responseReceived: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
webSocketCreated: {
[READ]: {
experimental: ["24.7.0"],
},
},
webSocketHandshakeResponseReceived: {
[READ]: {
experimental: ["24.7.0"],
},
},
webSocketClosed: {
[READ]: {
experimental: ["24.7.0"],
},
},
},
NetworkResources: {
put: { [READ]: { experimental: ["22.19.0"] } },
put: { [READ]: { experimental: ["22.19.0", "24.5.0"] } },
},
console: { [READ]: { supported: ["8.0.0"] } },
close: { [READ]: { supported: ["9.0.0"] } },
Expand Down
7 changes: 6 additions & 1 deletion lib/unsupported-features/node-builtins-modules/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ 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", "20.17.0"] } },
matchesGlob: {
[READ]: {
experimental: ["22.5.0", "20.17.0"],
supported: ["22.20.0", "24.8.0"],
},
},
isAbsolute: { [READ]: { supported: ["0.11.2"] } },
join: { [READ]: { supported: ["0.1.16"] } },
normalize: { [READ]: { supported: ["0.1.23"] } },
Expand Down
2 changes: 2 additions & 0 deletions lib/unsupported-features/node-builtins-modules/perf_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const perf_hooks = {
toJSON: { [READ]: { supported: ["16.1.0"] } },
},
createHistogram: { [READ]: { supported: ["15.9.0", "14.18.0"] } },
eventLoopUtilization: { [READ]: { supported: ["24.12.0"] } },
timerify: { [READ]: { supported: ["24.12.0"] } },
monitorEventLoopDelay: { [READ]: { supported: ["11.10.0"] } },
PerformanceEntry: { [READ]: { supported: ["8.5.0"] } },
PerformanceMark: { [READ]: { supported: ["18.2.0", "16.17.0"] } },
Expand Down
29 changes: 24 additions & 5 deletions lib/unsupported-features/node-builtins-modules/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const { READ } = require("@eslint-community/eslint-utils")
const process = {
allowedNodeEnvironmentFlags: { [READ]: { supported: ["10.10.0"] } },
availableMemory: {
[READ]: { experimental: ["22.0.0", "20.13.0"], supported: ["22.16.0"] },
[READ]: {
experimental: ["22.0.0", "20.13.0"],
supported: ["22.16.0", "24.0.0"],
},
},
arch: { [READ]: { supported: ["0.5.0"] } },
argv: { [READ]: { supported: ["0.1.27"] } },
Expand Down Expand Up @@ -50,7 +53,12 @@ const process = {
tls_sni: {
[READ]: { supported: ["0.5.3"], deprecated: ["22.13.0", "23.4.0"] },
},
typescript: { [READ]: { experimental: ["23.0.0", "22.10.0"] } },
typescript: {
[READ]: {
experimental: ["23.0.0", "22.10.0"],
supported: ["24.12.0"],
},
},
uv: {
[READ]: { supported: ["0.5.3"], deprecated: ["22.13.0", "23.4.0"] },
},
Expand Down Expand Up @@ -130,7 +138,10 @@ const process = {
abort: { [READ]: { supported: ["0.7.0"] } },
chdir: { [READ]: { supported: ["0.1.17"] } },
constrainedMemory: {
[READ]: { experimental: ["19.6.0", "18.15.0"], supported: ["22.16.0"] },
[READ]: {
experimental: ["19.6.0", "18.15.0"],
supported: ["22.16.0", "24.0.0"],
},
},
cpuUsage: { [READ]: { supported: ["6.1.0"] } },
cwd: { [READ]: { supported: ["0.1.8"] } },
Expand All @@ -139,7 +150,10 @@ const process = {
emitWarning: { [READ]: { supported: ["6.0.0"] } },
exit: { [READ]: { supported: ["0.1.13"] } },
getActiveResourcesInfo: {
[READ]: { experimental: ["17.3.0", "16.14.0"], supported: ["22.16.0"] },
[READ]: {
experimental: ["17.3.0", "16.14.0"],
supported: ["22.16.0", "24.0.0"],
},
},
getegid: { [READ]: { supported: ["2.0.0"] } },
geteuid: { [READ]: { supported: ["2.0.0"] } },
Expand All @@ -153,7 +167,12 @@ const process = {
},
initgroups: { [READ]: { supported: ["0.9.4"] } },
kill: { [READ]: { supported: ["0.0.6"] } },
loadEnvFile: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
loadEnvFile: {
[READ]: {
experimental: ["20.12.0", "21.7.0"],
supported: ["22.21.0", "24.10.0"],
},
},
memoryUsage: { [READ]: { supported: ["0.1.16"] } },
rss: { [READ]: { supported: ["15.6.0", "14.18.0"] } },
nextTick: { [READ]: { supported: ["0.1.26"] } },
Expand Down
6 changes: 3 additions & 3 deletions lib/unsupported-features/node-builtins-modules/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const promises_api = {
*/
const readline = {
promises: {
[READ]: { experimental: ["17.0.0"] },
[READ]: { experimental: ["17.0.0"], supported: ["24.0.0"] },
...promises_api,
},
clearLine: { [READ]: { supported: ["0.7.7"] } },
Expand All @@ -43,11 +43,11 @@ module.exports = {
},

"readline/promises": {
[READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] },
[READ]: { experimental: ["17.0.0"], supported: ["22.17.0", "24.0.0"] },
...promises_api,
},
"node:readline/promises": {
[READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] },
[READ]: { experimental: ["17.0.0"], supported: ["22.17.0", "24.0.0"] },
...promises_api,
},
}
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins-modules/sea.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const sea = {
isSea: { [READ]: { supported: ["21.7.0", "20.12.0"] } },
getAsset: { [READ]: { supported: ["21.7.0", "20.12.0"] } },
getAssetAsBlob: { [READ]: { supported: ["21.7.0", "20.12.0"] } },
getAssetKeys: { [READ]: { supported: ["22.20.0", "24.8.0"] } },
getRawAsset: { [READ]: { supported: ["21.7.0", "20.12.0"] } },
sea: {},
}
Expand Down
1 change: 1 addition & 0 deletions lib/unsupported-features/node-builtins-modules/sqlite.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const sqlite = {
},
backup: { [READ]: { supported: ["22.16.0", "23.8.0"] } },
DatabaseSync: { [READ]: { supported: ["22.5.0"] } },
Session: { [READ]: { supported: ["22.12.0"] } },
StatementSync: { [READ]: { supported: ["22.5.0"] } },
SQLITE_CHANGESET_OMIT: {
[READ]: {
Expand Down
Loading
Loading