Skip to content

Import assertions proposal renamed to import attributes #29572

@nicolo-ribaudo

Description

@nicolo-ribaudo

MDN URL

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

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

That page mention import assertions, with the import ... assert { ... } syntax.

What did you expect to see?

The proposal has been renamed to "import attributes", and the keyword has been replaced from assert to with. assert is now "deprecated and should not be relied upon".

Do you have any supporting links, references, or citations?

https://tc39.es/proposal-import-attributes/, specifically https://tc39.es/proposal-import-attributes/#sec-deprecated-assert-keyword-for-import-attributes.

Do you have anything more you want to share?

Chrome is the only browser implementing assert (and V8-based platforms).

Chrome implements with under a flag (and V8-based platforms), Safari implements with in TP and Firefox is implementing it.

The proposal update comes also with some semantic changes, however these details have never been documented so there is no change needed to the docs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions