-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Import Assertions/JSON Modules #7623
Comments
I'll implement it soon. |
@kdy1 the TypeScript PR is open now for inspiration: microsoft/TypeScript#40698 |
I have a question. Will deno support json modules when it is in stage 2? |
Personal opinion, it would be triggered by v8 supporting it, that might come in advance of Stage 3, but import assertions are a pre-req for support. Basically there are some runtime semantics that need to be resolved (if I am reading the slides properly). I know there is a lot of desire from the community to have it, so we would want to go as fast as reasonably possible. |
Got it, thanks for the clarification. |
I added support for it within the parser. |
Intent to Prototype and Ship: Import Assertions from Chromium Tracking issue in V8 - Implement Import Assertions |
Updates:
|
JSON Modules has gone Stage 3 with TC39. Hopefully that will flush out TypeScript. |
Blink intent to ship both import assertions and JSON modules. I assume this is aimed at Chromium 91/v8 9.1 |
Chrome just updated their chromestatus page, JSON module and import assertions are enabled by default on Chrome 91 |
I will try to get import assertions into 1.13 |
@bartlomieju TypeScript is still working on it. The PR seems to be finally edging closer to reality to be merged. |
Thanks for the heads up, I'll look into |
Unfortunately bumping to Q4 because of missing TypeScript support. |
Looks like TypeScript supports it now. 🚀 |
It supports it in a yet to be released version of TypeScript. The timelines coincide for the Deno 2.0 release, therefore that is why it is part of the release plan and tagged for Deno 2.0. |
@kitsonk I know that, I really just wanted to point it out since no one here did yet. Sorry if it seemed like something else. 😕 |
TypeScript 4.5 is scheduled for release on November 16th, and Deno 1.16 is scheduled for November 9th. I think we will land this feature in Deno 1.17 on December 14th. |
Import Assertions has just been moved to Stage 3. JSON Modules is still at Stage 2 (and JSON Modules depends on Module Assertions).
I haven't found a tracking issue for v8.
TypeScript issue: microsoft/TypeScript#40694
cc/ @kdy1
The text was updated successfully, but these errors were encountered: