webdriver-bidi-protocol 0.0.5 → 0.0.7

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.
@@ -24,22 +24,23 @@ jobs:
24
24
  uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
25
25
  with:
26
26
  fetch-depth: 2
27
+ ref: ${{ github.head_ref }}
28
+ token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
27
29
  - name: Install cddlconv
28
- run: cargo install cddlconv@0.1.5
30
+ uses: baptiste0928/cargo-install@904927dbe77864e0f2281519fe9d5bd097a220b3 # v3.1.1
31
+ with:
32
+ crate: cddlconv
33
+ version: 0.1.5
29
34
  - name: Install dependencies
30
35
  run: npm ci
31
36
  - name: Build and test
32
37
  run: npm test
33
- - id: check_changes
34
- run: |
35
- if [[ -n $(git status --porcelain) ]]; then
36
- echo "changes=true" >> "$GITHUB_OUTPUT";
37
- fi
38
38
  - name: Commit and push changes
39
- if: contains(github.event.pull_request.labels.*.name, 'commit-updates') && steps.check_changes.outputs.changes == 'true'
40
- run: |
41
- git config --global user.name 'browser-automation-bot'
42
- git config --global user.email '133232582+browser-automation-bot@users.noreply.github.com'
43
- git add . --all
44
- git commit -m 'chore: commit updated files' --no-verify
45
- git push
39
+ if: contains(github.event.pull_request.labels.*.name, 'commit-updates')
40
+ uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # 5.0.1
41
+ with:
42
+ commit_message: "fix: generate files"
43
+ commit_options: -n --signoff
44
+ commit_user_name: Browser Automation Bot
45
+ commit_user_email: browser-automation-bot@google.com
46
+ commit_author: Browser Automation Bot <browser-automation-bot@google.com>
@@ -18,4 +18,4 @@ jobs:
18
18
  token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
19
19
  target-branch: main
20
20
  config-file: release-please-config.json
