webdriver-bidi-protocol 0.3.2 → 0.3.4
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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +15 -0
- package/out/gen/mapping.d.ts +3 -3
- package/out/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/gen/mapping.ts +3 -3
- package/src/index.ts +1 -1
- package/tools/generateCommandMap.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.4](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.3.3...webdriver-bidi-protocol-v0.3.4) (2025-09-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* generation should not emit ts imports ([#262](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/262)) ([74bf1ad](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/74bf1adb89582b073fa8741ddf3680549dada469))
|
|
9
|
+
|
|
10
|
+
## [0.3.3](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.3.2...webdriver-bidi-protocol-v0.3.3) (2025-09-25)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* correctly re-export mapping ([#259](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/259)) ([dc18802](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/dc188026fc8869c6ac73297dea1681ea509656a0))
|
|
16
|
+
* re-generate types based on specifciation updates ([#261](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/261)) ([0c0ea74](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/0c0ea744335453d18e459522b094de6be616f4ff))
|
|
17
|
+
|
|
3
18
|
## [0.3.2](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.3.1...webdriver-bidi-protocol-v0.3.2) (2025-09-24)
|
|
4
19
|
|
|
5
20
|
|
package/out/gen/mapping.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type * as Bidi from './main.
|
|
2
|
-
import type * as BidiPermissions from './permissions.
|
|
3
|
-
import type * as BidiBluetooth from './web-bluetooth.
|
|
1
|
+
import type * as Bidi from './main.js';
|
|
2
|
+
import type * as BidiPermissions from './permissions.js';
|
|
3
|
+
import type * as BidiBluetooth from './web-bluetooth.js';
|
|
4
4
|
export interface CommandMapping {
|
|
5
5
|
'bluetooth.disableSimulation': {
|
|
6
6
|
params: BidiBluetooth.Bluetooth.DisableSimulationParameters;
|
package/out/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import * as BidiBluetooth from './gen/web-bluetooth.js';
|
|
|
9
9
|
export * from './gen/main.js';
|
|
10
10
|
export * from './gen/permissions.js';
|
|
11
11
|
export * from './gen/web-bluetooth.js';
|
|
12
|
-
export type {CommandMapping} from './gen/mapping.
|
|
12
|
+
export type {CommandMapping} from './gen/mapping.js';
|
|
13
13
|
type ExternalSpecCommand<T> = {
|
|
14
14
|
id: Bidi.JsUint;
|
|
15
15
|
} & T;
|
package/package.json
CHANGED
package/src/gen/mapping.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type * as Bidi from './main.
|
|
2
|
-
import type * as BidiPermissions from './permissions.
|
|
3
|
-
import type * as BidiBluetooth from './web-bluetooth.
|
|
1
|
+
import type * as Bidi from './main.js';
|
|
2
|
+
import type * as BidiPermissions from './permissions.js';
|
|
3
|
+
import type * as BidiBluetooth from './web-bluetooth.js';
|
|
4
4
|
|
|
5
5
|
export interface CommandMapping {
|
|
6
6
|
'bluetooth.disableSimulation': {
|
package/src/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ export * from './gen/main.js';
|
|
|
12
12
|
export * from './gen/permissions.js';
|
|
13
13
|
export * from './gen/web-bluetooth.js';
|
|
14
14
|
|
|
15
|
-
export type {CommandMapping} from './gen/mapping.
|
|
15
|
+
export type {CommandMapping} from './gen/mapping.js';
|
|
16
16
|
|
|
17
17
|
type ExternalSpecCommand<T> = {
|
|
18
18
|
// id is defined by the main WebDriver BiDi spec and extension specs do
|
|
@@ -122,7 +122,7 @@ const generatedFile = project.createSourceFile(outputPath, '', {
|
|
|
122
122
|
|
|
123
123
|
for (const spec of specs) {
|
|
124
124
|
generatedFile.addImportDeclaration({
|
|
125
|
-
moduleSpecifier: spec.inputFile,
|
|
125
|
+
moduleSpecifier: spec.inputFile.replace('.ts', '.js'),
|
|
126
126
|
isTypeOnly: true,
|
|
127
127
|
namespaceImport: spec.modulePrefix,
|
|
128
128
|
});
|