webdriver-bidi-protocol 0.2.4 → 0.2.6

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.
@@ -21,7 +21,7 @@ jobs:
21
21
  runs-on: ubuntu-latest
22
22
  steps:
23
23
  - name: Check out repository
24
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25
25
  with:
26
26
  fetch-depth: 2
27
27
  - name: Install cddlconv
@@ -16,7 +16,7 @@ jobs:
16
16
  contents: read
17
17
  steps:
18
18
  - name: Check out repository
19
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20
20
  with:
21
21
  fetch-depth: 2
22
22
  - name: Set npm registry
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
  steps:
21
21
  - name: Check out repository
22
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23
23
  with:
24
24
  fetch-depth: 2
25
25
  - name: Install cddlconv
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.4"
2
+ ".": "0.2.6"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.6](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.5...webdriver-bidi-protocol-v0.2.6) (2025-08-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * re-generate types based on specifciation updates ([#221](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/221)) ([53d49a7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/53d49a7ffcb5ef4de3f4f8f4828bf64e4552f599))
9
+
10
+ ## [0.2.5](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.4...webdriver-bidi-protocol-v0.2.5) (2025-08-08)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * re-generate types based on specifciation updates ([#213](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/213)) ([eb37bb4](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/eb37bb4fb84ec00e23fe9bfa58dbb250abd2f040))
16
+
3
17
  ## [0.2.4](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.3...webdriver-bidi-protocol-v0.2.4) (2025-08-01)
4
18
 
5
19
 
package/out/gen/main.d.ts CHANGED
@@ -954,6 +954,7 @@ export type EmulationCommand =
954
954
  | Emulation.SetGeolocationOverride
955
955
  | Emulation.SetLocaleOverride
956
956
  | Emulation.SetScreenOrientationOverride
957
+ | Emulation.SetScriptingEnabled
957
958
  | Emulation.SetTimezoneOverride;
958
959
  export declare namespace Emulation {
959
960
  type SetForcedColorsModeThemeOverride = {
@@ -1095,6 +1096,22 @@ export declare namespace Emulation {
1095
1096
  userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1096
1097
  };
1097
1098
  }
1099
+ export declare namespace Emulation {
1100
+ type SetScriptingEnabled = {
1101
+ method: 'emulation.setScriptingEnabled';
1102
+ params: Emulation.SetScriptingEnabledParameters;
1103
+ };
1104
+ }
1105
+ export declare namespace Emulation {
1106
+ type SetScriptingEnabledParameters = {
1107
+ enabled: false | null;
1108
+ contexts?: [
1109
+ BrowsingContext.BrowsingContext,
1110
+ ...BrowsingContext.BrowsingContext[],
1111
+ ];
1112
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1113
+ };
1114
+ }
1098
1115
  export declare namespace Emulation {
1099
1116
  type SetTimezoneOverride = {
1100
1117
  method: 'emulation.setTimezoneOverride';
@@ -1534,7 +1551,7 @@ export declare namespace Network {
1534
1551
  }
1535
1552
  export declare namespace Network {
1536
1553
  type SetExtraHeadersParameters = {
1537
- headers: [Network.Header, ...Network.Header[]];
1554
+ headers: [...Network.Header[]];
1538
1555
  contexts?: [
1539
1556
  BrowsingContext.BrowsingContext,
1540
1557
  ...BrowsingContext.BrowsingContext[],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "gts": "^6.0.2",
25
25
  "parse5": "^8.0.0",
26
26
  "prettier": "3.6.2",
27
- "tsd": "0.32.0",
28
- "typescript": "5.8.3"
27
+ "tsd": "0.33.0",
28
+ "typescript": "5.9.2"
29
29
  }
30
30
  }
package/src/gen/main.ts CHANGED
@@ -956,6 +956,7 @@ export type EmulationCommand =
956
956
  | Emulation.SetGeolocationOverride
957
957
  | Emulation.SetLocaleOverride
958
958
  | Emulation.SetScreenOrientationOverride
959
+ | Emulation.SetScriptingEnabled
959
960
  | Emulation.SetTimezoneOverride;
960
961
  export namespace Emulation {
961
962
  export type SetForcedColorsModeThemeOverride = {
@@ -1097,6 +1098,22 @@ export namespace Emulation {
1097
1098
  userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1098
1099
  };
1099
1100
  }
1101
+ export namespace Emulation {
1102
+ export type SetScriptingEnabled = {
1103
+ method: 'emulation.setScriptingEnabled';
1104
+ params: Emulation.SetScriptingEnabledParameters;
1105
+ };
1106
+ }
1107
+ export namespace Emulation {
1108
+ export type SetScriptingEnabledParameters = {
1109
+ enabled: false | null;
1110
+ contexts?: [
1111
+ BrowsingContext.BrowsingContext,
1112
+ ...BrowsingContext.BrowsingContext[],
1113
+ ];
1114
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1115
+ };
1116
+ }
1100
1117
  export namespace Emulation {
1101
1118
  export type SetTimezoneOverride = {
1102
1119
  method: 'emulation.setTimezoneOverride';
@@ -1536,7 +1553,7 @@ export namespace Network {
1536
1553
  }
1537
1554
  export namespace Network {
1538
1555
  export type SetExtraHeadersParameters = {
1539
- headers: [Network.Header, ...Network.Header[]];
1556
+ headers: [...Network.Header[]];
1540
1557
  contexts?: [
1541
1558
  BrowsingContext.BrowsingContext,
1542
1559
  ...BrowsingContext.BrowsingContext[],