21
- manifest-file: .release-please-manifest.json
21
+ manifest-file: .release-please-manifest.json
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.0.5"
2
+ ".": "0.0.7"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.0.6...webdriver-bidi-protocol-v0.0.7) (2024-07-04)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * bump specs/webdriver-bidi from `0c366b0` to `a46d71b` ([#30](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/30)) ([c926381](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/c92638156ca8cbe36e2485fde2c3eca4b6d14cd7))
9
+
10
+ ## [0.0.6](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.0.5...webdriver-bidi-protocol-v0.0.6) (2024-07-02)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * bump specs/webdriver-bidi from `62b8dfe` to `0c366b0` ([#25](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/25)) ([e6da243](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e6da2439e38f2c403319ce1dbed16c9b8029667d))
16
+
3
17
  ## [0.0.5](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.0.4...webdriver-bidi-protocol-v0.0.5) (2024-06-28)
4
18
 
5
19
 
package/out/gen/main.d.ts CHANGED
@@ -150,13 +150,6 @@ export declare namespace Session {
150
150
  proxyType: 'system';
151
151
  } & Extensible;
152
152
  }
153
- export declare namespace Session {
154
- const enum UserPromptHandlerType {
155
- Accept = 'accept',
156
- Dismiss = 'dismiss',
157
- Ignore = 'ignore',
158
- }
159
- }
160
153
  export declare namespace Session {
161
154
  type UserPromptHandler = {
162
155
  alert?: Session.UserPromptHandlerType;
@@ -166,6 +159,13 @@ export declare namespace Session {
166
159
  prompt?: Session.UserPromptHandlerType;
167
160
  };
168
161
  }
162
+ export declare namespace Session {
163
+ const enum UserPromptHandlerType {
164
+ Accept = 'accept',
165
+ Dismiss = 'dismiss',
166
+ Ignore = 'ignore',
167
+ }
168
+ }
169
169
  export declare namespace Session {
170
170
  type SubscriptionRequest = {
171
171
  events: [string, ...string[]];
@@ -782,7 +782,7 @@ export declare namespace BrowsingContext {
782
782
  export declare namespace BrowsingContext {
783
783
  type UserPromptOpenedParameters = {
784
784
  context: BrowsingContext.BrowsingContext;
785
- handler: 'accept' | 'dismiss' | 'ignore';
785
+ handler: Session.UserPromptHandlerType;
786
786
  message: string;
787
787
  type: BrowsingContext.UserPromptType;
788
788
  defaultValue?: string;
@@ -795,7 +795,8 @@ export type NetworkCommand =
795
795
  | Network.ContinueWithAuth
796
796
  | Network.FailRequest
797
797
  | Network.ProvideResponse
798
- | Network.RemoveIntercept;
798
+ | Network.RemoveIntercept
799
+ | Network.SetCacheBehavior;
799
800
  export type NetworkEvent =
800
801
  | Network.AuthRequired
801
802
  | Network.BeforeRequestSent
@@ -1094,6 +1095,21 @@ export declare namespace Network {
1094
1095
  intercept: Network.Intercept;
1095
1096
  };
1096
1097
  }
1098
+ export declare namespace Network {
1099
+ type SetCacheBehavior = {
1100
+ method: 'network.setCacheBehavior';
1101
+ params: Network.SetCacheBehaviorParameters;
1102
+ };
1103
+ }
1104
+ export declare namespace Network {
1105
+ type SetCacheBehaviorParameters = {
1106
+ cacheBehavior: 'default' | 'bypass';
1107
+ contexts?: [
1108
+ BrowsingContext.BrowsingContext,
1109
+ ...BrowsingContext.BrowsingContext[],
1110
+ ];
1111
+ };
1112
+ }
1097
1113
  export type ScriptEvent =
1098
1114
  | Script.Message
1099
1115
  | Script.RealmCreated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -25,6 +25,6 @@
25
25
  "parse5": "^7.1.2",
26
26
  "prettier": "3.3.2",
27
27
  "tsd": "0.31.1",
28
- "typescript": "5.5.2"
28
+ "typescript": "5.5.3"
29
29
  }
30
30
  }
package/src/gen/main.ts CHANGED
@@ -152,13 +152,6 @@ export namespace Session {
152
152
  proxyType: 'system';
153
153
  } & Extensible;
154
154
  }
155
- export namespace Session {
156
- export const enum UserPromptHandlerType {
157
- Accept = 'accept',
158
- Dismiss = 'dismiss',
159
- Ignore = 'ignore',
160
- }
161
- }
162
155
  export namespace Session {
163
156
  export type UserPromptHandler = {
164
157
  alert?: Session.UserPromptHandlerType;
@@ -168,6 +161,13 @@ export namespace Session {
168
161
  prompt?: Session.UserPromptHandlerType;
169
162
  };
170
163
  }
164
+ export namespace Session {
165
+ export const enum UserPromptHandlerType {
166
+ Accept = 'accept',
167
+ Dismiss = 'dismiss',
168
+ Ignore = 'ignore',
169
+ }
170
+ }
171
171
  export namespace Session {
172
172
  export type SubscriptionRequest = {
173
173
  events: [string, ...string[]];
@@ -784,7 +784,7 @@ export namespace BrowsingContext {
784
784
  export namespace BrowsingContext {
785
785
  export type UserPromptOpenedParameters = {
786
786
  context: BrowsingContext.BrowsingContext;
787
- handler: 'accept' | 'dismiss' | 'ignore';
787
+ handler: Session.UserPromptHandlerType;
788
788
  message: string;
789
789
  type: BrowsingContext.UserPromptType;
790
790
  defaultValue?: string;
@@ -797,7 +797,8 @@ export type NetworkCommand =
797
797
  | Network.ContinueWithAuth
798
798
  | Network.FailRequest
799
799
  | Network.ProvideResponse
800
- | Network.RemoveIntercept;
800
+ | Network.RemoveIntercept
801
+ | Network.SetCacheBehavior;
801
802
  export type NetworkEvent =
802
803
  | Network.AuthRequired
803
804
  | Network.BeforeRequestSent
@@ -1096,6 +1097,21 @@ export namespace Network {
1096
1097
  intercept: Network.Intercept;
1097
1098
  };
1098
1099
  }
1100
+ export namespace Network {
1101
+ export type SetCacheBehavior = {
1102
+ method: 'network.setCacheBehavior';
1103
+ params: Network.SetCacheBehaviorParameters;
1104
+ };
1105
+ }
1106
+ export namespace Network {
1107
+ export type SetCacheBehaviorParameters = {
1108
+ cacheBehavior: 'default' | 'bypass';
1109
+ contexts?: [
1110
+ BrowsingContext.BrowsingContext,
1111
+ ...BrowsingContext.BrowsingContext[],
1112
+ ];
1113
+ };
1114
+ }
1099
1115
  export type ScriptEvent =
1100
1116
  | Script.Message
1101
1117
  | Script.RealmCreated
package/tools/build.sh CHANGED
@@ -18,6 +18,8 @@ cddlconv specs/permissions/all.cddl > src/gen/permissions.ts
18
18
  (cd specs/webdriver-bidi && git reset --hard HEAD && git clean -fd)
19
19
  (cd specs/permissions && git reset --hard HEAD && git clean -fd)
20
20
 
21
+ git submodule deinit --all
22
+
21
23
  npx tsc -p tsconfig.json
22
24
  npx tsd
23
25
  npm run format