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

What is status of JSON modules? #55508

Closed
VladimirMikulic opened this issue Oct 23, 2024 · 6 comments
Closed

What is status of JSON modules? #55508

VladimirMikulic opened this issue Oct 23, 2024 · 6 comments
Labels
experimental Issues and PRs related to experimental features. loaders Issues and PRs related to ES module loaders question Issues that look for answers.

Comments

@VladimirMikulic
Copy link

Using import swaggJ from "./swagger.json" with { type: "json" } on Node..js 22 results in

(node:112166) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time

I thought JSON modules were stable? Why do I still get this warning?

@RedYetiDev RedYetiDev added question Issues that look for answers. experimental Issues and PRs related to experimental features. loaders Issues and PRs related to ES module loaders labels Oct 24, 2024
@RedYetiDev
Copy link
Member

RedYetiDev commented Oct 24, 2024

They are stage 4 as of two weeks ago, per tc39/proposals@75f0d73


It's up to the loaders team to decide whether the current implementation is stable.

@Dkghuser
Copy link

Hello ,

I am interested in contributing to this issue. Could you please provide some guidance on how I can help resolve this?

Thank you!

@nicolo-ribaudo
Copy link
Contributor

nicolo-ribaudo commented Oct 24, 2024

They have been marked as stable now, it will be included in 23.1.0: #55333

@VladimirMikulic
Copy link
Author

@nicolo-ribaudo will it get backported to v22 which is current LTS?

@RedYetiDev
Copy link
Member

Yes. It is on the LTS watch

@VladimirMikulic
Copy link
Author

🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental Issues and PRs related to experimental features. loaders Issues and PRs related to ES module loaders question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

4 participants