top | item 44817100 (no title) nrabulinski | 6 months ago It’s been introduced as part of ecmascript 2026 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... discuss order hn newest no_wizard|6 months ago It first started as an assert statement[0] for those who may have seen that, these type statements are an evolution out of that proposal.I do wonder if this makes the importable gets (via type: json) a reality like assert was going to.[0]: https://v8.dev/features/import-assertions throwitaway1123|6 months ago > I do wonder if this makes the importable gets (via type: json) a reality like assert was going to.Yes, the JSON modules proposal is finished.https://github.com/tc39/proposal-json-moduleshttps://caniuse.com/mdn-javascript_statements_import_import_... load replies (1)
no_wizard|6 months ago It first started as an assert statement[0] for those who may have seen that, these type statements are an evolution out of that proposal.I do wonder if this makes the importable gets (via type: json) a reality like assert was going to.[0]: https://v8.dev/features/import-assertions throwitaway1123|6 months ago > I do wonder if this makes the importable gets (via type: json) a reality like assert was going to.Yes, the JSON modules proposal is finished.https://github.com/tc39/proposal-json-moduleshttps://caniuse.com/mdn-javascript_statements_import_import_... load replies (1)
throwitaway1123|6 months ago > I do wonder if this makes the importable gets (via type: json) a reality like assert was going to.Yes, the JSON modules proposal is finished.https://github.com/tc39/proposal-json-moduleshttps://caniuse.com/mdn-javascript_statements_import_import_... load replies (1)
no_wizard|6 months ago
I do wonder if this makes the importable gets (via type: json) a reality like assert was going to.
[0]: https://v8.dev/features/import-assertions
throwitaway1123|6 months ago
Yes, the JSON modules proposal is finished.
https://github.com/tc39/proposal-json-modules
https://caniuse.com/mdn-javascript_statements_import_import_...