-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Node.js 11.7+ supports Worker + related updates
#25012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
babea79
d73a105
688846f
097a38b
dd1dc21
3e2d0ab
c01193a
2712777
5269ad9
0c261d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,26 +22,15 @@ | |
| "ie": { | ||
| "version_added": "10" | ||
| }, | ||
| "nodejs": [ | ||
| { | ||
| "version_added": "12.17.0", | ||
| "partial_implementation": true, | ||
| "notes": [ | ||
| "Is a Node `EventEmitter` instead of DOM `EventTarget`.", | ||
| "Worker script environment expects CommonJS modules or ECMAScript modules.", | ||
| "Must be imported from the `worker_threads` module." | ||
| ] | ||
| }, | ||
| { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": [ | ||
| "Is a Node `EventEmitter` instead of DOM `EventTarget`.", | ||
| "Worker script environment expects CommonJS modules.", | ||
| "Must be imported from the `worker_threads` module." | ||
| ] | ||
| } | ||
| ], | ||
| "nodejs": { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": [ | ||
| "Inherit from a Node `EventEmitter` instead of DOM `EventTarget`.", | ||
| "Also supports CommonJS modules, enabled for files ending with `.cjs` and for files ending with `.js` when the nearest parent `package.json` file contains a top-level field `\"type\"` with a value not of `\"commonjs\"`.", | ||
| "Available as a part of the `worker_threads` module." | ||
| ] | ||
| }, | ||
|
Comment on lines
+25
to
+33
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Verified that |
||
| "oculus": "mirror", | ||
| "opera": { | ||
| "version_added": "10.6" | ||
|
|
@@ -88,18 +77,11 @@ | |
| "ie": { | ||
| "version_added": "10" | ||
| }, | ||
| "nodejs": [ | ||
| { | ||
| "version_added": "12.17.0", | ||
| "partial_implementation": true, | ||
| "notes": "Takes entirely different options." | ||
| }, | ||
| { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": "Takes entirely different options." | ||
| } | ||
| ], | ||
| "nodejs": { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": "Takes entirely different options parameters." | ||
| }, | ||
|
Comment on lines
+80
to
+84
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Makes sense based on parent change. |
||
| "oculus": "mirror", | ||
| "opera": { | ||
| "version_added": "10.6" | ||
|
|
@@ -318,6 +300,9 @@ | |
| "ie": { | ||
| "version_added": false | ||
| }, | ||
| "nodejs": { | ||
| "version_added": "11.7.0" | ||
| }, | ||
|
Comment on lines
+303
to
+305
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Verified locally with this |
||
| "oculus": "mirror", | ||
| "opera": "mirror", | ||
| "opera_android": "mirror", | ||
|
|
@@ -359,7 +344,9 @@ | |
| "version_added": "10" | ||
| }, | ||
| "nodejs": { | ||
| "version_added": false | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": "Supports the event, but only via Node <code>EventEmitter</code>." | ||
|
skyclouds2001 marked this conversation as resolved.
Outdated
|
||
| }, | ||
| "oculus": "mirror", | ||
| "opera": { | ||
|
|
@@ -408,18 +395,11 @@ | |
| "ie": { | ||
| "version_added": "10" | ||
| }, | ||
| "nodejs": [ | ||
| { | ||
| "version_added": "12.17.0", | ||
| "partial_implementation": true, | ||
| "notes": "Supports the event, but only via Node `EventEmitter`." | ||
| }, | ||
| { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": "Supports the event, but only via Node `EventEmitter`." | ||
| } | ||
| ], | ||
| "nodejs": { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": "Supports the event, but only via Node `EventEmitter`." | ||
| }, | ||
|
Comment on lines
+401
to
+405
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Makes sense based on parent change. |
||
| "oculus": "mirror", | ||
| "opera": { | ||
| "version_added": "10.6" | ||
|
|
@@ -468,9 +448,19 @@ | |
| "ie": { | ||
| "version_added": false | ||
| }, | ||
| "nodejs": { | ||
| "version_added": false | ||
| }, | ||
| "nodejs": [ | ||
| { | ||
| "version_added": "14.5.0", | ||
| "partial_implementation": true, | ||
| "notes": "Supports the event, but only via Node <code>EventEmitter</code>." | ||
|
skyclouds2001 marked this conversation as resolved.
Outdated
|
||
| }, | ||
| { | ||
| "version_added": "12.19.0", | ||
| "version_removed": "13.0.0", | ||
| "partial_implementation": true, | ||
| "notes": "Supports the event, but only via Node <code>EventEmitter</code>." | ||
|
skyclouds2001 marked this conversation as resolved.
Outdated
|
||
| } | ||
| ], | ||
|
Comment on lines
+454
to
+466
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Verified via the referenced PR. |
||
| "oculus": "mirror", | ||
| "opera": "mirror", | ||
| "opera_android": "mirror", | ||
|
|
@@ -542,18 +532,14 @@ | |
| "version_added": "10", | ||
| "notes": "Internet Explorer does not support `Transferable` objects." | ||
| }, | ||
| "nodejs": [ | ||
| { | ||
| "version_added": "12.17.0", | ||
| "partial_implementation": true, | ||
| "notes": "Supports `transferList` argument for transferring `ArrayBuffer` and `MessagePort` objects" | ||
| }, | ||
| { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": "Supports `transferList` argument for transferring `ArrayBuffer` and `MessagePort` objects" | ||
| } | ||
| ], | ||
| "nodejs": { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": [ | ||
| "Only support passing the second parameter as an optional array of objects, not support passing the second parameter as an options object.", | ||
|
skyclouds2001 marked this conversation as resolved.
Outdated
|
||
| "Only support transferring `ArrayBuffer` and `MessagePort` objects." | ||
|
skyclouds2001 marked this conversation as resolved.
Outdated
|
||
| ] | ||
| }, | ||
|
Comment on lines
+541
to
+548
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Makes sense based on parent change. New note:
|
||
| "oculus": "mirror", | ||
| "opera": { | ||
| "version_added": "10.6" | ||
|
|
@@ -602,14 +588,14 @@ | |
| }, | ||
| "nodejs": [ | ||
| { | ||
| "version_added": "12.17.0", | ||
| "version_added": "12.5.0", | ||
| "partial_implementation": true, | ||
| "notes": "Also takes an optional callback to be executed when the worker has terminated." | ||
| "notes": "Returns a <code>Promise</code> instead. Taking an optional callback parameter is deprecated." | ||
|
skyclouds2001 marked this conversation as resolved.
Outdated
|
||
| }, | ||
| { | ||
| "version_added": "11.7.0", | ||
| "partial_implementation": true, | ||
| "notes": "Also takes an optional callback to be executed when the worker has terminated." | ||
| "notes": "Support taking an optional callback parameter to be executed when the worker has terminated." | ||
|
skyclouds2001 marked this conversation as resolved.
Outdated
|
||
| } | ||
| ], | ||
| "oculus": "mirror", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.