Skip to content

Commit 0c19a29

Browse files
committed
Merge branch 'main' into builtiniteratorreturn
2 parents b010afb + 6c3e2dd commit 0c19a29

11 files changed

+528
-132
lines changed

Diff for: baselines/audioworklet.generated.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ declare var ByteLengthQueuingStrategy: {
291291

292292
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
293293
interface CompressionStream extends GenericTransformStream {
294+
readonly readable: ReadableStream<Uint8Array>;
295+
readonly writable: WritableStream<BufferSource>;
294296
}
295297

296298
declare var CompressionStream: {
@@ -411,6 +413,8 @@ declare var DOMException: {
411413

412414
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
413415
interface DecompressionStream extends GenericTransformStream {
416+
readonly readable: ReadableStream<Uint8Array>;
417+
readonly writable: WritableStream<BufferSource>;
414418
}
415419

416420
declare var DecompressionStream: {
@@ -786,7 +790,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
786790

787791
declare var ReadableStreamBYOBReader: {
788792
prototype: ReadableStreamBYOBReader;
789-
new(stream: ReadableStream): ReadableStreamBYOBReader;
793+
new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader;
790794
};
791795

792796
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */

Diff for: baselines/dom.generated.d.ts

+188-34
Large diffs are not rendered by default.

Diff for: baselines/serviceworker.generated.d.ts

+73-16
Large diffs are not rendered by default.

Diff for: baselines/sharedworker.generated.d.ts

+71-16
Large diffs are not rendered by default.

Diff for: baselines/webworker.generated.d.ts

+73-16
Large diffs are not rendered by default.

Diff for: inputfiles/addedTypes.jsonc

+9-8
Original file line numberDiff line numberDiff line change
@@ -338,19 +338,20 @@
338338
// https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features
339339
// Please add a feature only when it's supported by multiple engines.
340340
"value": [
341-
// https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility
341+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility
342342
"geolocation",
343-
// https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility
343+
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API#browser_compatibility
344+
"midi",
345+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility
344346
"notifications",
345-
// https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility
347+
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility
346348
"persistent-storage",
347-
// https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility
349+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility
348350
"push",
349-
// https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility
351+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility
350352
"screen-wake-lock",
351-
// WebXR is also actually Blink-only
352-
// https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API#browser_compatibility
353-
"xr-spatial-tracking"
353+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
354+
"storage-access"
354355
]
355356
},
356357
"AutoFillBase": {

Diff for: inputfiles/overridingTypes.jsonc

+65
Original file line numberDiff line numberDiff line change
@@ -2697,6 +2697,18 @@
26972697
}
26982698
},
26992699
"ReadableStreamBYOBReader": {
2700+
"constructor": {
2701+
"signature": {
2702+
"0": {
2703+
"param": [
2704+
{
2705+
"name": "stream",
2706+
"overrideType": "ReadableStream<Uint8Array>"
2707+
}
2708+
]
2709+
}
2710+
}
2711+
},
27002712
"methods": {
27012713
"method": {
27022714
"read": {
@@ -2987,6 +2999,38 @@
29872999
}
29883000
}
29893001
},
3002+
"CompressionStream": {
3003+
"properties": {
3004+
"property": {
3005+
"readable": {
3006+
"name": "readable",
3007+
"readonly": true,
3008+
"overrideType": "ReadableStream<Uint8Array>"
3009+
},
3010+
"writable": {
3011+
"name": "writable",
3012+
"readonly": true,
3013+
"overrideType": "WritableStream<BufferSource>"
3014+
}
3015+
}
3016+
}
3017+
},
3018+
"DecompressionStream": {
3019+
"properties": {
3020+
"property": {
3021+
"readable": {
3022+
"name": "readable",
3023+
"readonly": true,
3024+
"overrideType": "ReadableStream<Uint8Array>"
3025+
},
3026+
"writable": {
3027+
"name": "writable",
3028+
"readonly": true,
3029+
"overrideType": "WritableStream<BufferSource>"
3030+
}
3031+
}
3032+
}
3033+
},
29903034
"TextDecoderStream": {
29913035
"properties": {
29923036
"property": {
@@ -3170,7 +3214,15 @@
31703214
}
31713215
}
31723216
},
3217+
"MIDIAccess": {
3218+
"exposed": "Window", // Window only on Gecko/Blink as of 2024-07
3219+
"transferable": false // Not transferable on Gecko/Blink as of 2024-07
3220+
},
3221+
"MIDIConnectionEvent": {
3222+
"exposed": "Window" // Window only on Gecko/Blink as of 2024-07
3223+
},
31733224
"MIDIInput": {
3225+
"exposed": "Window", // Window only on Gecko/Blink as of 2024-07
31743226
"events": {
31753227
"event": [
31763228
{
@@ -3180,7 +3232,20 @@
31803232
]
31813233
}
31823234
},
3235+
"MIDIInputMap": {
3236+
"exposed": "Window" // Window only on Gecko/Blink as of 2024-07
3237+
},
3238+
"MIDIMessageEvent": {
3239+
"exposed": "Window" // Window only on Gecko/Blink as of 2024-07
3240+
},
3241+
"MIDIOutput": {
3242+
"exposed": "Window" // Window only on Gecko/Blink as of 2024-07
3243+
},
3244+
"MIDIOutputMap": {
3245+
"exposed": "Window" // Window only on Gecko/Blink as of 2024-07
3246+
},
31833247
"MIDIPort": {
3248+
"exposed": "Window", // Window only on Gecko/Blink as of 2024-07
31843249
"events": {
31853250
"event": [
31863251
{

Diff for: inputfiles/removedTypes.jsonc

+17-17
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
},
2222
"MediaSessionAction": {
2323
"value": [
24-
"enterpictureinpicture", // Blink only as of 2023-10
25-
"hangup", // Blink only as of 2022-09
26-
"nextslide", // Blink only as of as of 2024-06
27-
"previousslide", // Blink only as of as of 2024-06
28-
"togglecamera", // Blink only as of 2022-09
29-
"togglemicrophone", // Blink only as of 2022-09
30-
"togglescreenshare" // No implementation as of 2022-09
24+
"enterpictureinpicture", // Blink only as of 2024-07
25+
"hangup", // Blink only as of 2024-07
26+
"nextslide", // Blink only as of as of 2024-07
27+
"previousslide", // Blink only as of as of 2024-07
28+
"togglecamera", // Blink only as of 2024-07
29+
"togglemicrophone", // Blink only as of 2024-07
30+
"togglescreenshare", // No implementation as of 2024-07
31+
"voiceactivity" // No implementation as of 2024-07
3132
]
3233
},
3334
"RequestDestination": {
@@ -93,8 +94,7 @@
9394
"CSSRule": {
9495
"constants": {
9596
"constant": {
96-
"MARGIN_RULE": null, // WebKit only as of 2023-10
97-
"VIEW_TRANSITION_RULE": null // No implementation as of 2023-10
97+
"MARGIN_RULE": null // WebKit only as of 2023-10
9898
}
9999
}
100100
},
@@ -108,6 +108,9 @@
108108
}
109109
}
110110
},
111+
"IntersectionObserverEntry": {
112+
"constructor": null // WebKit-only as of 2024-07
113+
},
111114
"PaymentResponse": {
112115
"methods": {
113116
"method": {
@@ -213,9 +216,7 @@
213216
"hmacGetSecret": null, // No implementation as of 2023-11
214217
"largeBlob": null,
215218
"payment": null,
216-
"prf": null,
217-
"supplementalPubKeys": null, // No implementation as of 2023-11
218-
"uvm": null
219+
"supplementalPubKeys": null // No implementation as of 2023-11
219220
}
220221
}
221222
},
@@ -226,9 +227,7 @@
226227
"appidExclude": null, // No implementation as of 2023-11
227228
"hmacGetSecret": null, // No implementation as of 2023-11
228229
"largeBlob": null,
229-
"prf": null,
230-
"supplementalPubKeys": null, // No implementation as of 2023-11
231-
"uvm": null
230+
"supplementalPubKeys": null // No implementation as of 2023-11
232231
}
233232
}
234233
},
@@ -309,7 +308,9 @@
309308
"IntersectionObserverInit": {
310309
"members": {
311310
"member": {
312-
"scrollMargin": null // Blink only as of 2023-10
311+
"delay": null, // Blink only as of 2024-07
312+
"scrollMargin": null, // Blink only as of 2024-07
313+
"trackVisibility": null // Blink only as of 2024-07
313314
}
314315
}
315316
},
@@ -700,7 +701,6 @@
700701
"VideoEncoderConfig": {
701702
"members": {
702703
"member": {
703-
"av1": null, // Blink only as of 2023-05
704704
"contentHint": null, // Blink only as of 2023-11
705705
"hevc": null // Blink only as of 2023-03
706706
}

Diff for: package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/build.ts

+18-14
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,6 @@ async function emitDom() {
126126
await Promise.all([...(await getWebidls()).entries()].map(convertWidl))
127127
).filter((i) => i) as ReturnType<typeof convert>[];
128128

129-
const transferables = widlStandardTypes.flatMap((st) => {
130-
return Object.values(st.browser.interfaces?.interface ?? {}).filter(
131-
(i) => i.transferable,
132-
);
133-
});
134-
135-
addedItems.typedefs.typedef.push({
136-
name: "Transferable",
137-
type: [
138-
...transferables.map((v) => ({ type: v.name })),
139-
{ type: "ArrayBuffer" },
140-
],
141-
});
142-
143129
async function convertWidl([shortName, idl]: string[]) {
144130
let commentsMap: Record<string, string>;
145131
try {
@@ -281,6 +267,24 @@ async function emitDom() {
281267
}
282268
}
283269

270+
const transferables = Object.values(
271+
webidl.interfaces?.interface ?? {},
272+
).filter((i) => i.transferable);
273+
274+
webidl = merge(webidl, {
275+
typedefs: {
276+
typedef: [
277+
{
278+
name: "Transferable",
279+
type: [
280+
...transferables.map((v) => ({ type: v.name })),
281+
{ type: "ArrayBuffer" },
282+
],
283+
},
284+
],
285+
},
286+
});
287+
284288
const knownTypes = await readInputJSON("knownTypes.json");
285289

286290
const emitVariations = [

Diff for: src/build/bcd/keep-alive.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const forceKeepAlive: Record<string, string[]> = {
2121
// https://github.com/mdn/browser-compat-data/issues/15345
2222
"onslotchange",
2323
],
24-
WorkerGlobalScope: ["onrejectionhandled", "onunhandledrejection"],
2524
XMLHttpRequestEventTarget: [
2625
// BCD unexpectedly is removing valid event data
2726
// https://github.com/mdn/browser-compat-data/issues/15345

0 commit comments

Comments
 (0)