Skip to content

Commit

Permalink
Add ESM worker features (#1012)
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Jägenstedt <[email protected]>
  • Loading branch information
ddbeck and foolip authored May 2, 2024
1 parent 073575c commit c22e393
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 0 deletions.
17 changes: 17 additions & 0 deletions feature-group-definitions/js-modules-service-workers.dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: js-modules-service-workers.yml
# Do not edit this file by hand. Edit the source file instead!

name: JavaScript modules in service workers
description: 'The `navigator.serviceWorker.register()` method accepts `{ type: "module" }` to load scripts that use `import` and `export`. Also known as ECMAScript modules or ESM in service workers.'
spec: https://w3c.github.io/ServiceWorker/#dom-registrationoptions-type
group: js-modules
status:
baseline: false
support:
chrome: "91"
chrome_android: "91"
edge: "91"
safari: "15"
safari_ios: "15"
compat_features:
- api.ServiceWorker.ecmascript_modules
6 changes: 6 additions & 0 deletions feature-group-definitions/js-modules-service-workers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: JavaScript modules in service workers
description: 'The `navigator.serviceWorker.register()` method accepts `{ type: "module" }` to load scripts that use `import` and `export`. Also known as ECMAScript modules or ESM in service workers.'
spec: https://w3c.github.io/ServiceWorker/#dom-registrationoptions-type
group: js-modules
compat_features:
- api.ServiceWorker.ecmascript_modules
18 changes: 18 additions & 0 deletions feature-group-definitions/js-modules-shared-workers.dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated from: js-modules-shared-workers.yml
# Do not edit this file by hand. Edit the source file instead!

name: JavaScript modules in shared workers
description: 'The `SharedWorker()` constructor accepts `{ type: "module" }` to load scripts that use `import` and `export`. Also known as ECMAScript modules or ESM in shared workers.'
spec: https://html.spec.whatwg.org/multipage/workers.html#shared-workers-and-the-sharedworker-interface:dom-sharedworker-2
group: js-modules
status:
baseline: false
support:
chrome: "80"
edge: "80"
firefox: "114"
firefox_android: "114"
safari: "15"
safari_ios: "15"
compat_features:
- api.SharedWorker.SharedWorker.ecmascript_modules
6 changes: 6 additions & 0 deletions feature-group-definitions/js-modules-shared-workers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: JavaScript modules in shared workers
description: 'The `SharedWorker()` constructor accepts `{ type: "module" }` to load scripts that use `import` and `export`. Also known as ECMAScript modules or ESM in shared workers.'
spec: https://html.spec.whatwg.org/multipage/workers.html#shared-workers-and-the-sharedworker-interface:dom-sharedworker-2
group: js-modules
compat_features:
- api.SharedWorker.SharedWorker.ecmascript_modules
20 changes: 20 additions & 0 deletions feature-group-definitions/js-modules-workers.dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated from: js-modules-workers.yml
# Do not edit this file by hand. Edit the source file instead!

name: JavaScript modules in workers
description: 'The `Worker()` constructor accepts `{ type: "module" }` to load scripts that use `import` and `export`. Also known as ECMAScript modules or ESM in workers.'
spec: https://html.spec.whatwg.org/multipage/workers.html#dom-worker-dev
group: js-modules
status:
baseline: low
baseline_low_date: 2023-06-06
support:
chrome: "80"
chrome_android: "80"
edge: "80"
firefox: "114"
firefox_android: "114"
safari: "15"
safari_ios: "15"
compat_features:
- api.Worker.Worker.ecmascript_modules
6 changes: 6 additions & 0 deletions feature-group-definitions/js-modules-workers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: JavaScript modules in workers
description: 'The `Worker()` constructor accepts `{ type: "module" }` to load scripts that use `import` and `export`. Also known as ECMAScript modules or ESM in workers.'
spec: https://html.spec.whatwg.org/multipage/workers.html#dom-worker-dev
group: js-modules
compat_features:
- api.Worker.Worker.ecmascript_modules
1 change: 1 addition & 0 deletions feature-group-definitions/js-modules.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
- https://html.spec.whatwg.org/multipage/webappapis.html#javascript-module-script
- https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-modules
snapshot: ecmascript-2015
group: js-modules
usage_stats:
- https://chromestatus.com/metrics/feature/timeline/popularity/2062
- https://chromestatus.com/metrics/feature/timeline/popularity/2615
Expand Down
1 change: 1 addition & 0 deletions feature-group-definitions/js-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ spec:
- https://html.spec.whatwg.org/multipage/webappapis.html#javascript-module-script
- https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-modules
snapshot: ecmascript-2015
group: js-modules
usage_stats:
- https://chromestatus.com/metrics/feature/timeline/popularity/2062
- https://chromestatus.com/metrics/feature/timeline/popularity/2615
Expand Down
1 change: 1 addition & 0 deletions groups/js-modules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: JavaScript modules

0 comments on commit c22e393

Please sign in to comment.