forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathworker_threads.js
More file actions
49 lines (46 loc) · 1.79 KB
/
worker_threads.js
File metadata and controls
49 lines (46 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"use strict"
const { READ } = require("@eslint-community/eslint-utils")
/** @type {import('../types.js').SupportVersionTraceMap} */
const worker_threads = {
isMainThread: { [READ]: { supported: ["10.5.0"] } },
parentPort: { [READ]: { supported: ["10.5.0"] } },
resourceLimits: { [READ]: { supported: ["13.2.0", "12.16.0"] } },
SHARE_ENV: { [READ]: { supported: ["11.14.0"] } },
threadId: { [READ]: { supported: ["10.5.0"] } },
workerData: { [READ]: { supported: ["10.5.0"] } },
getEnvironmentData: {
[READ]: {
experimental: ["15.12.0", "14.18.0"],
supported: ["17.5.0", "16.15.0"],
},
},
markAsUncloneable: { [READ]: { supported: ["23.0.0", "22.10.0"] } },
markAsUntransferable: { [READ]: { supported: ["14.5.0", "12.19.0"] } },
isMarkedAsUntransferable: { [READ]: { supported: ["21.0.0"] } },
moveMessagePortToContext: { [READ]: { supported: ["11.13.0"] } },
postMessageToThread: { [READ]: { experimental: ["22.5.0"] } },
receiveMessageOnPort: { [READ]: { supported: ["12.3.0"] } },
setEnvironmentData: {
[READ]: {
experimental: ["15.12.0", "14.18.0"],
supported: ["17.5.0", "16.15.0"],
},
},
BroadcastChannel: {
[READ]: { experimental: ["15.4.0"], supported: ["18.0.0"] },
},
MessageChannel: { [READ]: { supported: ["10.5.0"] } },
MessagePort: { [READ]: { supported: ["10.5.0"] } },
Worker: { [READ]: { supported: ["10.5.0"] } },
}
/** @type {import('../types.js').SupportVersionTraceMap} */
module.exports = {
worker_threads: {
...worker_threads,
[READ]: { supported: ["12.11.0"], experimental: ["10.5.0"] },
},
"node:worker_threads": {
...worker_threads,
[READ]: { supported: ["14.13.1", "12.20.0"] },
},
}