Skip to content
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

Dynamic import: Wrong compatibility data for node #9675

Closed
marvinhagemeister opened this issue Mar 30, 2021 · 2 comments
Closed

Dynamic import: Wrong compatibility data for node #9675

marvinhagemeister opened this issue Mar 30, 2021 · 2 comments
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript idle 🐌 Issues and pull requests with no recent activity

Comments

@marvinhagemeister
Copy link

MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

What information was incorrect, unhelpful, or incomplete?

The compatibility table says that only node versions >= 13.2.0 have support for the dynamic import statement, but the feature was backported to the 12.x release line to ease transition to ESM. So versions >=12.20.0 fully support the dynamic import statement. Release data taken from https://nodejs.org/en/download/releases/ .

Node version Release Date Dynamic import support
12.16.3 2020-05-26 Not supported
12.17.0 2020-05-26 Supported, but marked as experimental
>=12.20.0 2020-11-24 Fully supported (nodejs/node#31974)
13.0.0 2019-10-22 Not supported
>=13.2.0 2019-11-21 Fully supported

Specific section or headline?

"Browser compatibility" section

What did you expect to see?

Correct compatibility data.

Did you test this? If so, how?

Tested locally with this test case by going through all node versions with nvm.

MDN Content page report details
@sideshowbarker
Copy link
Collaborator

Transferring this to the BCD repo

@sideshowbarker sideshowbarker transferred this issue from mdn/content Mar 30, 2021
@queengooborg queengooborg added the data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Mar 30, 2021
@github-actions github-actions bot added the idle 🐌 Issues and pull requests with no recent activity label May 25, 2022
@Elchi3
Copy link
Member

Elchi3 commented Feb 22, 2023

I think this is fixed. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import has the info if you click to expand the cell. A note in there also links to https://nodejs.org/docs/latest-v12.x/api/esm.html#esm_enabling for more.

@Elchi3 Elchi3 closed this as completed Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript idle 🐌 Issues and pull requests with no recent activity
Projects
None yet
Development

No branches or pull requests

5 participants
@sideshowbarker @Elchi3 @marvinhagemeister @queengooborg and others