eslint-plugin-n 17.21.2 → 17.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/rules/no-deprecated-api.js +3 -0
- package/lib/unsupported-features/node-builtins-modules/assert.js +2 -0
- package/lib/unsupported-features/node-builtins-modules/async_hooks.js +12 -2
- package/lib/unsupported-features/node-builtins-modules/dns.js +2 -0
- package/lib/unsupported-features/node-builtins-modules/events.js +3 -1
- package/lib/unsupported-features/node-builtins-modules/fs.js +6 -4
- package/lib/unsupported-features/node-builtins-modules/http.js +18 -0
- package/lib/unsupported-features/node-builtins-modules/inspector.js +5 -0
- package/lib/unsupported-features/node-builtins-modules/module.js +5 -2
- package/lib/unsupported-features/node-builtins-modules/net.js +8 -2
- package/lib/unsupported-features/node-builtins-modules/process.js +30 -11
- package/lib/unsupported-features/node-builtins-modules/readline.js +2 -2
- package/lib/unsupported-features/node-builtins-modules/repl.js +1 -1
- package/lib/unsupported-features/node-builtins-modules/sqlite.js +25 -3
- package/lib/unsupported-features/node-builtins-modules/stream.js +15 -9
- package/lib/unsupported-features/node-builtins-modules/test.js +4 -0
- package/lib/unsupported-features/node-builtins-modules/tls.js +8 -6
- package/lib/unsupported-features/node-builtins-modules/url.js +2 -2
- package/lib/unsupported-features/node-builtins-modules/util.js +16 -5
- package/lib/unsupported-features/node-builtins-modules/v8.js +5 -1
- package/lib/unsupported-features/node-builtins-modules/worker_threads.js +8 -2
- package/lib/unsupported-features/node-builtins-modules/zlib.js +107 -7
- package/lib/unsupported-features/node-globals.js +17 -17
- package/lib/unsupported-features/node-import-meta.js +7 -2
- package/lib/util/import-target.js +10 -2
- package/package.json +2 -2
|
@@ -365,6 +365,9 @@ const rawModules = {
|
|
|
365
365
|
REPL_MODE_MAGIC: {
|
|
366
366
|
[READ]: { since: "8.0.0", replacedBy: null },
|
|
367
367
|
},
|
|
368
|
+
builtinModules: {
|
|
369
|
+
[READ]: { since: "22.16.0", replacedBy: "module.builtinModules" },
|
|
370
|
+
},
|
|
368
371
|
},
|
|
369
372
|
// safe-buffer.Buffer function/constructror is just a re-export of buffer.Buffer
|
|
370
373
|
// and should be deprecated likewise.
|
|
@@ -6,6 +6,7 @@ const { READ } = require("@eslint-community/eslint-utils")
|
|
|
6
6
|
* @satisfies {import('../types.js').SupportVersionTraceMap}
|
|
7
7
|
*/
|
|
8
8
|
const assert = {
|
|
9
|
+
Assert: { [READ]: { supported: ["22.19.0"] } },
|
|
9
10
|
assert: { [READ]: { supported: ["0.5.9"] } },
|
|
10
11
|
deepEqual: { [READ]: { supported: ["0.1.21"] } },
|
|
11
12
|
deepStrictEqual: { [READ]: { supported: ["1.2.0"] } },
|
|
@@ -31,6 +32,7 @@ const assert = {
|
|
|
31
32
|
notEqual: { [READ]: { supported: ["0.1.21"] } },
|
|
32
33
|
notStrictEqual: { [READ]: { supported: ["0.1.21"] } },
|
|
33
34
|
ok: { [READ]: { supported: ["0.1.21"] } },
|
|
35
|
+
partialDeepStrictEqual: { [READ]: { experimental: ["22.13.0"] } },
|
|
34
36
|
rejects: { [READ]: { supported: ["10.0.0"] } },
|
|
35
37
|
strictEqual: { [READ]: { supported: ["0.1.21"] } },
|
|
36
38
|
throws: { [READ]: { supported: ["0.1.21"] } },
|
|
@@ -15,8 +15,18 @@ const async_hooks = {
|
|
|
15
15
|
experimental: ["13.10.0", "12.17.0"],
|
|
16
16
|
supported: ["16.4.0"],
|
|
17
17
|
},
|
|
18
|
-
bind: {
|
|
19
|
-
|
|
18
|
+
bind: {
|
|
19
|
+
[READ]: {
|
|
20
|
+
experimental: ["19.8.0", "18.16.0"],
|
|
21
|
+
supported: ["22.15.0"],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
snapshot: {
|
|
25
|
+
[READ]: {
|
|
26
|
+
experimental: ["19.8.0", "18.16.0"],
|
|
27
|
+
supported: ["22.15.0"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
20
30
|
},
|
|
21
31
|
AsyncResource: {
|
|
22
32
|
[READ]: {
|
|
@@ -22,6 +22,7 @@ const dns = {
|
|
|
22
22
|
resolvePtr: { [READ]: { supported: ["6.0.0"] } },
|
|
23
23
|
resolveSoa: { [READ]: { supported: ["0.11.10"] } },
|
|
24
24
|
resolveSrv: { [READ]: { supported: ["0.1.27"] } },
|
|
25
|
+
resolveTlsa: { [READ]: { supported: ["22.15.0"] } },
|
|
25
26
|
resolveTxt: { [READ]: { supported: ["0.1.27"] } },
|
|
26
27
|
reverse: { [READ]: { supported: ["0.1.16"] } },
|
|
27
28
|
setDefaultResultOrder: { [READ]: { supported: ["16.4.0", "14.18.0"] } },
|
|
@@ -50,6 +51,7 @@ const dns = {
|
|
|
50
51
|
resolvePtr: { [READ]: { supported: ["10.6.0"] } },
|
|
51
52
|
resolveSoa: { [READ]: { supported: ["10.6.0"] } },
|
|
52
53
|
resolveSrv: { [READ]: { supported: ["10.6.0"] } },
|
|
54
|
+
resolveTlsa: { [READ]: { supported: ["22.15.0"] } },
|
|
53
55
|
resolveTxt: { [READ]: { supported: ["10.6.0"] } },
|
|
54
56
|
reverse: { [READ]: { supported: ["10.6.0"] } },
|
|
55
57
|
setDefaultResultOrder: { [READ]: { supported: ["16.4.0", "14.18.0"] } },
|
|
@@ -26,7 +26,9 @@ const EventEmitterStatic = {
|
|
|
26
26
|
listenerCount: { [READ]: { supported: ["0.9.12"], deprecated: ["3.2.0"] } },
|
|
27
27
|
on: { [READ]: { supported: ["13.6.0", "12.16.0"] } },
|
|
28
28
|
setMaxListeners: { [READ]: { supported: ["15.4.0"] } },
|
|
29
|
-
addAbortListener: {
|
|
29
|
+
addAbortListener: {
|
|
30
|
+
[READ]: { experimental: ["20.5.0", "18.18.0"], supported: ["22.16.0"] },
|
|
31
|
+
},
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
/**
|
|
@@ -14,7 +14,7 @@ const promises_api = {
|
|
|
14
14
|
constants: { [READ]: { supported: ["18.4.0", "16.17.0"] } },
|
|
15
15
|
copyFile: { [READ]: { supported: ["10.0.0"] } },
|
|
16
16
|
cp: { [READ]: { supported: ["22.3.0"], experimental: ["16.7.0"] } },
|
|
17
|
-
glob: { [READ]: { experimental: ["22.0.0"] } },
|
|
17
|
+
glob: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
|
|
18
18
|
lchmod: { [READ]: { supported: ["10.0.0"], deprecated: ["10.0.0"] } },
|
|
19
19
|
lchown: { [READ]: { supported: ["10.0.0"] } },
|
|
20
20
|
link: { [READ]: { supported: ["10.0.0"] } },
|
|
@@ -62,7 +62,7 @@ const callback_api = {
|
|
|
62
62
|
fsync: { [READ]: { supported: ["0.1.96"] } },
|
|
63
63
|
ftruncate: { [READ]: { supported: ["0.8.6"] } },
|
|
64
64
|
futimes: { [READ]: { supported: ["0.4.2"] } },
|
|
65
|
-
glob: { [READ]: { experimental: ["22.0.0"] } },
|
|
65
|
+
glob: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
|
|
66
66
|
lchmod: { [READ]: { supported: ["0.1.8"], deprecated: ["0.4.7"] } },
|
|
67
67
|
lchown: { [READ]: { supported: ["0.1.8"] } },
|
|
68
68
|
link: { [READ]: { supported: ["0.1.31"] } },
|
|
@@ -72,7 +72,9 @@ const callback_api = {
|
|
|
72
72
|
mkdtemp: { [READ]: { supported: ["5.10.0"] } },
|
|
73
73
|
native: { [READ]: { supported: ["9.2.0"] } },
|
|
74
74
|
open: { [READ]: { supported: ["0.0.2"] } },
|
|
75
|
-
openAsBlob: {
|
|
75
|
+
openAsBlob: {
|
|
76
|
+
[READ]: { experimental: ["19.8.0"], supported: ["22.17.0"] },
|
|
77
|
+
},
|
|
76
78
|
opendir: { [READ]: { supported: ["12.12.0"] } },
|
|
77
79
|
read: { [READ]: { supported: ["0.0.2"] } },
|
|
78
80
|
readdir: { [READ]: { supported: ["0.1.8"] } },
|
|
@@ -119,7 +121,7 @@ const synchronous_api = {
|
|
|
119
121
|
fsyncSync: { [READ]: { supported: ["0.1.96"] } },
|
|
120
122
|
ftruncateSync: { [READ]: { supported: ["0.8.6"] } },
|
|
121
123
|
futimesSync: { [READ]: { supported: ["0.4.2"] } },
|
|
122
|
-
globSync: { [READ]: { experimental: ["22.0.0"] } },
|
|
124
|
+
globSync: { [READ]: { experimental: ["22.0.0"], supported: ["22.17.0"] } },
|
|
123
125
|
lchmodSync: { [READ]: { supported: ["0.1.8"], deprecated: ["0.4.7"] } },
|
|
124
126
|
lchownSync: { [READ]: { supported: ["0.1.8"] } },
|
|
125
127
|
linkSync: { [READ]: { supported: ["0.1.31"] } },
|
|
@@ -37,4 +37,22 @@ module.exports = {
|
|
|
37
37
|
[READ]: { supported: ["14.13.1", "12.20.0"] },
|
|
38
38
|
...http,
|
|
39
39
|
},
|
|
40
|
+
"node:_http_agent": {
|
|
41
|
+
[READ]: { deprecated: ["22.19.0"] },
|
|
42
|
+
},
|
|
43
|
+
"node:_http_client": {
|
|
44
|
+
[READ]: { deprecated: ["22.19.0"] },
|
|
45
|
+
},
|
|
46
|
+
"node:_http_common": {
|
|
47
|
+
[READ]: { deprecated: ["22.19.0"] },
|
|
48
|
+
},
|
|
49
|
+
"node:_http_incoming": {
|
|
50
|
+
[READ]: { deprecated: ["22.19.0"] },
|
|
51
|
+
},
|
|
52
|
+
"node:_http_outgoing": {
|
|
53
|
+
[READ]: { deprecated: ["22.19.0"] },
|
|
54
|
+
},
|
|
55
|
+
"node:_http_server": {
|
|
56
|
+
[READ]: { deprecated: ["22.19.0"] },
|
|
57
|
+
},
|
|
40
58
|
}
|
|
@@ -7,11 +7,16 @@ const { READ } = require("@eslint-community/eslint-utils")
|
|
|
7
7
|
*/
|
|
8
8
|
const common_objects = {
|
|
9
9
|
Network: {
|
|
10
|
+
dataReceived: { [READ]: { supported: ["22.17.0"] } },
|
|
11
|
+
dataSent: { [READ]: { supported: ["22.18.0"] } },
|
|
10
12
|
loadingFailed: { [READ]: { experimental: ["22.7.0", "20.18.0"] } },
|
|
11
13
|
loadingFinished: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
|
|
12
14
|
requestWillBeSent: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
|
|
13
15
|
responseReceived: { [READ]: { experimental: ["22.6.0", "20.18.0"] } },
|
|
14
16
|
},
|
|
17
|
+
NetworkResources: {
|
|
18
|
+
put: { [READ]: { experimental: ["22.19.0"] } },
|
|
19
|
+
},
|
|
15
20
|
console: { [READ]: { supported: ["8.0.0"] } },
|
|
16
21
|
close: { [READ]: { supported: ["9.0.0"] } },
|
|
17
22
|
open: { [READ]: { supported: ["8.0.0"] } },
|
|
@@ -20,12 +20,15 @@ const Module = {
|
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
enableCompileCache: { [READ]: { experimental: ["22.8.0"] } },
|
|
23
|
-
findPackageJSON: { [READ]: { experimental: ["23.2.0"] } },
|
|
23
|
+
findPackageJSON: { [READ]: { experimental: ["23.2.0", "22.14.0"] } },
|
|
24
24
|
flushCompileCache: { [READ]: { experimental: ["23.0.0", "22.10.0"] } },
|
|
25
25
|
getCompileCacheDir: { [READ]: { experimental: ["22.8.0"] } },
|
|
26
|
+
getSourceMapsSupport: { [READ]: { supported: ["22.14.0"] } },
|
|
26
27
|
isBuiltin: { [READ]: { supported: ["18.6.0", "16.17.0"] } },
|
|
28
|
+
registerHooks: { [READ]: { experimental: ["22.15.0"] } },
|
|
27
29
|
register: { [READ]: { experimental: ["20.6.0"] } },
|
|
28
|
-
|
|
30
|
+
setSourceMapsSupport: { [READ]: { supported: ["22.14.0"] } },
|
|
31
|
+
stripTypeScriptTypes: { [READ]: { experimental: ["23.2.0", "22.13.0"] } },
|
|
29
32
|
syncBuiltinESMExports: { [READ]: { supported: ["12.12.0"] } },
|
|
30
33
|
findSourceMap: { [READ]: { supported: ["13.7.0", "12.17.0"] } },
|
|
31
34
|
SourceMap: { [READ]: { supported: ["13.7.0", "12.17.0"] } },
|
|
@@ -20,8 +20,14 @@ const net = {
|
|
|
20
20
|
isIP: { [READ]: { supported: ["0.3.0"] } },
|
|
21
21
|
isIPv4: { [READ]: { supported: ["0.3.0"] } },
|
|
22
22
|
isIPv6: { [READ]: { supported: ["0.3.0"] } },
|
|
23
|
-
BlockList: {
|
|
24
|
-
|
|
23
|
+
BlockList: {
|
|
24
|
+
[READ]: { supported: ["15.0.0", "14.18.0"] },
|
|
25
|
+
isBlockList: { [READ]: { supported: ["22.13.0"] } },
|
|
26
|
+
},
|
|
27
|
+
SocketAddress: {
|
|
28
|
+
[READ]: { supported: ["15.14.0", "14.18.0"] },
|
|
29
|
+
parse: { [READ]: { supported: ["22.13.0"] } },
|
|
30
|
+
},
|
|
25
31
|
Server: { [READ]: { supported: ["0.1.90"] } },
|
|
26
32
|
Socket: { [READ]: { supported: ["0.3.4"] } },
|
|
27
33
|
}
|
|
@@ -7,7 +7,9 @@ const { READ } = require("@eslint-community/eslint-utils")
|
|
|
7
7
|
*/
|
|
8
8
|
const process = {
|
|
9
9
|
allowedNodeEnvironmentFlags: { [READ]: { supported: ["10.10.0"] } },
|
|
10
|
-
availableMemory: {
|
|
10
|
+
availableMemory: {
|
|
11
|
+
[READ]: { experimental: ["22.0.0", "20.13.0"], supported: ["22.16.0"] },
|
|
12
|
+
},
|
|
11
13
|
arch: { [READ]: { supported: ["0.5.0"] } },
|
|
12
14
|
argv: { [READ]: { supported: ["0.1.27"] } },
|
|
13
15
|
argv0: { [READ]: { supported: ["6.4.0"] } },
|
|
@@ -18,19 +20,29 @@ const process = {
|
|
|
18
20
|
env: { [READ]: { supported: ["0.1.27"] } },
|
|
19
21
|
execArgv: { [READ]: { supported: ["0.7.7"] } },
|
|
20
22
|
execPath: { [READ]: { supported: ["0.1.100"] } },
|
|
23
|
+
execve: { [READ]: { experimental: ["22.15.0"] } },
|
|
21
24
|
exitCode: { [READ]: { supported: ["0.11.8"] } },
|
|
22
25
|
features: {
|
|
23
26
|
cached_builtins: { [READ]: { supported: ["12.0.0"] } },
|
|
24
27
|
debug: { [READ]: { supported: ["0.5.5"] } },
|
|
25
28
|
inspector: { [READ]: { supported: ["11.10.0"] } },
|
|
26
|
-
ipv6: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
ipv6: {
|
|
30
|
+
[READ]: {
|
|
31
|
+
supported: ["0.5.3"],
|
|
32
|
+
deprecated: ["22.13.0"],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
require_module: {
|
|
36
|
+
[READ]: { supported: ["23.0.0", "22.10.0", "20.19.0"] },
|
|
37
|
+
},
|
|
38
|
+
tls: { [READ]: { supported: ["0.5.3"], deprecated: ["22.13.0"] } },
|
|
39
|
+
tls_alpn: { [READ]: { supported: ["4.8.0"], deprecated: ["22.13.0"] } },
|
|
40
|
+
tls_ocsp: {
|
|
41
|
+
[READ]: { supported: ["0.11.13"], deprecated: ["22.13.0"] },
|
|
42
|
+
},
|
|
43
|
+
tls_sni: { [READ]: { supported: ["0.5.3"], deprecated: ["22.13.0"] } },
|
|
32
44
|
typescript: { [READ]: { experimental: ["23.0.0", "22.10.0"] } },
|
|
33
|
-
uv: { [READ]: { supported: ["0.5.3"] } },
|
|
45
|
+
uv: { [READ]: { supported: ["0.5.3"], deprecated: ["22.13.0"] } },
|
|
34
46
|
},
|
|
35
47
|
finalization: {
|
|
36
48
|
register: { [READ]: { experimental: ["22.5.0"] } },
|
|
@@ -49,13 +61,14 @@ const process = {
|
|
|
49
61
|
pid: { [READ]: { supported: ["0.1.15"] } },
|
|
50
62
|
platform: { [READ]: { supported: ["0.1.16"] } },
|
|
51
63
|
ppid: { [READ]: { supported: ["9.2.0", "8.10.0", "6.13.0"] } },
|
|
64
|
+
ref: { [READ]: { experimental: ["22.14.0"] } },
|
|
52
65
|
release: { [READ]: { supported: ["3.0.0"] } },
|
|
53
66
|
report: {
|
|
54
67
|
[READ]: {
|
|
55
68
|
experimental: ["11.8.0"],
|
|
56
69
|
supported: ["13.12.0", "12.17.0"],
|
|
57
70
|
},
|
|
58
|
-
excludeEnv: { [READ]: { supported: ["23.3.0"] } },
|
|
71
|
+
excludeEnv: { [READ]: { supported: ["23.3.0", "22.13.0"] } },
|
|
59
72
|
},
|
|
60
73
|
sourceMapsEnabled: { [READ]: { experimental: ["20.7.0"] } },
|
|
61
74
|
stdin: {
|
|
@@ -96,6 +109,7 @@ const process = {
|
|
|
96
109
|
moveCursor: { [READ]: { supported: ["0.7.7"] } },
|
|
97
110
|
rows: { [READ]: { supported: ["0.7.7"] } },
|
|
98
111
|
},
|
|
112
|
+
threadCpuUsage: { [READ]: { supported: ["22.19.0"] } },
|
|
99
113
|
throwDeprecation: { [READ]: { supported: ["0.9.12"] } },
|
|
100
114
|
title: { [READ]: { supported: ["0.1.104"] } },
|
|
101
115
|
traceDeprecation: { [READ]: { supported: ["0.8.0"] } },
|
|
@@ -104,14 +118,18 @@ const process = {
|
|
|
104
118
|
|
|
105
119
|
abort: { [READ]: { supported: ["0.7.0"] } },
|
|
106
120
|
chdir: { [READ]: { supported: ["0.1.17"] } },
|
|
107
|
-
constrainedMemory: {
|
|
121
|
+
constrainedMemory: {
|
|
122
|
+
[READ]: { experimental: ["19.6.0", "18.15.0"], supported: ["22.16.0"] },
|
|
123
|
+
},
|
|
108
124
|
cpuUsage: { [READ]: { supported: ["6.1.0"] } },
|
|
109
125
|
cwd: { [READ]: { supported: ["0.1.8"] } },
|
|
110
126
|
disconnect: { [READ]: { supported: ["0.7.2"] } },
|
|
111
127
|
dlopen: { [READ]: { supported: ["0.1.16"] } },
|
|
112
128
|
emitWarning: { [READ]: { supported: ["6.0.0"] } },
|
|
113
129
|
exit: { [READ]: { supported: ["0.1.13"] } },
|
|
114
|
-
getActiveResourcesInfo: {
|
|
130
|
+
getActiveResourcesInfo: {
|
|
131
|
+
[READ]: { experimental: ["17.3.0", "16.14.0"], supported: ["22.16.0"] },
|
|
132
|
+
},
|
|
115
133
|
getegid: { [READ]: { supported: ["2.0.0"] } },
|
|
116
134
|
geteuid: { [READ]: { supported: ["2.0.0"] } },
|
|
117
135
|
getgid: { [READ]: { supported: ["0.1.31"] } },
|
|
@@ -138,6 +156,7 @@ const process = {
|
|
|
138
156
|
setSourceMapsEnabled: { [READ]: { experimental: ["16.6.0", "14.18.0"] } },
|
|
139
157
|
setUncaughtExceptionCaptureCallback: { [READ]: { supported: ["9.3.0"] } },
|
|
140
158
|
umask: { [READ]: { supported: ["0.1.19"] } },
|
|
159
|
+
unref: { [READ]: { experimental: ["22.14.0"] } },
|
|
141
160
|
uptime: { [READ]: { supported: ["0.5.0"] } },
|
|
142
161
|
}
|
|
143
162
|
|
|
@@ -43,11 +43,11 @@ module.exports = {
|
|
|
43
43
|
},
|
|
44
44
|
|
|
45
45
|
"readline/promises": {
|
|
46
|
-
[READ]: { experimental: ["17.0.0"] },
|
|
46
|
+
[READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] },
|
|
47
47
|
...promises_api,
|
|
48
48
|
},
|
|
49
49
|
"node:readline/promises": {
|
|
50
|
-
[READ]: { experimental: ["17.0.0"] },
|
|
50
|
+
[READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] },
|
|
51
51
|
...promises_api,
|
|
52
52
|
},
|
|
53
53
|
}
|
|
@@ -6,11 +6,33 @@ const { READ } = require("@eslint-community/eslint-utils")
|
|
|
6
6
|
* @satisfies {import('../types.js').SupportVersionTraceMap}
|
|
7
7
|
*/
|
|
8
8
|
const sqlite = {
|
|
9
|
+
constants: {
|
|
10
|
+
[READ]: { supported: ["22.13.0"] },
|
|
11
|
+
SQLITE_CHANGESET_OMIT: { [READ]: { supported: ["22.13.0"] } },
|
|
12
|
+
SQLITE_CHANGESET_REPLACE: { [READ]: { supported: ["22.13.0"] } },
|
|
13
|
+
SQLITE_CHANGESET_ABORT: { [READ]: { supported: ["22.13.0"] } },
|
|
14
|
+
},
|
|
15
|
+
backup: { [READ]: { supported: ["22.16.0"] } },
|
|
9
16
|
DatabaseSync: { [READ]: { supported: ["22.5.0"] } },
|
|
10
17
|
StatementSync: { [READ]: { supported: ["22.5.0"] } },
|
|
11
|
-
SQLITE_CHANGESET_OMIT: {
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
SQLITE_CHANGESET_OMIT: {
|
|
19
|
+
[READ]: {
|
|
20
|
+
experimental: ["22.12.0"],
|
|
21
|
+
deprecated: ["22.13.0"],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
SQLITE_CHANGESET_REPLACE: {
|
|
25
|
+
[READ]: {
|
|
26
|
+
experimental: ["22.12.0"],
|
|
27
|
+
deprecated: ["22.13.0"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
SQLITE_CHANGESET_ABORT: {
|
|
31
|
+
[READ]: {
|
|
32
|
+
experimental: ["22.12.0"],
|
|
33
|
+
deprecated: ["22.13.0"],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
14
36
|
}
|
|
15
37
|
|
|
16
38
|
/**
|
|
@@ -8,9 +8,11 @@ const { READ } = require("@eslint-community/eslint-utils")
|
|
|
8
8
|
const Readable = {
|
|
9
9
|
[READ]: { supported: ["0.9.4"] },
|
|
10
10
|
from: { [READ]: { supported: ["12.3.0", "10.17.0"] } },
|
|
11
|
-
isDisturbed: {
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
isDisturbed: {
|
|
12
|
+
[READ]: { experimental: ["16.8.0"], supported: ["22.17.0"] },
|
|
13
|
+
},
|
|
14
|
+
fromWeb: { [READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] } },
|
|
15
|
+
toWeb: { [READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] } },
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
/**
|
|
@@ -18,8 +20,8 @@ const Readable = {
|
|
|
18
20
|
*/
|
|
19
21
|
const Writable = {
|
|
20
22
|
[READ]: { supported: ["0.9.4"] },
|
|
21
|
-
fromWeb: { [READ]: { experimental: ["17.0.0"] } },
|
|
22
|
-
toWeb: { [READ]: { experimental: ["17.0.0"] } },
|
|
23
|
+
fromWeb: { [READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] } },
|
|
24
|
+
toWeb: { [READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] } },
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
/**
|
|
@@ -28,8 +30,8 @@ const Writable = {
|
|
|
28
30
|
const Duplex = {
|
|
29
31
|
[READ]: { supported: ["0.9.4"] },
|
|
30
32
|
from: { [READ]: { supported: ["16.8.0"] } },
|
|
31
|
-
fromWeb: { [READ]: { experimental: ["17.0.0"] } },
|
|
32
|
-
toWeb: { [READ]: { experimental: ["17.0.0"] } },
|
|
33
|
+
fromWeb: { [READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] } },
|
|
34
|
+
toWeb: { [READ]: { experimental: ["17.0.0"], supported: ["22.17.0"] } },
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
const Transform = Duplex
|
|
@@ -60,8 +62,12 @@ const Stream = {
|
|
|
60
62
|
Duplex,
|
|
61
63
|
Transform,
|
|
62
64
|
|
|
63
|
-
isErrored: {
|
|
64
|
-
|
|
65
|
+
isErrored: {
|
|
66
|
+
[READ]: { experimental: ["17.3.0", "16.14.0"], supported: ["22.17.0"] },
|
|
67
|
+
},
|
|
68
|
+
isReadable: {
|
|
69
|
+
[READ]: { experimental: ["17.4.0", "16.14.0"], supported: ["22.17.0"] },
|
|
70
|
+
},
|
|
65
71
|
addAbortSignal: { [READ]: { supported: ["15.4.0"] } },
|
|
66
72
|
getDefaultHighWaterMark: { [READ]: { supported: ["19.9.0", "18.17.0"] } },
|
|
67
73
|
setDefaultHighWaterMark: { [READ]: { supported: ["19.9.0", "18.17.0"] } },
|
|
@@ -219,6 +219,10 @@ const suite = {
|
|
|
219
219
|
const test = {
|
|
220
220
|
after: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
|
|
221
221
|
afterEach: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
|
|
222
|
+
assert: {
|
|
223
|
+
[READ]: { supported: ["22.14.0"] },
|
|
224
|
+
register: { [READ]: { supported: ["22.14.0"] } },
|
|
225
|
+
},
|
|
222
226
|
before: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
|
|
223
227
|
beforeEach: { [READ]: { supported: ["18.8.0", "16.18.0"] } },
|
|
224
228
|
describe: suite,
|
|
@@ -6,11 +6,6 @@ const { READ } = require("@eslint-community/eslint-utils")
|
|
|
6
6
|
* @satisfies {import('../types.js').SupportVersionTraceMap}
|
|
7
7
|
*/
|
|
8
8
|
const tls = {
|
|
9
|
-
rootCertificates: { [READ]: { supported: ["12.3.0"] } },
|
|
10
|
-
DEFAULT_ECDH_CURVE: { [READ]: { supported: ["0.11.13"] } },
|
|
11
|
-
DEFAULT_MAX_VERSION: { [READ]: { supported: ["11.4.0"] } },
|
|
12
|
-
DEFAULT_MIN_VERSION: { [READ]: { supported: ["11.4.0"] } },
|
|
13
|
-
DEFAULT_CIPHERS: { [READ]: { supported: ["19.8.0", "18.16.0"] } },
|
|
14
9
|
checkServerIdentity: { [READ]: { supported: ["0.8.4"] } },
|
|
15
10
|
connect: { [READ]: { supported: ["0.11.3"] } },
|
|
16
11
|
createSecureContext: { [READ]: { supported: ["0.11.13"] } },
|
|
@@ -18,11 +13,18 @@ const tls = {
|
|
|
18
13
|
[READ]: { supported: ["0.3.2"], deprecated: ["0.11.3"] },
|
|
19
14
|
},
|
|
20
15
|
createServer: { [READ]: { supported: ["0.3.2"] } },
|
|
16
|
+
CryptoStream: { [READ]: { supported: ["0.3.4"], deprecated: ["0.11.3"] } },
|
|
17
|
+
DEFAULT_CIPHERS: { [READ]: { supported: ["19.8.0", "18.16.0"] } },
|
|
18
|
+
DEFAULT_ECDH_CURVE: { [READ]: { supported: ["0.11.13"] } },
|
|
19
|
+
DEFAULT_MAX_VERSION: { [READ]: { supported: ["11.4.0"] } },
|
|
20
|
+
DEFAULT_MIN_VERSION: { [READ]: { supported: ["11.4.0"] } },
|
|
21
|
+
getCACertificates: { [READ]: { supported: ["22.15.0"] } },
|
|
21
22
|
getCiphers: { [READ]: { supported: ["0.10.2"] } },
|
|
23
|
+
rootCertificates: { [READ]: { supported: ["12.3.0"] } },
|
|
22
24
|
SecureContext: { [READ]: { supported: ["0.11.13"] } },
|
|
23
|
-
CryptoStream: { [READ]: { supported: ["0.3.4"], deprecated: ["0.11.3"] } },
|
|
24
25
|
SecurePair: { [READ]: { supported: ["0.3.2"], deprecated: ["0.11.3"] } },
|
|
25
26
|
Server: { [READ]: { supported: ["0.3.2"] } },
|
|
27
|
+
setDefaultCACertificates: { [READ]: { supported: ["22.19.0"] } },
|
|
26
28
|
TLSSocket: { [READ]: { supported: ["0.11.4"] } },
|
|
27
29
|
}
|
|
28
30
|
|
|
@@ -15,8 +15,8 @@ const url = {
|
|
|
15
15
|
URL: {
|
|
16
16
|
[READ]: { supported: ["7.0.0", "6.13.0"] },
|
|
17
17
|
canParse: { [READ]: { supported: ["19.9.0"] } },
|
|
18
|
-
createObjectURL: { [READ]: { experimental: ["16.7.0"] } },
|
|
19
|
-
revokeObjectURL: { [READ]: { experimental: ["16.7.0"] } },
|
|
18
|
+
createObjectURL: { [READ]: { experimental: ["16.7.0"], supported: ["22.17.0"] } },
|
|
19
|
+
revokeObjectURL: { [READ]: { experimental: ["16.7.0"], supported: ["22.17.0"] } },
|
|
20
20
|
},
|
|
21
21
|
URLSearchParams: { [READ]: { supported: ["7.5.0", "6.13.0"] } },
|
|
22
22
|
Url: { [READ]: { supported: ["0.1.25"] } },
|
|
@@ -43,6 +43,7 @@ const types = {
|
|
|
43
43
|
isInt8Array: { [READ]: { supported: ["10.0.0"] } },
|
|
44
44
|
isInt16Array: { [READ]: { supported: ["10.0.0"] } },
|
|
45
45
|
isInt32Array: { [READ]: { supported: ["10.0.0"] } },
|
|
46
|
+
isFloat16Array: { [READ]: { supported: ["22.16.0"] } },
|
|
46
47
|
isFloat32Array: { [READ]: { supported: ["10.0.0"] } },
|
|
47
48
|
isFloat64Array: { [READ]: { supported: ["10.0.0"] } },
|
|
48
49
|
isBigInt64Array: { [READ]: { supported: ["10.0.0"] } },
|
|
@@ -92,6 +93,7 @@ const util = {
|
|
|
92
93
|
debuglog: { [READ]: { supported: ["0.11.3"] } },
|
|
93
94
|
debug: { [READ]: { supported: ["14.9.0"] } },
|
|
94
95
|
deprecate: { [READ]: { supported: ["0.8.0"] } },
|
|
96
|
+
diff: { [READ]: { experimental: ["22.15.0"] } },
|
|
95
97
|
format: { [READ]: { supported: ["0.5.3"] } },
|
|
96
98
|
formatWithOptions: { [READ]: { supported: ["10.0.0"] } },
|
|
97
99
|
getCallSite: {
|
|
@@ -113,13 +115,22 @@ const util = {
|
|
|
113
115
|
[READ]: { experimental: ["18.3.0", "16.17.0"], supported: ["20.0.0"] },
|
|
114
116
|
},
|
|
115
117
|
parseEnv: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
|
|
118
|
+
setTraceSigInt: { [READ]: { supported: ["22.19.0"] } },
|
|
116
119
|
stripVTControlCharacters: { [READ]: { supported: ["16.11.0"] } },
|
|
117
|
-
styleText: { [READ]: { supported: ["20.12.0", "21.7.0"] } },
|
|
120
|
+
styleText: { [READ]: { supported: ["20.12.0", "21.7.0", "22.13.0"] } },
|
|
118
121
|
toUSVString: { [READ]: { supported: ["16.8.0", "14.18.0"] } },
|
|
119
|
-
transferableAbortController: {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
transferableAbortController: {
|
|
123
|
+
[READ]: { experimental: ["18.11.0"], supported: ["22.15.0"] },
|
|
124
|
+
},
|
|
125
|
+
transferableAbortSignal: {
|
|
126
|
+
[READ]: { experimental: ["18.11.0"], supported: ["22.15.0"] },
|
|
127
|
+
},
|
|
128
|
+
aborted: {
|
|
129
|
+
[READ]: { experimental: ["19.7.0", "18.16.0"], supported: ["22.16.0"] },
|
|
130
|
+
},
|
|
131
|
+
MIMEType: {
|
|
132
|
+
[READ]: { experimental: ["19.1.0", "18.13.0"], supported: ["22.15.0"] },
|
|
133
|
+
},
|
|
123
134
|
MIMEParams: { [READ]: { supported: ["19.1.0", "18.13.0"] } },
|
|
124
135
|
TextDecoder: { [READ]: { experimental: ["8.3.0"], supported: ["8.9.0"] } },
|
|
125
136
|
TextEncoder: { [READ]: { experimental: ["8.3.0"], supported: ["8.9.0"] } },
|
|
@@ -36,13 +36,17 @@ const v8 = {
|
|
|
36
36
|
getHeapSnapshot: { [READ]: { supported: ["11.13.0"] } },
|
|
37
37
|
getHeapSpaceStatistics: { [READ]: { supported: ["6.0.0"] } },
|
|
38
38
|
getHeapStatistics: { [READ]: { supported: ["1.0.0"] } },
|
|
39
|
+
isStringOneByteRepresentation: { [READ]: { supported: ["22.15.0"] } },
|
|
39
40
|
queryObjects: { [READ]: { experimental: ["22.0.0", "20.13.0"] } },
|
|
40
41
|
setFlagsFromString: { [READ]: { supported: ["1.0.0"] } },
|
|
41
42
|
stopCoverage: { [READ]: { supported: ["15.1.0", "14.18.0", "12.22.0"] } },
|
|
42
43
|
takeCoverage: { [READ]: { supported: ["15.1.0", "14.18.0", "12.22.0"] } },
|
|
43
44
|
writeHeapSnapshot: { [READ]: { supported: ["11.13.0"] } },
|
|
44
45
|
setHeapSnapshotNearHeapLimit: {
|
|
45
|
-
[READ]: {
|
|
46
|
+
[READ]: {
|
|
47
|
+
experimental: ["18.10.0", "16.18.0"],
|
|
48
|
+
supported: ["22.17.0"],
|
|
49
|
+
},
|
|
46
50
|
},
|
|
47
51
|
GCProfiler: { [READ]: { supported: ["19.6.0", "18.15.0"] } },
|
|
48
52
|
}
|
|
@@ -6,7 +6,6 @@ const { READ } = require("@eslint-community/eslint-utils")
|
|
|
6
6
|
* @satisfies {import('../types.js').SupportVersionTraceMap}
|
|
7
7
|
*/
|
|
8
8
|
const worker_threads = {
|
|
9
|
-
isMainThread: { [READ]: { supported: ["10.5.0"] } },
|
|
10
9
|
parentPort: { [READ]: { supported: ["10.5.0"] } },
|
|
11
10
|
resourceLimits: { [READ]: { supported: ["13.2.0", "12.16.0"] } },
|
|
12
11
|
SHARE_ENV: { [READ]: { supported: ["11.14.0"] } },
|
|
@@ -18,11 +17,18 @@ const worker_threads = {
|
|
|
18
17
|
supported: ["17.5.0", "16.15.0"],
|
|
19
18
|
},
|
|
20
19
|
},
|
|
20
|
+
getHeapStatistics: {
|
|
21
|
+
[READ]: {
|
|
22
|
+
supported: ["22.16.0"],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
21
25
|
markAsUncloneable: { [READ]: { supported: ["23.0.0", "22.10.0"] } },
|
|
22
26
|
markAsUntransferable: { [READ]: { supported: ["14.5.0", "12.19.0"] } },
|
|
27
|
+
isInternalThread: { [READ]: { supported: ["22.14.0"] } },
|
|
28
|
+
isMainThread: { [READ]: { supported: ["10.5.0"] } },
|
|
23
29
|
isMarkedAsUntransferable: { [READ]: { supported: ["21.0.0"] } },
|
|
24
30
|
moveMessagePortToContext: { [READ]: { supported: ["11.13.0"] } },
|
|
25
|
-
postMessageToThread: { [READ]: { experimental: ["22.5.0"] } },
|
|
31
|
+
postMessageToThread: { [READ]: { experimental: ["22.5.0", "20.19.0"] } },
|
|
26
32
|
receiveMessageOnPort: { [READ]: { supported: ["12.3.0"] } },
|
|
27
33
|
setEnvironmentData: {
|
|
28
34
|
[READ]: {
|
|
@@ -2,11 +2,105 @@
|
|
|
2
2
|
|
|
3
3
|
const { CALL, READ } = require("@eslint-community/eslint-utils")
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @satisfies {import('../types.js').SupportVersionTraceMap}
|
|
7
|
+
*/
|
|
8
|
+
const ZSTDConstants = {
|
|
9
|
+
ZSTD_e_continue: { [READ]: { experimental: ["22.15.0"] } },
|
|
10
|
+
ZSTD_e_flush: { [READ]: { experimental: ["22.15.0"] } },
|
|
11
|
+
ZSTD_e_end: { [READ]: { experimental: ["22.15.0"] } },
|
|
12
|
+
ZSTD_fast: { [READ]: { experimental: ["22.15.0"] } },
|
|
13
|
+
ZSTD_dfast: { [READ]: { experimental: ["22.15.0"] } },
|
|
14
|
+
ZSTD_greedy: { [READ]: { experimental: ["22.15.0"] } },
|
|
15
|
+
ZSTD_lazy: { [READ]: { experimental: ["22.15.0"] } },
|
|
16
|
+
ZSTD_lazy2: { [READ]: { experimental: ["22.15.0"] } },
|
|
17
|
+
ZSTD_btlazy2: { [READ]: { experimental: ["22.15.0"] } },
|
|
18
|
+
ZSTD_btopt: { [READ]: { experimental: ["22.15.0"] } },
|
|
19
|
+
ZSTD_btultra: { [READ]: { experimental: ["22.15.0"] } },
|
|
20
|
+
ZSTD_btultra2: { [READ]: { experimental: ["22.15.0"] } },
|
|
21
|
+
ZSTD_c_compressionLevel: { [READ]: { experimental: ["22.15.0"] } },
|
|
22
|
+
ZSTD_c_windowLog: { [READ]: { experimental: ["22.15.0"] } },
|
|
23
|
+
ZSTD_c_hashLog: { [READ]: { experimental: ["22.15.0"] } },
|
|
24
|
+
ZSTD_c_chainLog: { [READ]: { experimental: ["22.15.0"] } },
|
|
25
|
+
ZSTD_c_searchLog: { [READ]: { experimental: ["22.15.0"] } },
|
|
26
|
+
ZSTD_c_minMatch: { [READ]: { experimental: ["22.15.0"] } },
|
|
27
|
+
ZSTD_c_targetLength: { [READ]: { experimental: ["22.15.0"] } },
|
|
28
|
+
ZSTD_c_strategy: { [READ]: { experimental: ["22.15.0"] } },
|
|
29
|
+
ZSTD_c_enableLongDistanceMatching: {
|
|
30
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
31
|
+
},
|
|
32
|
+
ZSTD_c_ldmHashLog: { [READ]: { experimental: ["22.15.0"] } },
|
|
33
|
+
ZSTD_c_ldmMinMatch: { [READ]: { experimental: ["22.15.0"] } },
|
|
34
|
+
ZSTD_c_ldmBucketSizeLog: { [READ]: { experimental: ["22.15.0"] } },
|
|
35
|
+
ZSTD_c_ldmHashRateLog: { [READ]: { experimental: ["22.15.0"] } },
|
|
36
|
+
ZSTD_c_contentSizeFlag: { [READ]: { experimental: ["22.15.0"] } },
|
|
37
|
+
ZSTD_c_checksumFlag: { [READ]: { experimental: ["22.15.0"] } },
|
|
38
|
+
ZSTD_c_dictIDFlag: { [READ]: { experimental: ["22.15.0"] } },
|
|
39
|
+
ZSTD_c_nbWorkers: { [READ]: { experimental: ["22.15.0"] } },
|
|
40
|
+
ZSTD_c_jobSize: { [READ]: { experimental: ["22.15.0"] } },
|
|
41
|
+
ZSTD_c_overlapLog: { [READ]: { experimental: ["22.15.0"] } },
|
|
42
|
+
ZSTD_d_windowLogMax: { [READ]: { experimental: ["22.15.0"] } },
|
|
43
|
+
ZSTD_CLEVEL_DEFAULT: { [READ]: { experimental: ["22.15.0"] } },
|
|
44
|
+
ZSTD_error_no_error: { [READ]: { experimental: ["22.15.0"] } },
|
|
45
|
+
ZSTD_error_GENERIC: { [READ]: { experimental: ["22.15.0"] } },
|
|
46
|
+
ZSTD_error_prefix_unknown: { [READ]: { experimental: ["22.15.0"] } },
|
|
47
|
+
ZSTD_error_version_unsupported: { [READ]: { experimental: ["22.15.0"] } },
|
|
48
|
+
ZSTD_error_frameParameter_unsupported: {
|
|
49
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
50
|
+
},
|
|
51
|
+
ZSTD_error_frameParameter_windowTooLarge: {
|
|
52
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
53
|
+
},
|
|
54
|
+
ZSTD_error_corruption_detected: { [READ]: { experimental: ["22.15.0"] } },
|
|
55
|
+
ZSTD_error_checksum_wrong: { [READ]: { experimental: ["22.15.0"] } },
|
|
56
|
+
ZSTD_error_literals_headerWrong: { [READ]: { experimental: ["22.15.0"] } },
|
|
57
|
+
ZSTD_error_dictionary_corrupted: { [READ]: { experimental: ["22.15.0"] } },
|
|
58
|
+
ZSTD_error_dictionary_wrong: { [READ]: { experimental: ["22.15.0"] } },
|
|
59
|
+
ZSTD_error_dictionaryCreation_failed: {
|
|
60
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
61
|
+
},
|
|
62
|
+
ZSTD_error_parameter_unsupported: { [READ]: { experimental: ["22.15.0"] } },
|
|
63
|
+
ZSTD_error_parameter_combination_unsupported: {
|
|
64
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
65
|
+
},
|
|
66
|
+
ZSTD_error_parameter_outOfBound: { [READ]: { experimental: ["22.15.0"] } },
|
|
67
|
+
ZSTD_error_tableLog_tooLarge: { [READ]: { experimental: ["22.15.0"] } },
|
|
68
|
+
ZSTD_error_maxSymbolValue_tooLarge: {
|
|
69
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
70
|
+
},
|
|
71
|
+
ZSTD_error_maxSymbolValue_tooSmall: {
|
|
72
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
73
|
+
},
|
|
74
|
+
ZSTD_error_stabilityCondition_notRespected: {
|
|
75
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
76
|
+
},
|
|
77
|
+
ZSTD_error_stage_wrong: { [READ]: { experimental: ["22.15.0"] } },
|
|
78
|
+
ZSTD_error_init_missing: { [READ]: { experimental: ["22.15.0"] } },
|
|
79
|
+
ZSTD_error_memory_allocation: { [READ]: { experimental: ["22.15.0"] } },
|
|
80
|
+
ZSTD_error_workSpace_tooSmall: { [READ]: { experimental: ["22.15.0"] } },
|
|
81
|
+
ZSTD_error_dstSize_tooSmall: { [READ]: { experimental: ["22.15.0"] } },
|
|
82
|
+
ZSTD_error_srcSize_wrong: { [READ]: { experimental: ["22.15.0"] } },
|
|
83
|
+
ZSTD_error_dstBuffer_null: { [READ]: { experimental: ["22.15.0"] } },
|
|
84
|
+
ZSTD_error_noForwardProgress_destFull: {
|
|
85
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
86
|
+
},
|
|
87
|
+
ZSTD_error_noForwardProgress_inputEmpty: {
|
|
88
|
+
[READ]: { experimental: ["22.15.0"] },
|
|
89
|
+
},
|
|
90
|
+
}
|
|
91
|
+
|
|
5
92
|
/**
|
|
6
93
|
* @satisfies {import('../types.js').SupportVersionTraceMap}
|
|
7
94
|
*/
|
|
8
95
|
const zlib = {
|
|
9
|
-
|
|
96
|
+
brotliCompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
97
|
+
brotliCompressSync: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
98
|
+
brotliDecompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
99
|
+
brotliDecompressSync: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
100
|
+
constants: {
|
|
101
|
+
...ZSTDConstants,
|
|
102
|
+
[READ]: { supported: ["7.0.0"] },
|
|
103
|
+
},
|
|
10
104
|
crc32: { [READ]: { supported: ["22.2.0", "20.15.0"] } },
|
|
11
105
|
createBrotliCompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
12
106
|
createBrotliDecompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
@@ -17,24 +111,27 @@ const zlib = {
|
|
|
17
111
|
createInflate: { [READ]: { supported: ["0.5.8"] } },
|
|
18
112
|
createInflateRaw: { [READ]: { supported: ["0.5.8"] } },
|
|
19
113
|
createUnzip: { [READ]: { supported: ["0.5.8"] } },
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
brotliDecompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
23
|
-
brotliDecompressSync: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
114
|
+
createZstdCompress: { [READ]: { experimental: ["22.15.0"] } },
|
|
115
|
+
createZstdDecompress: { [READ]: { experimental: ["22.15.0"] } },
|
|
24
116
|
deflate: { [READ]: { supported: ["0.6.0"] } },
|
|
25
|
-
deflateSync: { [READ]: { supported: ["0.11.12"] } },
|
|
26
117
|
deflateRaw: { [READ]: { supported: ["0.6.0"] } },
|
|
27
118
|
deflateRawSync: { [READ]: { supported: ["0.11.12"] } },
|
|
119
|
+
deflateSync: { [READ]: { supported: ["0.11.12"] } },
|
|
28
120
|
gunzip: { [READ]: { supported: ["0.6.0"] } },
|
|
29
121
|
gunzipSync: { [READ]: { supported: ["0.11.12"] } },
|
|
30
122
|
gzip: { [READ]: { supported: ["0.6.0"] } },
|
|
31
123
|
gzipSync: { [READ]: { supported: ["0.11.12"] } },
|
|
32
124
|
inflate: { [READ]: { supported: ["0.6.0"] } },
|
|
33
|
-
inflateSync: { [READ]: { supported: ["0.11.12"] } },
|
|
34
125
|
inflateRaw: { [READ]: { supported: ["0.6.0"] } },
|
|
35
126
|
inflateRawSync: { [READ]: { supported: ["0.11.12"] } },
|
|
127
|
+
inflateSync: { [READ]: { supported: ["0.11.12"] } },
|
|
36
128
|
unzip: { [READ]: { supported: ["0.6.0"] } },
|
|
37
129
|
unzipSync: { [READ]: { supported: ["0.11.12"] } },
|
|
130
|
+
zstdCompress: { [READ]: { experimental: ["22.15.0"] } },
|
|
131
|
+
zstdCompressSync: { [READ]: { experimental: ["22.15.0"] } },
|
|
132
|
+
zstdDecompress: { [READ]: { experimental: ["22.15.0"] } },
|
|
133
|
+
zstdDecompressSync: { [READ]: { experimental: ["22.15.0"] } },
|
|
134
|
+
|
|
38
135
|
BrotliCompress: {
|
|
39
136
|
[CALL]: { deprecated: ["22.9.0"] },
|
|
40
137
|
[READ]: { supported: ["11.7.0", "10.16.0"] },
|
|
@@ -71,6 +168,9 @@ const zlib = {
|
|
|
71
168
|
[CALL]: { deprecated: ["22.9.0"] },
|
|
72
169
|
[READ]: { supported: ["0.5.8"] },
|
|
73
170
|
},
|
|
171
|
+
ZstdCompress: { [READ]: { experimental: ["22.15.0"] } },
|
|
172
|
+
ZstdDecompress: { [READ]: { experimental: ["22.15.0"] } },
|
|
173
|
+
ZstdOptions: { [READ]: { experimental: ["22.15.0"] } },
|
|
74
174
|
}
|
|
75
175
|
|
|
76
176
|
/**
|
|
@@ -192,71 +192,71 @@ const nodeGlobals = {
|
|
|
192
192
|
// module.stream
|
|
193
193
|
ReadableStream: {
|
|
194
194
|
...WebStream.ReadableStream,
|
|
195
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
195
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
196
196
|
},
|
|
197
197
|
ReadableStreamDefaultReader: {
|
|
198
198
|
...WebStream.ReadableStreamDefaultReader,
|
|
199
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
199
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
200
200
|
},
|
|
201
201
|
ReadableStreamBYOBReader: {
|
|
202
202
|
...WebStream.ReadableStreamBYOBReader,
|
|
203
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
203
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
204
204
|
},
|
|
205
205
|
ReadableStreamDefaultController: {
|
|
206
206
|
...WebStream.ReadableStreamDefaultController,
|
|
207
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
207
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
208
208
|
},
|
|
209
209
|
ReadableByteStreamController: {
|
|
210
210
|
...WebStream.ReadableByteStreamController,
|
|
211
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
211
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
212
212
|
},
|
|
213
213
|
ReadableStreamBYOBRequest: {
|
|
214
214
|
...WebStream.ReadableStreamBYOBRequest,
|
|
215
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
215
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
216
216
|
},
|
|
217
217
|
WritableStream: {
|
|
218
218
|
...WebStream.WritableStream,
|
|
219
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
219
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
220
220
|
},
|
|
221
221
|
WritableStreamDefaultWriter: {
|
|
222
222
|
...WebStream.WritableStreamDefaultWriter,
|
|
223
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
223
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
224
224
|
},
|
|
225
225
|
WritableStreamDefaultController: {
|
|
226
226
|
...WebStream.WritableStreamDefaultController,
|
|
227
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
227
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
228
228
|
},
|
|
229
229
|
TransformStream: {
|
|
230
230
|
...WebStream.TransformStream,
|
|
231
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
231
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
232
232
|
},
|
|
233
233
|
TransformStreamDefaultController: {
|
|
234
234
|
...WebStream.TransformStreamDefaultController,
|
|
235
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
235
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
236
236
|
},
|
|
237
237
|
ByteLengthQueuingStrategy: {
|
|
238
238
|
...WebStream.ByteLengthQueuingStrategy,
|
|
239
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
239
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
240
240
|
},
|
|
241
241
|
CountQueuingStrategy: {
|
|
242
242
|
...WebStream.CountQueuingStrategy,
|
|
243
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
243
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
244
244
|
},
|
|
245
245
|
TextEncoderStream: {
|
|
246
246
|
...WebStream.TextEncoderStream,
|
|
247
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
247
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
248
248
|
},
|
|
249
249
|
TextDecoderStream: {
|
|
250
250
|
...WebStream.TextDecoderStream,
|
|
251
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
251
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
252
252
|
},
|
|
253
253
|
CompressionStream: {
|
|
254
254
|
...WebStream.CompressionStream,
|
|
255
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
255
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
256
256
|
},
|
|
257
257
|
DecompressionStream: {
|
|
258
258
|
...WebStream.DecompressionStream,
|
|
259
|
-
[READ]: { experimental: ["18.0.0"] },
|
|
259
|
+
[READ]: { experimental: ["18.0.0"], supported: ["22.15.0"] },
|
|
260
260
|
},
|
|
261
261
|
|
|
262
262
|
// module.timers
|
|
@@ -14,12 +14,17 @@ const importMeta = {
|
|
|
14
14
|
},
|
|
15
15
|
dirname: {
|
|
16
16
|
[READ]: {
|
|
17
|
-
supported: ["21.2.0", "20.11.0"],
|
|
17
|
+
supported: ["21.2.0", "20.11.0", "22.16.0"],
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
filename: {
|
|
21
21
|
[READ]: {
|
|
22
|
-
supported: ["21.2.0", "20.11.0"],
|
|
22
|
+
supported: ["21.2.0", "20.11.0", "22.16.0"],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
main: {
|
|
26
|
+
[READ]: {
|
|
27
|
+
experimental: ["22.18.0"],
|
|
23
28
|
},
|
|
24
29
|
},
|
|
25
30
|
}
|
|
@@ -74,7 +74,7 @@ function getTSConfigAliases(context) {
|
|
|
74
74
|
* @property {Partial<import('enhanced-resolve').ResolveOptions>} [resolverConfig]
|
|
75
75
|
* @property {string} basedir
|
|
76
76
|
*/
|
|
77
|
-
/** @typedef { 'unknown' | 'relative' | 'absolute' | 'node' | 'npm' | 'http' } ModuleType */
|
|
77
|
+
/** @typedef { 'unknown' | 'relative' | 'absolute' | 'node' | 'npm' | 'http' | 'data' } ModuleType */
|
|
78
78
|
/** @typedef { 'import' | 'require' | 'type' } ModuleStyle */
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -176,6 +176,10 @@ module.exports = class ImportTarget {
|
|
|
176
176
|
return "node"
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
if (/^data:/.test(this.name)) {
|
|
180
|
+
return "data"
|
|
181
|
+
}
|
|
182
|
+
|
|
179
183
|
if (/^(@[\w~-][\w.~-]*\/)?[\w~-][\w.~-]*/.test(this.name)) {
|
|
180
184
|
return "npm"
|
|
181
185
|
}
|
|
@@ -242,7 +246,7 @@ module.exports = class ImportTarget {
|
|
|
242
246
|
* @returns {string | undefined}
|
|
243
247
|
*/
|
|
244
248
|
getModuleName() {
|
|
245
|
-
if (this.moduleType === "relative") return
|
|
249
|
+
if (this.moduleType === "relative" || this.moduleType === "data") return
|
|
246
250
|
|
|
247
251
|
if (this.moduleType === "npm") {
|
|
248
252
|
if (this.name.startsWith("@")) {
|
|
@@ -296,6 +300,10 @@ module.exports = class ImportTarget {
|
|
|
296
300
|
* @returns {string | null} The resolved path.
|
|
297
301
|
*/
|
|
298
302
|
getFilePath() {
|
|
303
|
+
if (this.moduleType === "data" && this.moduleStyle === "import") {
|
|
304
|
+
return this.name
|
|
305
|
+
}
|
|
306
|
+
|
|
299
307
|
const conditionNames = ["node", "require"]
|
|
300
308
|
|
|
301
309
|
const mainFields = []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-n",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.22.0",
|
|
4
4
|
"description": "Additional ESLint's rules for Node.js",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"fast-glob": "^3.3.2",
|
|
44
44
|
"husky": "^9.1.6",
|
|
45
45
|
"lint-staged": "^15.2.10",
|
|
46
|
-
"markdownlint-cli": "^0.
|
|
46
|
+
"markdownlint-cli": "^0.45.0",
|
|
47
47
|
"mocha": "^10.8.2",
|
|
48
48
|
"npm-run-all2": "^6.2.6",
|
|
49
49
|
"nyc": "^17.1.0",
|