Skip to content

Commit 1df60bc

Browse files
committed
feat: Add more node versions to the supported list
1 parent d27b585 commit 1df60bc

File tree

23 files changed

+218
-58
lines changed

23 files changed

+218
-58
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
./lib/index.js
1+
.github/release-please/manifest.json
2+
./lib/index.js

lib/unsupported-features/node-builtins-modules/assert.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { READ } = require("@eslint-community/eslint-utils")
66
* @satisfies {import('../types.js').SupportVersionTraceMap}
77
*/
88
const assert = {
9-
Assert: { [READ]: { supported: ["22.19.0"] } },
9+
Assert: { [READ]: { supported: ["22.19.0", "24.6.0"] } },
1010
assert: { [READ]: { supported: ["0.5.9"] } },
1111
deepEqual: { [READ]: { supported: ["0.1.21"] } },
1212
deepStrictEqual: { [READ]: { supported: ["1.2.0"] } },
@@ -35,6 +35,7 @@ const assert = {
3535
partialDeepStrictEqual: {
3636
[READ]: {
3737
experimental: ["22.13.0", "23.4.0"],
38+
supported: ["24.0.0"],
3839
},
3940
},
4041
rejects: { [READ]: { supported: ["10.0.0"] } },

lib/unsupported-features/node-builtins-modules/buffer.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ const buffer = {
1414
btoa: { [READ]: { supported: ["15.13.0", "14.17.0"] } },
1515
isAscii: { [READ]: { supported: ["19.6.0", "18.15.0"] } },
1616
isUtf8: { [READ]: { supported: ["19.4.0", "18.14.0"] } },
17-
resolveObjectURL: { [READ]: { experimental: ["16.7.0"] } },
17+
resolveObjectURL: {
18+
[READ]: {
19+
experimental: ["16.7.0"],
20+
supported: ["24.0.0"],
21+
},
22+
},
1823
transcode: { [READ]: { supported: ["7.1.0"] } },
1924
SlowBuffer: { [READ]: { supported: ["0.1.90"], deprecated: ["6.0.0"] } },
2025
Blob: {

lib/unsupported-features/node-builtins-modules/crypto.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ const WebCrypto = {
99
[READ]: { experimental: ["15.0.0"], supported: ["19.0.0"] },
1010
subtle: {
1111
[READ]: { supported: ["15.0.0"] },
12+
decapsulateBits: { [READ]: { supported: ["24.7.0"] } },
13+
decapsulateKey: { [READ]: { supported: ["24.7.0"] } },
1214
decrypt: { [READ]: { supported: ["15.0.0"] } },
1315
deriveBits: { [READ]: { supported: ["15.0.0"] } },
1416
deriveKey: { [READ]: { supported: ["15.0.0"] } },
1517
digest: { [READ]: { supported: ["15.0.0"] } },
18+
encapsulateBits: { [READ]: { supported: ["24.7.0"] } },
19+
encapsulateKey: { [READ]: { supported: ["24.7.0"] } },
1620
encrypt: { [READ]: { supported: ["15.0.0"] } },
1721
exportKey: { [READ]: { supported: ["15.0.0"] } },
1822
generateKey: { [READ]: { supported: ["15.0.0"] } },
23+
getPublicKey: { [READ]: { supported: ["24.7.0"] } },
1924
importKey: { [READ]: { supported: ["15.0.0"] } },
2025
sign: { [READ]: { supported: ["15.0.0"] } },
2126
unwrapKey: { [READ]: { supported: ["15.0.0"] } },
@@ -40,6 +45,8 @@ const crypto = {
4045
},
4146

4247
// methods and properties
48+
argon2: { [READ]: { experimental: ["24.7.0"] } },
49+
argon2Sync: { [READ]: { experimental: ["24.7.0"] } },
4350
checkPrime: { [READ]: { supported: ["15.8.0"] } },
4451
checkPrimeSync: { [READ]: { supported: ["15.8.0"] } },
4552
createCipher: { [READ]: { supported: ["0.1.94"], deprecated: ["10.0.0"] } },
@@ -58,7 +65,9 @@ const crypto = {
5865
createSecretKey: { [READ]: { supported: ["11.6.0"] } },
5966
createSign: { [READ]: { supported: ["0.1.92"] } },
6067
createVerify: { [READ]: { supported: ["0.1.92"] } },
68+
decapsulate: { [READ]: { experimental: ["24.7.0"] } },
6169
diffieHellman: { [READ]: { supported: ["13.9.0", "12.17.0"] } },
70+
encapsulate: { [READ]: { experimental: ["24.7.0"] } },
6271
generateKey: { [READ]: { supported: ["15.0.0"] } },
6372
generateKeyPair: { [READ]: { supported: ["10.12.0"] } },
6473
generateKeyPairSync: { [READ]: { supported: ["10.12.0"] } },

lib/unsupported-features/node-builtins-modules/events.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ const EventEmitterStatic = {
2727
on: { [READ]: { supported: ["13.6.0", "12.16.0"] } },
2828
setMaxListeners: { [READ]: { supported: ["15.4.0"] } },
2929
addAbortListener: {
30-
[READ]: { experimental: ["20.5.0", "18.18.0"], supported: ["22.16.0"] },
30+
[READ]: {
31+
experimental: ["20.5.0", "18.18.0"],
32+
supported: ["22.16.0", "24.0.0"],
33+
},
3134
},
3235
}
3336

lib/unsupported-features/node-builtins-modules/fs.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ const promises_api = {
1414
constants: { [READ]: { supported: ["18.4.0", "16.17.0"] } },
1515
copyFile: { [READ]: { supported: ["10.0.0"] } },
1616
cp: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
17-
glob: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
17+
glob: {
18+
[READ]: { experimental: ["22.0.0"], supported: ["22.17.0", "24.0.0"] },
19+
},
1820
lchmod: { [READ]: { supported: ["10.0.0"], deprecated: ["10.0.0"] } },
1921
lchown: { [READ]: { supported: ["10.0.0"] } },
2022
link: { [READ]: { supported: ["10.0.0"] } },
2123
lstat: { [READ]: { supported: ["10.0.0"] } },
2224
lutimes: { [READ]: { supported: ["14.5.0", "12.19.0"] } },
2325
mkdir: { [READ]: { supported: ["10.0.0"] } },
2426
mkdtemp: { [READ]: { supported: ["10.0.0"] } },
27+
mkdtempDisposable: { [READ]: { supported: ["24.4.0"] } },
2528
open: { [READ]: { supported: ["10.0.0"] } },
2629
opendir: { [READ]: { supported: ["12.12.0"] } },
2730
readFile: { [READ]: { supported: ["10.0.0"] } },
@@ -62,7 +65,9 @@ const callback_api = {
6265
fsync: { [READ]: { supported: ["0.1.96"] } },
6366
ftruncate: { [READ]: { supported: ["0.8.6"] } },
6467
futimes: { [READ]: { supported: ["0.4.2"] } },
65-
glob: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
68+
glob: {
69+
[READ]: { experimental: ["22.0.0"], supported: ["22.17.0", "24.0.0"] },
70+
},
6671
lchmod: { [READ]: { supported: ["0.1.8"], deprecated: ["0.4.7"] } },
6772
lchown: { [READ]: { supported: ["0.1.8"] } },
6873
link: { [READ]: { supported: ["0.1.31"] } },
@@ -73,7 +78,7 @@ const callback_api = {
7378
native: { [READ]: { supported: ["9.2.0"] } },
7479
open: { [READ]: { supported: ["0.0.2"] } },
7580
openAsBlob: {
76-
[READ]: { experimental: ["19.8.0"], supported: ["22.17.0"] },
81+
[READ]: { experimental: ["19.8.0"], supported: ["22.17.0", "24.0.0"] },
7782
},
7883
opendir: { [READ]: { supported: ["12.12.0"] } },
7984
read: { [READ]: { supported: ["0.0.2"] } },
@@ -121,14 +126,17 @@ const synchronous_api = {
121126
fsyncSync: { [READ]: { supported: ["0.1.96"] } },
122127
ftruncateSync: { [READ]: { supported: ["0.8.6"] } },
123128
futimesSync: { [READ]: { supported: ["0.4.2"] } },
124-
globSync: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
129+
globSync: {
130+
[READ]: { experimental: ["22.0.0"], supported: ["22.17.0", "24.0.0"] },
131+
},
125132
lchmodSync: { [READ]: { supported: ["0.1.8"], deprecated: ["0.4.7"] } },
126133
lchownSync: { [READ]: { supported: ["0.1.8"] } },
127134
linkSync: { [READ]: { supported: ["0.1.31"] } },
128135
lstatSync: { [READ]: { supported: ["0.1.30"] } },
129136
lutimesSync: { [READ]: { supported: ["14.5.0", "12.19.0"] } },
130137
mkdirSync: { [READ]: { supported: ["0.1.21"] } },
131138
mkdtempSync: { [READ]: { supported: ["5.10.0"] } },
139+
mkdtempDisposableSync: { [READ]: { supported: ["24.4.0"] } },
132140
native: { [READ]: { supported: ["9.2.0"] } },
133141
opendirSync: { [READ]: { supported: ["12.12.0"] } },
134142
openSync: { [READ]: { supported: ["0.1.21"] } },
@@ -181,6 +189,7 @@ const fs = {
181189
},
182190
StatFs: { [READ]: { supported: ["19.6.0", "18.15.0"] } },
183191
WriteStream: { [READ]: { supported: ["0.1.93"] } },
192+
Utf8Stream: { [READ]: { experimental: ["24.6.0"] } },
184193
common_objects: { [READ]: { supported: ["0.1.8"] } },
185194
}
186195

lib/unsupported-features/node-builtins-modules/http.js

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict"
22

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

55
/**
66
* @satisfies {import('../types.js').SupportVersionTraceMap}
@@ -16,13 +16,34 @@ const http = {
1616
validateHeaderName: { [READ]: { supported: ["14.3.0"] } },
1717
validateHeaderValue: { [READ]: { supported: ["14.3.0"] } },
1818
setMaxIdleHTTPParsers: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
19-
Agent: { [READ]: { supported: ["0.3.4"] } },
20-
ClientRequest: { [READ]: { supported: ["0.1.17"] } },
21-
Server: { [READ]: { supported: ["0.1.17"] } },
22-
ServerResponse: { [READ]: { supported: ["0.1.17"] } },
23-
IncomingMessage: { [READ]: { supported: ["0.1.17"] } },
24-
OutgoingMessage: { [READ]: { supported: ["0.1.17"] } },
25-
WebSocket: { [READ]: { supported: ["22.5.0"] } },
19+
Agent: {
20+
[READ]: { supported: ["0.3.4"] },
21+
[CALL]: { deprecated: ["24.2.0"] },
22+
},
23+
ClientRequest: {
24+
[READ]: { supported: ["0.1.17"] },
25+
[CALL]: { deprecated: ["24.2.0"] },
26+
},
27+
Server: {
28+
[READ]: { supported: ["0.1.17"] },
29+
[CALL]: { deprecated: ["24.2.0"] },
30+
},
31+
ServerResponse: {
32+
[READ]: { supported: ["0.1.17"] },
33+
[CALL]: { deprecated: ["24.2.0"] },
34+
},
35+
IncomingMessage: {
36+
[READ]: { supported: ["0.1.17"] },
37+
[CALL]: { deprecated: ["24.2.0"] },
38+
},
39+
OutgoingMessage: {
40+
[READ]: { supported: ["0.1.17"] },
41+
[CALL]: { deprecated: ["24.2.0"] },
42+
},
43+
WebSocket: {
44+
[READ]: { supported: ["22.5.0"] },
45+
[CALL]: { deprecated: ["24.2.0"] },
46+
},
2647
}
2748

2849
/**
@@ -38,21 +59,21 @@ module.exports = {
3859
...http,
3960
},
4061
"node:_http_agent": {
41-
[READ]: { deprecated: ["22.19.0"] },
62+
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
4263
},
4364
"node:_http_client": {
44-
[READ]: { deprecated: ["22.19.0"] },
65+
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
4566
},
4667
"node:_http_common": {
47-
[READ]: { deprecated: ["22.19.0"] },
68+
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
4869
},
4970
"node:_http_incoming": {
50-
[READ]: { deprecated: ["22.19.0"] },
71+
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
5172
},
5273
"node:_http_outgoing": {
53-
[READ]: { deprecated: ["22.19.0"] },
74+
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
5475
},
5576
"node:_http_server": {
56-
[READ]: { deprecated: ["22.19.0"] },
77+
[READ]: { deprecated: ["22.19.0", "24.6.0"] },
5778
},
5879
}

lib/unsupported-features/node-builtins-modules/inspector.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,30 @@ const { READ } = require("@eslint-community/eslint-utils")
77
*/
88
const common_objects = {
99
Network: {
10-
dataReceived: { [READ]: { supported: ["22.17.0"] } },
11-
dataSent: { [READ]: { supported: ["22.18.0"] } },
10+
dataReceived: { [READ]: { supported: ["22.17.0", "24.2.0"] } },
11+
dataSent: { [READ]: { supported: ["22.18.0", "24.3.0"] } },
1212
loadingFailed: { [READ]: { experimental: ["22.7.0", "20.18.0"] } },
1313
loadingFinished: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
1414
requestWillBeSent: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
1515
responseReceived: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
16+
webSocketCreated: {
17+
[READ]: {
18+
experimental: ["24.7.0"],
19+
},
20+
},
21+
webSocketHandshakeResponseReceived: {
22+
[READ]: {
23+
experimental: ["24.7.0"],
24+
},
25+
},
26+
webSocketClosed: {
27+
[READ]: {
28+
experimental: ["24.7.0"],
29+
},
30+
},
1631
},
1732
NetworkResources: {
18-
put: { [READ]: { experimental: ["22.19.0"] } },
33+
put: { [READ]: { experimental: ["22.19.0", "24.5.0"] } },
1934
},
2035
console: { [READ]: { supported: ["8.0.0"] } },
2136
close: { [READ]: { supported: ["9.0.0"] } },

lib/unsupported-features/node-builtins-modules/path.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ const path = {
1212
dirname: { [READ]: { supported: ["0.1.16"] } },
1313
extname: { [READ]: { supported: ["0.1.25"] } },
1414
format: { [READ]: { supported: ["0.11.15"] } },
15-
matchesGlob: { [READ]: { experimental: ["22.5.0", "20.17.0"] } },
15+
matchesGlob: {
16+
[READ]: {
17+
experimental: ["22.5.0", "20.17.0"],
18+
supported: ["22.20.0", "24.8.0"],
19+
},
20+
},
1621
isAbsolute: { [READ]: { supported: ["0.11.2"] } },
1722
join: { [READ]: { supported: ["0.1.16"] } },
1823
normalize: { [READ]: { supported: ["0.1.23"] } },

lib/unsupported-features/node-builtins-modules/perf_hooks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ const perf_hooks = {
3737
toJSON: { [READ]: { supported: ["16.1.0"] } },
3838
},
3939
createHistogram: { [READ]: { supported: ["15.9.0", "14.18.0"] } },
40+
eventLoopUtilization: { [READ]: { supported: ["24.12.0"] } },
41+
timerify: { [READ]: { supported: ["24.12.0"] } },
4042
monitorEventLoopDelay: { [READ]: { supported: ["11.10.0"] } },
4143
PerformanceEntry: { [READ]: { supported: ["8.5.0"] } },
4244
PerformanceMark: { [READ]: { supported: ["18.2.0", "16.17.0"] } },

0 commit comments

Comments
 (0)