Skip to content

Commit

Permalink
Add support info for Web APIs that node supports (#3160)
Browse files Browse the repository at this point in the history
* Add node support info for URL and URLSearchParams objects

Based on https://nodejs.org/dist/latest-v10.x/docs/api/url.html#url_class_urlsearchparams

* Add node support info for console API

* Add node support info for timing functions

* Mark debug as alias for console.log

* Add TextDecoder and TextEncoder node compatibility info

* Add Performance API compatibility

* Node has PerformanceMark and PerformanceMeasure

* Node has a very similar looking Worker API
Not sure if this warrants actual compatibility mention, but I thought I'd throw it in the mix

* Add node support info to MessagePort and MessageChannel

* Remove duplicated line in Console.json

* Remove duplicate node versions that were merged in

* Fix console compat data

* Add setImmediate/clearImmediate

* Add partial implementation for node *Immediate functions like for other timing functions

* Remove erronous alternative_names for aliases

* Remove trailing commas, set support to false because parent is false
  • Loading branch information
freaktechnik authored and Elchi3 committed Oct 30, 2019
1 parent d146efb commit 949732c
Show file tree
Hide file tree
Showing 16 changed files with 593 additions and 0 deletions.
131 changes: 131 additions & 0 deletions api/Console.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"partial_implementation": true,
"notes": "Only functions when developer tools are opened. Otherwise, the 'console' object is undefined."
},
"nodejs": {
"version_added": "0.1.100"
},
"opera": {
"version_added": "10.1"
},
Expand Down Expand Up @@ -68,6 +71,16 @@
"ie": {
"version_added": true
},
"nodejs": [
{
"version_added": "10.0.0"
},
{
"version_added": "0.1.101",
"partial_implementation": true,
"notes": "Throws error when assertion fails."
}
],
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -113,6 +126,9 @@
"ie": {
"version_added": true
},
"nodejs": {
"version_added": "8.3.0"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -158,6 +174,9 @@
"ie": {
"version_added": true
},
"nodejs": {
"version_added": "8.3.0"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -251,6 +270,15 @@
"ie": {
"version_added": true
},
"nodejs": [
{
"version_added": "8.10.0",
"notes": "Alias for <code>console.log</code>"
},
{
"version_added": "8.0.0"
}
],
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -301,6 +329,9 @@
"<code>%d</code> outputs a 0 if the specified value isn't a number."
]
},
"nodejs": {
"version_added": "8.10.0"
},
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -348,6 +379,9 @@
"ie": {
"version_added": "9"
},
"nodejs": {
"version_added": "0.1.101"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -393,6 +427,16 @@
"ie": {
"version_added": true
},
"nodejs": [
{
"version_added": "9.3.0"
},
{
"version_added": "8.0.0",
"partial_implementation": true,
"notes": "Does not use Logger to log data."
}
],
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -438,6 +482,9 @@
"ie": {
"version_added": "8"
},
"nodejs": {
"version_added": "0.1.100"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -483,6 +530,9 @@
"version_added": "10",
"notes": "%c is not supported, %d will render as 0 when it is not a number"
},
"nodejs": {
"version_added": "0.1.100"
},
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -530,6 +580,9 @@
"ie": {
"version_added": false
},
"nodejs": {
"version_added": false
},
"opera": {
"version_added": false
},
Expand Down Expand Up @@ -574,6 +627,9 @@
"ie": {
"version_added": false
},
"nodejs": {
"version_added": false
},
"opera": {
"version_added": false
},
Expand Down Expand Up @@ -620,6 +676,9 @@
"ie": {
"version_added": "11"
},
"nodejs": {
"version_added": "8.5.0"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -665,6 +724,10 @@
"ie": {
"version_added": "11"
},
"nodejs": {
"version_added": "8.5.0",
"notes": "Alias for <code>console.group</code>"
},
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -710,6 +773,9 @@
"ie": {
"version_added": "11"
},
"nodejs": {
"version_added": "8.5.0"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -755,6 +821,10 @@
"ie": {
"version_added": "8"
},
"nodejs": {
"version_added": "0.1.100",
"notes": "Alias for <code>console.log</code>"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -801,6 +871,9 @@
"version_added": "10",
"notes": "%c is not supported, %d will render as 0 when it is not a number"
},
"nodejs": {
"version_added": true
},
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -847,6 +920,9 @@
"ie": {
"version_added": "8"
},
"nodejs": {
"version_added": "0.1.100"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -894,6 +970,9 @@
"version_added": "10",
"notes": "%c is not supported, %d will render as 0 when it is not a number"
},
"nodejs": {
"version_added": "0.1.100"
},
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -941,6 +1020,15 @@
"ie": {
"version_added": true
},
"nodejs": {
"version_added": "8.0.0",
"flags": [
{
"type": "runtime_flag",
"name": "--inspect"
}
]
},
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -986,6 +1074,15 @@
"ie": {
"version_added": true
},
"nodejs": {
"version_added": "8.0.0",
"flags": [
{
"type": "runtime_flag",
"name": "--inspect"
}
]
},
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -1031,6 +1128,9 @@
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "10.0.0"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -1076,6 +1176,9 @@
"ie": {
"version_added": "11"
},
"nodejs": {
"version_added": "0.1.104"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -1121,6 +1224,9 @@
"ie": {
"version_added": "11"
},
"nodejs": {
"version_added": "0.1.104"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -1166,6 +1272,9 @@
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "10.7.0"
},
"opera": {
"version_added": "60"
},
Expand Down Expand Up @@ -1212,6 +1321,15 @@
"ie": {
"version_added": "11"
},
"nodejs": {
"version_added": "8.0.0",
"flags": [
{
"type": "runtime_flag",
"name": "--inspect"
}
]
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -1257,6 +1375,9 @@
"ie": {
"version_added": "11"
},
"nodejs": {
"version_added": "0.1.104"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -1302,6 +1423,10 @@
"ie": {
"version_added": "8"
},
"nodejs": {
"version_added": "0.1.100",
"notes": "Alias for <code>console.error</code>"
},
"opera": {
"version_added": true
},
Expand Down Expand Up @@ -1347,6 +1472,9 @@
"version_added": "10",
"notes": "%c is not supported, %d will render as 0 when it is not a number"
},
"nodejs": {
"version_added": "0.1.100"
},
"opera": {
"version_added": null
},
Expand Down Expand Up @@ -1393,6 +1521,9 @@
"ie": {
"version_added": true
},
"nodejs": {
"version_added": "10.5.0"
},
"opera": {
"version_added": true
},
Expand Down
14 changes: 14 additions & 0 deletions api/MessageChannel.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"ie": {
"version_added": "10"
},
"nodejs": {
"version_added": "10.5.0",
"notes": "Must be imported from the <code>worker_threads</code> module."
},
"opera": {
"version_added": "10.6"
},
Expand Down Expand Up @@ -70,6 +74,10 @@
"ie": {
"version_added": "10"
},
"nodejs": {
"version_added": "10.5.0",
"notes": "Must be imported from the <code>worker_threads</code> module."
},
"opera": {
"version_added": "10.6"
},
Expand Down Expand Up @@ -118,6 +126,9 @@
"ie": {
"version_added": "10"
},
"nodejs": {
"version_added": "10.5.0"
},
"opera": {
"version_added": "10.6"
},
Expand Down Expand Up @@ -166,6 +177,9 @@
"ie": {
"version_added": "10"
},
"nodejs": {
"version_added": "10.5.0"
},
"opera": {
"version_added": "10.6"
},
Expand Down
Loading

0 comments on commit 949732c

Please sign in to comment.