Skip to content

Commit

Permalink
Assign new keys for JavaScript import and export (#2709)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbeck authored Feb 27, 2025
1 parent 72a8a0e commit 9bd666e
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/js-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ compat_features:
- html.elements.script.nomodule
- html.elements.script.type.module
- javascript.statements.export
- javascript.statements.export.arbitrary_module_namespace_identifier_names
- javascript.statements.export.default
- javascript.statements.export.namespace
- javascript.statements.import.arbitrary_module_namespace_identifier_names
# TODO: move next key to json-modules and css-modules when https://github.com/web-platform-dx/web-features/issues/1173 is resolved
- javascript.statements.import.import_attributes
- javascript.statements.import.worklet_support
- javascript.statements.import
Expand Down
14 changes: 14 additions & 0 deletions features/js-modules.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ compat_features:
# safari_ios: "14.5"
- javascript.statements.export.namespace

# baseline: high
# baseline_low_date: 2021-04-26
# baseline_high_date: 2023-10-26
# support:
# chrome: "88"
# chrome_android: "88"
# edge: "88"
# firefox: "87"
# firefox_android: "87"
# safari: "14.1"
# safari_ios: "14.5"
- javascript.statements.export.arbitrary_module_namespace_identifier_names
- javascript.statements.import.arbitrary_module_namespace_identifier_names

# baseline: low
# baseline_low_date: 2023-03-27
# support:
Expand Down
3 changes: 3 additions & 0 deletions features/json-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ name: JSON import attributes
description: 'Module `import … with { type: "json" }` statements load JSON data. Also known as JSON module scripts.'
spec: https://html.spec.whatwg.org/multipage/webappapis.html#json-module-script
group: json
compat_features:
- javascript.statements.import.import_attributes.type_json
- javascript.grammar.trailing_commas.trailing_commas_in_dynamic_import
# TODO: Tag javascript.statements.import when https://github.com/web-platform-dx/web-features/issues/1173 is resolved.
17 changes: 17 additions & 0 deletions features/json-modules.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,21 @@ status:
safari: "17.2"
safari_ios: "17.2"
compat_features:
# baseline: false
# support:
# chrome: "91"
# chrome_android: "91"
# edge: "91"
# safari: "15"
# safari_ios: "15"
- javascript.grammar.trailing_commas.trailing_commas_in_dynamic_import

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "123"
# chrome_android: "123"
# edge: "123"
# safari: "17.2"
# safari_ios: "17.2"
- javascript.statements.import.import_attributes.type_json

0 comments on commit 9bd666e

Please sign in to comment.