webdriver-bidi-protocol 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.0"
2
+ ".": "0.2.2"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.2](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.1...webdriver-bidi-protocol-v0.2.2) (2025-07-14)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * re-generate types based on specifciation updates ([#190](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/190)) ([7387ba3](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/7387ba3287a187cc3a48d5ca4f735c650f8a2d1a))
9
+
10
+ ## [0.2.1](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.0...webdriver-bidi-protocol-v0.2.1) (2025-07-01)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * re-generate types based on specifciation updates ([#183](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/183)) ([daf944c](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/daf944c89cda0387cc0eac163c858515b60ea480))
16
+ * re-generate types based on specifciation updates ([#187](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/187)) ([d847f6a](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d847f6afbd310e9587c79a942e33e09afe654729))
17
+
3
18
  ## [0.2.0](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.10...webdriver-bidi-protocol-v0.2.0) (2025-06-26)
4
19
 
5
20
 
package/out/gen/main.d.ts CHANGED
@@ -319,6 +319,7 @@ export declare namespace Browser {
319
319
  type CreateUserContextParameters = {
320
320
  acceptInsecureCerts?: boolean;
321
321
  proxy?: Session.ProxyConfiguration;
322
+ unhandledPromptBehavior?: Session.UserPromptHandler;
322
323
  };
323
324
  }
324
325
  export declare namespace Browser {
@@ -950,6 +951,7 @@ export declare namespace BrowsingContext {
950
951
  }
951
952
  export type EmulationCommand =
952
953
  | Emulation.SetGeolocationOverride
954
+ | Emulation.SetLocaleOverride
953
955
  | Emulation.SetScreenOrientationOverride;
954
956
  export declare namespace Emulation {
955
957
  type SetGeolocationOverride = {
@@ -1018,6 +1020,22 @@ export declare namespace Emulation {
1018
1020
  type: 'positionUnavailable';
1019
1021
  };
1020
1022
  }
1023
+ export declare namespace Emulation {
1024
+ type SetLocaleOverride = {
1025
+ method: 'emulation.setLocaleOverride';
1026
+ params: Emulation.SetLocaleOverrideParameters;
1027
+ };
1028
+ }
1029
+ export declare namespace Emulation {
1030
+ type SetLocaleOverrideParameters = {
1031
+ locale: string | null;
1032
+ contexts?: [
1033
+ BrowsingContext.BrowsingContext,
1034
+ ...BrowsingContext.BrowsingContext[],
1035
+ ];
1036
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1037
+ };
1038
+ }
1021
1039
  export declare namespace Emulation {
1022
1040
  type SetScreenOrientationOverride = {
1023
1041
  method: 'emulation.setScreenOrientationOverride';
@@ -1059,6 +1077,7 @@ export type NetworkCommand =
1059
1077
  | Network.ContinueRequest
1060
1078
  | Network.ContinueResponse
1061
1079
  | Network.ContinueWithAuth
1080
+ | Network.DisownData
1062
1081
  | Network.FailRequest
1063
1082
  | Network.GetData
1064
1083
  | Network.ProvideResponse
@@ -1129,6 +1148,7 @@ export declare namespace Network {
1129
1148
  Strict = 'strict',
1130
1149
  Lax = 'lax',
1131
1150
  None = 'none',
1151
+ Default = 'default',
1132
1152
  }
1133
1153
  }
1134
1154
  export declare namespace Network {
@@ -1407,7 +1427,7 @@ export declare namespace Network {
1407
1427
  request: Network.Request;
1408
1428
  };
1409
1429
  }
1410
- export declare namespace Script {
1430
+ export declare namespace Network {
1411
1431
  type GetDataResult = {
1412
1432
  bytes: Network.BytesValue;
1413
1433
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "devDependencies": {
23
23
  "@types/node": "^24.0.4",
24
24
  "gts": "^6.0.2",
25
- "parse5": "^7.1.2",
26
- "prettier": "3.6.1",
25
+ "parse5": "^8.0.0",
26
+ "prettier": "3.6.2",
27
27
  "tsd": "0.32.0",
28
28
  "typescript": "5.8.3"
29
29
  }
package/src/gen/main.ts CHANGED
@@ -321,6 +321,7 @@ export namespace Browser {
321
321
  export type CreateUserContextParameters = {
322
322
  acceptInsecureCerts?: boolean;
323
323
  proxy?: Session.ProxyConfiguration;
324
+ unhandledPromptBehavior?: Session.UserPromptHandler;
324
325
  };
325
326
  }
326
327
  export namespace Browser {
@@ -952,6 +953,7 @@ export namespace BrowsingContext {
952
953
  }
953
954
  export type EmulationCommand =
954
955
  | Emulation.SetGeolocationOverride
956
+ | Emulation.SetLocaleOverride
955
957
  | Emulation.SetScreenOrientationOverride;
956
958
  export namespace Emulation {
957
959
  export type SetGeolocationOverride = {
@@ -1020,6 +1022,22 @@ export namespace Emulation {
1020
1022
  type: 'positionUnavailable';
1021
1023
  };
1022
1024
  }
1025
+ export namespace Emulation {
1026
+ export type SetLocaleOverride = {
1027
+ method: 'emulation.setLocaleOverride';
1028
+ params: Emulation.SetLocaleOverrideParameters;
1029
+ };
1030
+ }
1031
+ export namespace Emulation {
1032
+ export type SetLocaleOverrideParameters = {
1033
+ locale: string | null;
1034
+ contexts?: [
1035
+ BrowsingContext.BrowsingContext,
1036
+ ...BrowsingContext.BrowsingContext[],
1037
+ ];
1038
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1039
+ };
1040
+ }
1023
1041
  export namespace Emulation {
1024
1042
  export type SetScreenOrientationOverride = {
1025
1043
  method: 'emulation.setScreenOrientationOverride';
@@ -1061,6 +1079,7 @@ export type NetworkCommand =
1061
1079
  | Network.ContinueRequest
1062
1080
  | Network.ContinueResponse
1063
1081
  | Network.ContinueWithAuth
1082
+ | Network.DisownData
1064
1083
  | Network.FailRequest
1065
1084
  | Network.GetData
1066
1085
  | Network.ProvideResponse
@@ -1131,6 +1150,7 @@ export namespace Network {
1131
1150
  Strict = 'strict',
1132
1151
  Lax = 'lax',
1133
1152
  None = 'none',
1153
+ Default = 'default',
1134
1154
  }
1135
1155
  }
1136
1156
  export namespace Network {
@@ -1409,7 +1429,7 @@ export namespace Network {
1409
1429
  request: Network.Request;
1410
1430
  };
1411
1431
  }
1412
- export namespace Script {
1432
+ export namespace Network {
1413
1433
  export type GetDataResult = {
1414
1434
  bytes: Network.BytesValue;
1415
1435
  };