Skip to content

Commit

Permalink
Update NodeJS data for javascript.statements.import (mdn#21479)
Browse files Browse the repository at this point in the history
This PR updates and corrects version values for NodeJS for the `import` member of the `statements` JavaScript feature. This fixes mdn#15123, which contains the supporting evidence for this change.
  • Loading branch information
queengooborg authored Dec 16, 2023
1 parent 1e9d21e commit b150785
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
15 changes: 11 additions & 4 deletions javascript/operators/import.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "13.2.0",
"notes": "Dynamic <code>import</code> can be used in either CommonJS or ES module files, to import either CommonJS or ES module files. See Node's <a href='https://nodejs.org/api/esm.html#esm_import_expressions'>ECMAScript Modules documentation</a> for more details."
},
"nodejs": [
{
"version_added": "13.2.0",
"notes": "Dynamic <code>import</code> can be used in either CommonJS or ES module files, to import either CommonJS or ES module files. See Node's <a href='https://nodejs.org/api/esm.html#esm_import_expressions'>ECMAScript Modules documentation</a> for more details."
},
{
"version_added": "12.17.0",
"version_removed": "13.0.0",
"notes": "Dynamic <code>import</code> can be used in either CommonJS or ES module files, to import either CommonJS or ES module files. See Node's <a href='https://nodejs.org/api/esm.html#esm_import_expressions'>ECMAScript Modules documentation</a> for more details."
}
],
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
Expand Down
15 changes: 11 additions & 4 deletions javascript/statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,10 +1180,17 @@
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "13.2.0",
"notes": "Modules must either have a filename ending in <code>.mjs</code>, or the nearest parent <code>package.json</code> file must contain <code>\"type\": \"module\"</code>. See Node's <a href='https://nodejs.org/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
},
"nodejs": [
{
"version_added": "13.2.0",
"notes": "Modules must either have a filename ending in <code>.mjs</code>, or the nearest parent <code>package.json</code> file must contain <code>\"type\": \"module\"</code>. See Node's <a href='https://nodejs.org/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
},
{
"version_added": "12.17.0",
"version_removed": "13.0.0",
"notes": "Modules must either have a filename ending in <code>.mjs</code>, or the nearest parent <code>package.json</code> file must contain <code>\"type\": \"module\"</code>. See Node's <a href='https://nodejs.org/api/esm.html#esm_enabling'>ECMAScript Modules documentation</a> for more details."
}
],
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
Expand Down

0 comments on commit b150785

Please sign in to comment.