Skip to content

Commit 0342a8a

Browse files
authored
Manually update to [email protected] (#1311)
* Manually update to [email protected] * install @types/prettier to fix linter issue
1 parent 8f84c99 commit 0342a8a

File tree

8 files changed

+184
-215
lines changed

8 files changed

+184
-215
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6052,7 +6052,6 @@ declare var HTMLBaseElement: {
60526052
};
60536053

60546054
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
6055-
"orientationchange": Event;
60566055
}
60576056

60586057
/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
@@ -6066,8 +6065,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
60666065
/** @deprecated */
60676066
link: string;
60686067
/** @deprecated */
6069-
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
6070-
/** @deprecated */
60716068
text: string;
60726069
/** @deprecated */
60736070
vLink: string;
@@ -9905,7 +9902,7 @@ declare var NavigationPreloadManager: {
99059902
};
99069903

99079904
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
9908-
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
9905+
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
99099906
/** Available only in secure contexts. */
99109907
readonly clipboard: Clipboard;
99119908
/** Available only in secure contexts. */
@@ -9962,7 +9959,6 @@ interface NavigatorID {
99629959
readonly appName: string;
99639960
/** @deprecated */
99649961
readonly appVersion: string;
9965-
/** @deprecated */
99669962
readonly platform: string;
99679963
/** @deprecated */
99689964
readonly product: string;
@@ -9984,10 +9980,6 @@ interface NavigatorLocks {
99849980
readonly locks: LockManager;
99859981
}
99869982

9987-
interface NavigatorNetworkInformation {
9988-
readonly connection: NetworkInformation;
9989-
}
9990-
99919983
interface NavigatorOnLine {
99929984
readonly onLine: boolean;
99939985
}
@@ -10007,15 +9999,6 @@ interface NavigatorStorage {
100079999
readonly storage: StorageManager;
1000810000
}
1000910001

10010-
interface NetworkInformation extends EventTarget {
10011-
readonly type: ConnectionType;
10012-
}
10013-
10014-
declare var NetworkInformation: {
10015-
prototype: NetworkInformation;
10016-
new(): NetworkInformation;
10017-
};
10018-
1001910002
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
1002010003
interface Node extends EventTarget {
1002110004
/** Returns node's node document's document base URL. */
@@ -18176,7 +18159,6 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
1817618159
type ColorSpaceConversion = "default" | "none";
1817718160
type CompositeOperation = "accumulate" | "add" | "replace";
1817818161
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
18179-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
1818018162
type CredentialMediationRequirement = "optional" | "required" | "silent";
1818118163
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
1818218164
type DirectionSetting = "" | "lr" | "rl";

baselines/serviceworker.generated.d.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,7 +2192,6 @@ interface NavigatorID {
21922192
readonly appName: string;
21932193
/** @deprecated */
21942194
readonly appVersion: string;
2195-
/** @deprecated */
21962195
readonly platform: string;
21972196
/** @deprecated */
21982197
readonly product: string;
@@ -2209,10 +2208,6 @@ interface NavigatorLocks {
22092208
readonly locks: LockManager;
22102209
}
22112210

2212-
interface NavigatorNetworkInformation {
2213-
readonly connection: NetworkInformation;
2214-
}
2215-
22162211
interface NavigatorOnLine {
22172212
readonly onLine: boolean;
22182213
}
@@ -2222,15 +2217,6 @@ interface NavigatorStorage {
22222217
readonly storage: StorageManager;
22232218
}
22242219

2225-
interface NetworkInformation extends EventTarget {
2226-
readonly type: ConnectionType;
2227-
}
2228-
2229-
declare var NetworkInformation: {
2230-
prototype: NetworkInformation;
2231-
new(): NetworkInformation;
2232-
};
2233-
22342220
interface NotificationEventMap {
22352221
"click": Event;
22362222
"close": Event;
@@ -5192,7 +5178,7 @@ declare var WorkerLocation: {
51925178
};
51935179

51945180
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
5195-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
5181+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
51965182
readonly mediaCapabilities: MediaCapabilities;
51975183
}
51985184

@@ -5556,7 +5542,6 @@ type BinaryType = "arraybuffer" | "blob";
55565542
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
55575543
type ColorGamut = "p3" | "rec2020" | "srgb";
55585544
type ColorSpaceConversion = "default" | "none";
5559-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
55605545
type DocumentVisibilityState = "hidden" | "visible";
55615546
type EndingType = "native" | "transparent";
55625547
type FileSystemHandleKind = "directory" | "file";

baselines/sharedworker.generated.d.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,6 @@ interface NavigatorID {
21112111
readonly appName: string;
21122112
/** @deprecated */
21132113
readonly appVersion: string;
2114-
/** @deprecated */
21152114
readonly platform: string;
21162115
/** @deprecated */
21172116
readonly product: string;
@@ -2128,10 +2127,6 @@ interface NavigatorLocks {
21282127
readonly locks: LockManager;
21292128
}
21302129

2131-
interface NavigatorNetworkInformation {
2132-
readonly connection: NetworkInformation;
2133-
}
2134-
21352130
interface NavigatorOnLine {
21362131
readonly onLine: boolean;
21372132
}
@@ -2141,15 +2136,6 @@ interface NavigatorStorage {
21412136
readonly storage: StorageManager;
21422137
}
21432138

2144-
interface NetworkInformation extends EventTarget {
2145-
readonly type: ConnectionType;
2146-
}
2147-
2148-
declare var NetworkInformation: {
2149-
prototype: NetworkInformation;
2150-
new(): NetworkInformation;
2151-
};
2152-
21532139
interface NotificationEventMap {
21542140
"click": Event;
21552141
"close": Event;
@@ -5071,7 +5057,7 @@ declare var WorkerLocation: {
50715057
};
50725058

50735059
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
5074-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
5060+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
50755061
readonly mediaCapabilities: MediaCapabilities;
50765062
}
50775063

@@ -5571,7 +5557,6 @@ type BinaryType = "arraybuffer" | "blob";
55715557
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
55725558
type ColorGamut = "p3" | "rec2020" | "srgb";
55735559
type ColorSpaceConversion = "default" | "none";
5574-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
55755560
type EndingType = "native" | "transparent";
55765561
type FileSystemHandleKind = "directory" | "file";
55775562
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,6 @@ interface NavigatorID {
22672267
readonly appName: string;
22682268
/** @deprecated */
22692269
readonly appVersion: string;
2270-
/** @deprecated */
22712270
readonly platform: string;
22722271
/** @deprecated */
22732272
readonly product: string;
@@ -2284,10 +2283,6 @@ interface NavigatorLocks {
22842283
readonly locks: LockManager;
22852284
}
22862285

2287-
interface NavigatorNetworkInformation {
2288-
readonly connection: NetworkInformation;
2289-
}
2290-
22912286
interface NavigatorOnLine {
22922287
readonly onLine: boolean;
22932288
}
@@ -2297,15 +2292,6 @@ interface NavigatorStorage {
22972292
readonly storage: StorageManager;
22982293
}
22992294

2300-
interface NetworkInformation extends EventTarget {
2301-
readonly type: ConnectionType;
2302-
}
2303-
2304-
declare var NetworkInformation: {
2305-
prototype: NetworkInformation;
2306-
new(): NetworkInformation;
2307-
};
2308-
23092295
interface NotificationEventMap {
23102296
"click": Event;
23112297
"close": Event;
@@ -5351,7 +5337,7 @@ declare var WorkerLocation: {
53515337
};
53525338

53535339
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
5354-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
5340+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
53555341
readonly mediaCapabilities: MediaCapabilities;
53565342
}
53575343

@@ -5862,7 +5848,6 @@ type BinaryType = "arraybuffer" | "blob";
58625848
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
58635849
type ColorGamut = "p3" | "rec2020" | "srgb";
58645850
type ColorSpaceConversion = "default" | "none";
5865-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
58665851
type DocumentVisibilityState = "hidden" | "visible";
58675852
type EndingType = "native" | "transparent";
58685853
type FileSystemHandleKind = "directory" | "file";

inputfiles/overridingTypes.jsonc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,18 @@
407407
}
408408
}
409409
},
410+
"HTMLElement": {
411+
"properties": {
412+
"property": {
413+
"hidden": {
414+
// https://github.com/whatwg/html/pull/7475
415+
// Revisit when this get browser supports.
416+
"overrideType": "boolean",
417+
"nullable": false
418+
}
419+
}
420+
}
421+
},
410422
"MediaQueryList": {
411423
"methods": {
412424
"method": {

inputfiles/removedTypes.jsonc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"NavigatorFonts",
8080
"NavigatorGPU",
8181
"NavigatorML",
82+
"NavigatorNetworkInformation",
8283
"NavigatorUA"
8384
]
8485
},
@@ -164,6 +165,7 @@
164165
"NavigatorFonts",
165166
"NavigatorGPU",
166167
"NavigatorML",
168+
"NavigatorNetworkInformation",
167169
"NavigatorUA"
168170
]
169171
}
@@ -575,7 +577,8 @@
575577
"VideoConfiguration": {
576578
"members": {
577579
"member": {
578-
"hasAlphaChannel": null
580+
"hasAlphaChannel": null,
581+
"spatialScalability": null
579582
}
580583
}
581584
},

0 commit comments

Comments
 (0)