Skip to content

Commit c22e393

Browse files
ddbeckfoolip
andauthored
Add ESM worker features (#1012)
Co-authored-by: Philip Jägenstedt <[email protected]>
1 parent 073575c commit c22e393

9 files changed

+76
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: js-modules-service-workers.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: JavaScript modules in service workers
5+
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.'
6+
spec: https://w3c.github.io/ServiceWorker/#dom-registrationoptions-type
7+
group: js-modules
8+
status:
9+
baseline: false
10+
support:
11+
chrome: "91"
12+
chrome_android: "91"
13+
edge: "91"
14+
safari: "15"
15+
safari_ios: "15"
16+
compat_features:
17+
- api.ServiceWorker.ecmascript_modules
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: JavaScript modules in service workers
2+
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.'
3+
spec: https://w3c.github.io/ServiceWorker/#dom-registrationoptions-type
4+
group: js-modules
5+
compat_features:
6+
- api.ServiceWorker.ecmascript_modules
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated from: js-modules-shared-workers.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: JavaScript modules in shared workers
5+
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.'
6+
spec: https://html.spec.whatwg.org/multipage/workers.html#shared-workers-and-the-sharedworker-interface:dom-sharedworker-2
7+
group: js-modules
8+
status:
9+
baseline: false
10+
support:
11+
chrome: "80"
12+
edge: "80"
13+
firefox: "114"
14+
firefox_android: "114"
15+
safari: "15"
16+
safari_ios: "15"
17+
compat_features:
18+
- api.SharedWorker.SharedWorker.ecmascript_modules
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: JavaScript modules in shared workers
2+
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.'
3+
spec: https://html.spec.whatwg.org/multipage/workers.html#shared-workers-and-the-sharedworker-interface:dom-sharedworker-2
4+
group: js-modules
5+
compat_features:
6+
- api.SharedWorker.SharedWorker.ecmascript_modules
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated from: js-modules-workers.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: JavaScript modules in workers
5+
description: 'The `Worker()` constructor accepts `{ type: "module" }` to load scripts that use `import` and `export`. Also known as ECMAScript modules or ESM in workers.'
6+
spec: https://html.spec.whatwg.org/multipage/workers.html#dom-worker-dev
7+
group: js-modules
8+
status:
9+
baseline: low
10+
baseline_low_date: 2023-06-06
11+
support:
12+
chrome: "80"
13+
chrome_android: "80"
14+
edge: "80"
15+
firefox: "114"
16+
firefox_android: "114"
17+
safari: "15"
18+
safari_ios: "15"
19+
compat_features:
20+
- api.Worker.Worker.ecmascript_modules
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: JavaScript modules in workers
2+
description: 'The `Worker()` constructor accepts `{ type: "module" }` to load scripts that use `import` and `export`. Also known as ECMAScript modules or ESM in workers.'
3+
spec: https://html.spec.whatwg.org/multipage/workers.html#dom-worker-dev
4+
group: js-modules
5+
compat_features:
6+
- api.Worker.Worker.ecmascript_modules

feature-group-definitions/js-modules.dist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ spec:
88
- https://html.spec.whatwg.org/multipage/webappapis.html#javascript-module-script
99
- https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-modules
1010
snapshot: ecmascript-2015
11+
group: js-modules
1112
usage_stats:
1213
- https://chromestatus.com/metrics/feature/timeline/popularity/2062
1314
- https://chromestatus.com/metrics/feature/timeline/popularity/2615

feature-group-definitions/js-modules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ spec:
55
- https://html.spec.whatwg.org/multipage/webappapis.html#javascript-module-script
66
- https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-modules
77
snapshot: ecmascript-2015
8+
group: js-modules
89
usage_stats:
910
- https://chromestatus.com/metrics/feature/timeline/popularity/2062
1011
- https://chromestatus.com/metrics/feature/timeline/popularity/2615

groups/js-modules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: JavaScript modules

0 commit comments

Comments
 (0)