@browserbasehq/sdk 2.11.0 → 2.12.0
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/resources/fetch-api.d.ts +18 -2
- package/resources/fetch-api.d.ts.map +1 -1
- package/src/resources/fetch-api.ts +16 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.12.0 (2026-05-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.11.0...v2.12.0](https://github.com/browserbase/sdk-node/compare/v2.11.0...v2.12.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* [AI-1748][apps/api] Obtain custom certificates in API during session reservation ([0123bc8](https://github.com/browserbase/sdk-node/commit/0123bc8dd7754b7dad06692cf4d6032492d23576))
|
|
10
|
+
* [AI-1972] - Move fetch v2 handler into /v1/fetch ([397c60f](https://github.com/browserbase/sdk-node/commit/397c60f9a97e8a8a587b00138586ac7a2797cee5))
|
|
11
|
+
* [AI-1993] - Surface structured JSON content on /v2/fetch ([95c8dfa](https://github.com/browserbase/sdk-node/commit/95c8dfa7988a9784df18a5bf12e6298a2d6e3de4))
|
|
12
|
+
* **api:** manual updates ([d18107b](https://github.com/browserbase/sdk-node/commit/d18107b210c64be3ce0541789f74adb47136734f))
|
|
13
|
+
* **api:** manual updates ([cce765a](https://github.com/browserbase/sdk-node/commit/cce765af5828449b905cf647afcc2d90df4bd567))
|
|
14
|
+
|
|
3
15
|
## 2.11.0 (2026-05-13)
|
|
4
16
|
|
|
5
17
|
Full Changelog: [v2.10.0...v2.11.0](https://github.com/browserbase/sdk-node/compare/v2.10.0...v2.11.0)
|
package/package.json
CHANGED
package/resources/fetch-api.d.ts
CHANGED
|
@@ -12,9 +12,12 @@ export interface FetchAPICreateResponse {
|
|
|
12
12
|
*/
|
|
13
13
|
id: string;
|
|
14
14
|
/**
|
|
15
|
-
* The response body content
|
|
15
|
+
* The response body content. A string for `raw` and `markdown` formats; a
|
|
16
|
+
* structured object for `json` format (the schema-extracted result).
|
|
16
17
|
*/
|
|
17
|
-
content: string
|
|
18
|
+
content: string | {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
18
21
|
/**
|
|
19
22
|
* The MIME type of the response
|
|
20
23
|
*/
|
|
@@ -47,10 +50,23 @@ export interface FetchAPICreateParams {
|
|
|
47
50
|
* Whether to follow HTTP redirects
|
|
48
51
|
*/
|
|
49
52
|
allowRedirects?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Output format for the response content. `raw` (default) returns the response
|
|
55
|
+
* body unchanged; `json` returns structured data (requires `schema`); `markdown`
|
|
56
|
+
* returns the page as markdown.
|
|
57
|
+
*/
|
|
58
|
+
format?: 'raw' | 'json' | 'markdown';
|
|
50
59
|
/**
|
|
51
60
|
* Whether to enable proxy support for the request
|
|
52
61
|
*/
|
|
53
62
|
proxies?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* JSON Schema describing the desired structure of the response. Only used when
|
|
65
|
+
* `format` is `json`.
|
|
66
|
+
*/
|
|
67
|
+
schema?: {
|
|
68
|
+
[key: string]: unknown;
|
|
69
|
+
};
|
|
54
70
|
}
|
|
55
71
|
export declare namespace FetchAPI {
|
|
56
72
|
export { type FetchAPICreateResponse as FetchAPICreateResponse, type FetchAPICreateParams as FetchAPICreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-api.d.ts","sourceRoot":"","sources":["../src/resources/fetch-api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAE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AC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACrC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -19,9 +19,10 @@ export interface FetchAPICreateResponse {
|
|
|
19
19
|
id: string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* The response body content
|
|
22
|
+
* The response body content. A string for `raw` and `markdown` formats; a
|
|
23
|
+
* structured object for `json` format (the schema-extracted result).
|
|
23
24
|
*/
|
|
24
|
-
content: string;
|
|
25
|
+
content: string | { [key: string]: unknown };
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* The MIME type of the response
|
|
@@ -60,10 +61,23 @@ export interface FetchAPICreateParams {
|
|
|
60
61
|
*/
|
|
61
62
|
allowRedirects?: boolean;
|
|
62
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Output format for the response content. `raw` (default) returns the response
|
|
66
|
+
* body unchanged; `json` returns structured data (requires `schema`); `markdown`
|
|
67
|
+
* returns the page as markdown.
|
|
68
|
+
*/
|
|
69
|
+
format?: 'raw' | 'json' | 'markdown';
|
|
70
|
+
|
|
63
71
|
/**
|
|
64
72
|
* Whether to enable proxy support for the request
|
|
65
73
|
*/
|
|
66
74
|
proxies?: boolean;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* JSON Schema describing the desired structure of the response. Only used when
|
|
78
|
+
* `format` is `json`.
|
|
79
|
+
*/
|
|
80
|
+
schema?: { [key: string]: unknown };
|
|
67
81
|
}
|
|
68
82
|
|
|
69
83
|
export declare namespace FetchAPI {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.12.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.12.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|