webdriver-bidi-protocol 0.1.0 → 0.1.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.
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: regenerate
|
|
2
|
+
|
|
3
|
+
# Declare default permissions as read only.
|
|
4
|
+
permissions: read-all
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
push:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: regenerate-${{ github.head_ref || github.run_id }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
ci:
|
|
18
|
+
name: '[Required] Regenerate'
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- name: Check out repository
|
|
22
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 2
|
|
25
|
+
- name: Install cddlconv
|
|
26
|
+
run: cargo install cddlconv@0.1.5
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: npm ci
|
|
29
|
+
- name: Build and test
|
|
30
|
+
run: npm test
|
|
31
|
+
- name: Create Pull Request
|
|
32
|
+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
|
|
33
|
+
with:
|
|
34
|
+
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
|
|
35
|
+
branch: regenerate
|
|
36
|
+
delete-branch: true
|
|
37
|
+
committer: Browser Automation Bot <browser-automation-bot@google.com>
|
|
38
|
+
author: Browser Automation Bot <browser-automation-bot@google.com>
|
|
39
|
+
commit-message: 'fix: re-generate types based on specifciation updates'
|
|
40
|
+
title: 'fix: re-generate types based on specifciation updates'
|
|
41
|
+
body: 'Automatically generated by https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/blob/main/.github/workflows/regenerate.yml'
|
|
42
|
+
push-to-fork: browser-automation-bot/webdriver-bidi-protocol
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.2](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.1...webdriver-bidi-protocol-v0.1.2) (2024-12-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* re-generate types based on specifciation updates ([#83](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/83)) ([ac66a29](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/ac66a29bc3396c2bdabb133d5dfb63fc2b029add))
|
|
9
|
+
|
|
10
|
+
## [0.1.1](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.0...webdriver-bidi-protocol-v0.1.1) (2024-12-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* re-gen types based on the spec changes ([#75](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/75)) ([e95b00e](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e95b00e96333781b8843325d928e75f49768f06f))
|
|
16
|
+
|
|
3
17
|
## [0.1.0](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.0.9...webdriver-bidi-protocol-v0.1.0) (2024-12-02)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# webdriver-bidi-protocol
|
|
2
2
|
|
|
3
3
|
This repository contains TypeScript types conforming to the [WebDriver
|
|
4
|
-
BiDi](https://w3c.github.io/webdriver-bidi/) specification.
|
|
4
|
+
BiDi](https://w3c.github.io/webdriver-bidi/) specification. It also
|
|
5
|
+
supports WebDriver BiDi extension modules defined in other
|
|
6
|
+
specifications:
|
|
7
|
+
|
|
8
|
+
- [Permissions](https://w3c.github.io/permissions/#automation-webdriver-bidi)
|
|
9
|
+
- [Web Bluetooth](https://webbluetoothcg.github.io/web-bluetooth/#automated-testing)
|
|
5
10
|
|
|
6
11
|
## Installation
|
|
7
12
|
|
|
@@ -31,4 +36,4 @@ await sendCommand('browsingContext.print', {context: 'xxx'});
|
|
|
31
36
|
## Versioning
|
|
32
37
|
|
|
33
38
|
This package patch version will be incremented whenever there are
|
|
34
|
-
specification updates.
|
|
39
|
+
specification updates.
|
package/out/gen/main.d.ts
CHANGED
|
@@ -23,14 +23,16 @@ export type CommandData =
|
|
|
23
23
|
| NetworkCommand
|
|
24
24
|
| ScriptCommand
|
|
25
25
|
| SessionCommand
|
|
26
|
-
| StorageCommand
|
|
26
|
+
| StorageCommand
|
|
27
|
+
| WebExtensionCommand;
|
|
27
28
|
export type ResultData =
|
|
28
29
|
| BrowsingContextResult
|
|
29
30
|
| EmptyResult
|
|
30
31
|
| NetworkResult
|
|
31
32
|
| ScriptResult
|
|
32
33
|
| SessionResult
|
|
33
|
-
| StorageResult
|
|
34
|
+
| StorageResult
|
|
35
|
+
| WebExtensionResult;
|
|
34
36
|
export type EmptyParams = Extensible;
|
|
35
37
|
export type Message = CommandResponse | ErrorResponse | Event;
|
|
36
38
|
export type ErrorResponse = {
|
|
@@ -2258,9 +2260,8 @@ export declare namespace Input {
|
|
|
2258
2260
|
files: [...string[]];
|
|
2259
2261
|
};
|
|
2260
2262
|
}
|
|
2261
|
-
export type
|
|
2262
|
-
|
|
2263
|
-
export type WebExtensionsResult = WebExtension.InstallResult;
|
|
2263
|
+
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
|
|
2264
|
+
export type WebExtensionResult = WebExtension.InstallResult;
|
|
2264
2265
|
export declare namespace WebExtension {
|
|
2265
2266
|
type Extension = string;
|
|
2266
2267
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/node": "^22.5.2",
|
|
24
24
|
"gts": "^6.0.2",
|
|
25
25
|
"parse5": "^7.1.2",
|
|
26
|
-
"prettier": "3.4.
|
|
26
|
+
"prettier": "3.4.2",
|
|
27
27
|
"tsd": "0.31.2",
|
|
28
28
|
"typescript": "5.7.2"
|
|
29
29
|
}
|
package/src/gen/main.ts
CHANGED
|
@@ -23,14 +23,16 @@ export type CommandData =
|
|
|
23
23
|
| NetworkCommand
|
|
24
24
|
| ScriptCommand
|
|
25
25
|
| SessionCommand
|
|
26
|
-
| StorageCommand
|
|
26
|
+
| StorageCommand
|
|
27
|
+
| WebExtensionCommand;
|
|
27
28
|
export type ResultData =
|
|
28
29
|
| BrowsingContextResult
|
|
29
30
|
| EmptyResult
|
|
30
31
|
| NetworkResult
|
|
31
32
|
| ScriptResult
|
|
32
33
|
| SessionResult
|
|
33
|
-
| StorageResult
|
|
34
|
+
| StorageResult
|
|
35
|
+
| WebExtensionResult;
|
|
34
36
|
export type EmptyParams = Extensible;
|
|
35
37
|
export type Message = CommandResponse | ErrorResponse | Event;
|
|
36
38
|
export type ErrorResponse = {
|
|
@@ -2262,9 +2264,8 @@ export namespace Input {
|
|
|
2262
2264
|
files: [...string[]];
|
|
2263
2265
|
};
|
|
2264
2266
|
}
|
|
2265
|
-
export type
|
|
2266
|
-
|
|
2267
|
-
export type WebExtensionsResult = WebExtension.InstallResult;
|
|
2267
|
+
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
|
|
2268
|
+
export type WebExtensionResult = WebExtension.InstallResult;
|
|
2268
2269
|
export namespace WebExtension {
|
|
2269
2270
|
export type Extension = string;
|
|
2270
2271
|
}
|
|
@@ -10,7 +10,7 @@ function sendCommand(command: Command) {}
|
|
|
10
10
|
function handleEvent(event: Event) {}
|
|
11
11
|
function sendCommandMultipleArgs<T extends keyof Commands>(
|
|
12
12
|
method: T,
|
|
13
|
-
params: Commands[T]['params']
|
|
13
|
+
params: Commands[T]['params'],
|
|
14
14
|
): {result: Commands[T]['returnType']} {
|
|
15
15
|
throw new Error('Not implemented');
|
|
16
16
|
}
|