Skip to content

Commit 70d3ecd

Browse files
authored
Manually update to [email protected] (#1577)
Co-authored-by: saschanaz <[email protected]>
1 parent dbf56b1 commit 70d3ecd

9 files changed

+43
-24
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ interface TextDecoder extends TextDecoderCommon {
858858
*
859859
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
860860
*/
861-
decode(input?: BufferSource, options?: TextDecodeOptions): string;
861+
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
862862
}
863863

864864
declare var TextDecoder: {
@@ -1399,6 +1399,7 @@ declare var currentTime: number;
13991399
declare var sampleRate: number;
14001400
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */
14011401
declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void;
1402+
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
14021403
type BufferSource = ArrayBufferView | ArrayBuffer;
14031404
type DOMHighResTimeStamp = number;
14041405
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;

baselines/dom.generated.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21887,7 +21887,7 @@ interface TextDecoder extends TextDecoderCommon {
2188721887
*
2188821888
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
2188921889
*/
21890-
decode(input?: BufferSource, options?: TextDecodeOptions): string;
21890+
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
2189121891
}
2189221892

2189321893
declare var TextDecoder: {
@@ -27926,6 +27926,7 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
2792627926
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2792727927
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2792827928
type AlgorithmIdentifier = Algorithm | string;
27929+
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
2792927930
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
2793027931
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
2793127932
type AutoFillSection = `section-${string}`;

baselines/serviceworker.generated.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5059,7 +5059,7 @@ interface TextDecoder extends TextDecoderCommon {
50595059
*
50605060
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
50615061
*/
5062-
decode(input?: BufferSource, options?: TextDecodeOptions): string;
5062+
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
50635063
}
50645064

50655065
declare var TextDecoder: {
@@ -8494,6 +8494,7 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
84948494
declare function removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
84958495
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
84968496
type AlgorithmIdentifier = Algorithm | string;
8497+
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
84978498
type BigInteger = Uint8Array;
84988499
type BinaryData = ArrayBuffer | ArrayBufferView;
84998500
type BlobPart = BufferSource | Blob | string;

baselines/sharedworker.generated.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4870,7 +4870,7 @@ interface TextDecoder extends TextDecoderCommon {
48704870
*
48714871
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
48724872
*/
4873-
decode(input?: BufferSource, options?: TextDecodeOptions): string;
4873+
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
48744874
}
48754875

48764876
declare var TextDecoder: {
@@ -8503,6 +8503,7 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
85038503
declare function removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
85048504
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
85058505
type AlgorithmIdentifier = Algorithm | string;
8506+
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
85068507
type BigInteger = Uint8Array;
85078508
type BinaryData = ArrayBuffer | ArrayBufferView;
85088509
type BlobPart = BufferSource | Blob | string;

baselines/webworker.generated.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2887,11 +2887,11 @@ interface FileSystemSyncAccessHandle {
28872887
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
28882888
getSize(): number;
28892889
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */
2890-
read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
2890+
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
28912891
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */
28922892
truncate(newSize: number): void;
28932893
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */
2894-
write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
2894+
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
28952895
}
28962896

28972897
declare var FileSystemSyncAccessHandle: {
@@ -5365,7 +5365,7 @@ interface TextDecoder extends TextDecoderCommon {
53655365
*
53665366
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
53675367
*/
5368-
decode(input?: BufferSource, options?: TextDecodeOptions): string;
5368+
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
53695369
}
53705370

53715371
declare var TextDecoder: {
@@ -9175,6 +9175,7 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
91759175
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
91769176
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
91779177
type AlgorithmIdentifier = Algorithm | string;
9178+
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
91789179
type BigInteger = Uint8Array;
91799180
type BinaryData = ArrayBuffer | ArrayBufferView;
91809181
type BlobPart = BufferSource | Blob | string;

inputfiles/overridingTypes.jsonc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,6 +3573,11 @@
35733573
}
35743574
],
35753575
"overrideType": "ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader"
3576+
},
3577+
{
3578+
"name": "AllowSharedBufferSource",
3579+
// No SharedArrayBuffer in ES5, oh no.
3580+
"overrideType": "ArrayBuffer | ArrayBufferView"
35763581
}
35773582
]
35783583
},

inputfiles/removedTypes.jsonc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@
522522
// https://searchfox.org/mozilla-central/source/dom/webidl/RTCStatsReport.webidl
523523
// https://searchfox.org/wubkat/source/Source/WebCore/Modules/mediastream/RTCStatsReport.idl
524524
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/stats/rtcstats_objects.cc
525+
"fecBytesReceived": null, // No implementation as of 2023-06
525526
"framesAssembledFromMultiplePackets": null, // Blink only as of 2022-10
526527
"framesRendered": null, // No implementation as of 2022-12
527528
"freezeCount": null, // Blink only as of 2022-10
@@ -612,6 +613,13 @@
612613
}
613614
}
614615
},
616+
"VideoFrameBufferInit": {
617+
"members": {
618+
"member": {
619+
"transfer": null // No implementation as of 2023-06.
620+
}
621+
}
622+
},
615623
"WebGLContextAttributes": {
616624
"members": {
617625
"member": {

package-lock.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as Browser from "./types.js";
33
// Extended types used but not defined in the spec
44
export const bufferSourceTypes = new Set([
55
"ArrayBuffer",
6+
"SharedArrayBuffer",
67
"ArrayBufferView",
78
"DataView",
89
"Int8Array",

0 commit comments

Comments
 (0)