Skip to content

Commit 6d1cb26

Browse files
release: 2.12.0 (#186)
Automated Release PR --- ## 2.12.0 (2026-05-20) Full Changelog: [v2.11.0...v2.12.0](v2.11.0...v2.12.0) ### Features * [AI-1748][apps/api] Obtain custom certificates in API during session reservation ([0123bc8](0123bc8)) * [AI-1972] - Move fetch v2 handler into /v1/fetch ([397c60f](397c60f)) * [AI-1993] - Surface structured JSON content on /v2/fetch ([95c8dfa](95c8dfa)) * **api:** manual updates ([d18107b](d18107b)) * **api:** manual updates ([cce765a](cce765a)) --- This pull request is managed by Stainless's [GitHub App](https://github.com/apps/stainless-app). The [semver version number](https://semver.org/#semantic-versioning-specification-semver) is based on included [commit messages](https://www.conventionalcommits.org/en/v1.0.0/). Alternatively, you can manually set the version number in the title of this pull request. For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request. 🔗 Stainless [website](https://www.stainlessapi.com) 📚 Read the [docs](https://app.stainlessapi.com/docs) 🙋 [Reach out](mailto:support@stainlessapi.com) for help or questions --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 316fc93 commit 6d1cb26

8 files changed

Lines changed: 37 additions & 9 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.11.0"
2+
".": "2.12.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-2118fd938d408dda6ed82d06c48b0785fad91fd54b5397acc3421a49a386c791.yml
3-
openapi_spec_hash: 8e48a39a55a11b128028b47747aea775
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-b2831c9c836f039762834825afdc20569587a825d29ac5c3748c78b009bf059b.yml
3+
openapi_spec_hash: dd85a934900cb6583f12ebf6117be884
44
config_hash: 40fbac80e24faaa0dc19e93368bcd821

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

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+
315
## 2.11.0 (2026-05-13)
416

517
Full Changelog: [v2.10.0...v2.11.0](https://github.com/browserbase/sdk-node/compare/v2.10.0...v2.11.0)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@browserbasehq/sdk",
3-
"version": "2.11.0",
3+
"version": "2.12.0",
44
"description": "The official Node.js library for the Browserbase API",
55
"author": "Browserbase <support@browserbase.com>",
66
"types": "dist/index.d.ts",

src/resources/fetch-api.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ export interface FetchAPICreateResponse {
1919
id: string;
2020

2121
/**
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).
2324
*/
24-
content: string;
25+
content: string | { [key: string]: unknown };
2526

2627
/**
2728
* The MIME type of the response
@@ -60,10 +61,23 @@ export interface FetchAPICreateParams {
6061
*/
6162
allowRedirects?: boolean;
6263

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+
6371
/**
6472
* Whether to enable proxy support for the request
6573
*/
6674
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 };
6781
}
6882

6983
export declare namespace FetchAPI {

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '2.11.0'; // x-release-please-version
1+
export const VERSION = '2.12.0'; // x-release-please-version

tests/api-resources/fetch-api.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ describe('resource fetchAPI', () => {
2525
url: 'https://example.com',
2626
allowInsecureSsl: true,
2727
allowRedirects: true,
28+
format: 'raw',
2829
proxies: true,
30+
schema: { foo: 'bar' },
2931
});
3032
});
3133
});

0 commit comments

Comments
 (0)