Skip to content

Commit cae9b42

Browse files
release: 2.4.0 (#134)
Automated Release PR --- ## 2.4.0 (2025-03-14) Full Changelog: [v2.3.0...v2.4.0](v2.3.0...v2.4.0) ### Features * **api:** api update ([#142](#142)) ([b2391f8](b2391f8)) * **api:** api update ([#144](#144)) ([c7aaea1](c7aaea1)) ### Bug Fixes * **client:** fix export map for index exports ([#137](#137)) ([7e3ba08](7e3ba08)) * **exports:** ensure resource imports don't require /index ([#146](#146)) ([c6ec9a5](c6ec9a5)) ### Chores * **internal:** codegen related update ([#138](#138)) ([316a6af](316a6af)) * **internal:** codegen related update ([#143](#143)) ([d8d3fb9](d8d3fb9)) * **internal:** fix devcontainers setup ([#139](#139)) ([40202bd](40202bd)) * **internal:** version bump ([#129](#129)) ([82c57f9](82c57f9)) * **internal:** version bump ([#135](#135)) ([90a4906](90a4906)) ### Documentation * update URLs from stainlessapi.com to stainless.com ([#140](#140)) ([0e240d7](0e240d7)) --- 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 b948ca0 commit cae9b42

File tree

19 files changed

+175
-61
lines changed

19 files changed

+175
-61
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
33
{
4-
"name": "Debian",
5-
"build": {
6-
"dockerfile": "Dockerfile"
4+
"name": "Development",
5+
"image": "mcr.microsoft.com/devcontainers/typescript-node:latest",
6+
"features": {
7+
"ghcr.io/devcontainers/features/node:1": {}
8+
},
9+
"postCreateCommand": "yarn install",
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"esbenp.prettier-vscode"
14+
]
15+
}
716
}
8-
9-
// Features to add to the dev container. More info: https://containers.dev/features.
10-
// "features": {},
11-
12-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
13-
// "forwardPorts": [],
14-
15-
// Configure tool-specific properties.
16-
// "customizations": {},
17-
18-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
19-
// "remoteUser": "root"
2017
}

.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.3.0"
2+
".": "2.4.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-396a2b9092f645c5a9e46a1f3be8c2e45ca9ae079e1d39761eb0a73f56e24b15.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-06206dff3ffaf539b0ed8aa5bac368cb366b631f85d7a4ba5f07aca91c172550.yml

CHANGELOG.md

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

3+
## 2.4.0 (2025-03-14)
4+
5+
Full Changelog: [v2.3.0...v2.4.0](https://github.com/browserbase/sdk-node/compare/v2.3.0...v2.4.0)
6+
7+
### Features
8+
9+
* **api:** api update ([#142](https://github.com/browserbase/sdk-node/issues/142)) ([b2391f8](https://github.com/browserbase/sdk-node/commit/b2391f8eb6b6a35d033de3b54a8731a59601c177))
10+
* **api:** api update ([#144](https://github.com/browserbase/sdk-node/issues/144)) ([c7aaea1](https://github.com/browserbase/sdk-node/commit/c7aaea13fae457c258a8ee97b7b1717866f15b2d))
11+
12+
13+
### Bug Fixes
14+
15+
* **client:** fix export map for index exports ([#137](https://github.com/browserbase/sdk-node/issues/137)) ([7e3ba08](https://github.com/browserbase/sdk-node/commit/7e3ba0874d40256119ab5f9f556bff5a43425188))
16+
* **exports:** ensure resource imports don't require /index ([#146](https://github.com/browserbase/sdk-node/issues/146)) ([c6ec9a5](https://github.com/browserbase/sdk-node/commit/c6ec9a5a8a87c6e1d811945c89bc674188198bf7))
17+
18+
19+
### Chores
20+
21+
* **internal:** codegen related update ([#138](https://github.com/browserbase/sdk-node/issues/138)) ([316a6af](https://github.com/browserbase/sdk-node/commit/316a6af67a7c7daa6d78956e7dab1fd88f4bf90c))
22+
* **internal:** codegen related update ([#143](https://github.com/browserbase/sdk-node/issues/143)) ([d8d3fb9](https://github.com/browserbase/sdk-node/commit/d8d3fb9f1d3ee6497cd781fee475e475416237cf))
23+
* **internal:** fix devcontainers setup ([#139](https://github.com/browserbase/sdk-node/issues/139)) ([40202bd](https://github.com/browserbase/sdk-node/commit/40202bdf590f7df08d872c70a362ac7c3c1393a2))
24+
* **internal:** version bump ([#129](https://github.com/browserbase/sdk-node/issues/129)) ([82c57f9](https://github.com/browserbase/sdk-node/commit/82c57f9b9c51dd5e29c4ccdb1855a8883b28ab08))
25+
* **internal:** version bump ([#135](https://github.com/browserbase/sdk-node/issues/135)) ([90a4906](https://github.com/browserbase/sdk-node/commit/90a4906a5fbddf73b49cd45293619a9deadcb3e0))
26+
27+
28+
### Documentation
29+
30+
* update URLs from stainlessapi.com to stainless.com ([#140](https://github.com/browserbase/sdk-node/issues/140)) ([0e240d7](https://github.com/browserbase/sdk-node/commit/0e240d7076fba9e8220d0fadb177426fe7bf3972))
31+
332
## 2.3.0 (2025-02-05)
433

534
Full Changelog: [v2.2.0...v2.3.0](https://github.com/browserbase/sdk-node/compare/v2.2.0...v2.3.0)

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This library provides convenient access to the Browserbase REST API from server-
66

77
The REST API documentation can be found on [docs.browserbase.com](https://docs.browserbase.com). The full API of this library can be found in [api.md](api.md).
88

9-
It is generated with [Stainless](https://www.stainlessapi.com/).
9+
It is generated with [Stainless](https://www.stainless.com/).
1010

1111
## Installation
1212

@@ -57,6 +57,36 @@ main();
5757

5858
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
5959

60+
## File uploads
61+
62+
Request parameters that correspond to file uploads can be passed in many different forms:
63+
64+
- `File` (or an object with the same structure)
65+
- a `fetch` `Response` (or an object with the same structure)
66+
- an `fs.ReadStream`
67+
- the return value of our `toFile` helper
68+
69+
```ts
70+
import fs from 'fs';
71+
import fetch from 'node-fetch';
72+
import Browserbase, { toFile } from '@browserbasehq/sdk';
73+
74+
const client = new Browserbase();
75+
76+
// If you have access to Node `fs` we recommend using `fs.createReadStream()`:
77+
await client.extensions.create({ file: fs.createReadStream('/path/to/file') });
78+
79+
// Or if you have the web `File` API you can pass a `File` instance:
80+
await client.extensions.create({ file: new File(['my bytes'], 'file') });
81+
82+
// You can also pass a `fetch` `Response`:
83+
await client.extensions.create({ file: await fetch('https://somesite/file') });
84+
85+
// Finally, if none of the above are convenient, you can use our `toFile` helper:
86+
await client.extensions.create({ file: await toFile(Buffer.from('my bytes'), 'file') });
87+
await client.extensions.create({ file: await toFile(new Uint8Array([0, 1, 2]), 'file') });
88+
```
89+
6090
## Handling errors
6191

6292
When the library is unable to connect to the API,

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Reporting Security Issues
44

5-
This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
66

7-
To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7+
To report a security issue, please contact the Stainless team at security@stainless.com.
88

99
## Responsible Disclosure
1010

api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ Types:
4545
- <code><a href="./src/resources/sessions/sessions.ts">Session</a></code>
4646
- <code><a href="./src/resources/sessions/sessions.ts">SessionLiveURLs</a></code>
4747
- <code><a href="./src/resources/sessions/sessions.ts">SessionCreateResponse</a></code>
48+
- <code><a href="./src/resources/sessions/sessions.ts">SessionRetrieveResponse</a></code>
4849
- <code><a href="./src/resources/sessions/sessions.ts">SessionListResponse</a></code>
4950

5051
Methods:
5152

5253
- <code title="post /v1/sessions">client.sessions.<a href="./src/resources/sessions/sessions.ts">create</a>({ ...params }) -> SessionCreateResponse</code>
53-
- <code title="get /v1/sessions/{id}">client.sessions.<a href="./src/resources/sessions/sessions.ts">retrieve</a>(id) -> Session</code>
54+
- <code title="get /v1/sessions/{id}">client.sessions.<a href="./src/resources/sessions/sessions.ts">retrieve</a>(id) -> SessionRetrieveResponse</code>
5455
- <code title="post /v1/sessions/{id}">client.sessions.<a href="./src/resources/sessions/sessions.ts">update</a>(id, { ...params }) -> Session</code>
5556
- <code title="get /v1/sessions">client.sessions.<a href="./src/resources/sessions/sessions.ts">list</a>({ ...params }) -> SessionListResponse</code>
5657
- <code title="get /v1/sessions/{id}/debug">client.sessions.<a href="./src/resources/sessions/sessions.ts">debug</a>(id) -> SessionLiveURLs</code>

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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@browserbasehq/sdk",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"description": "The official Node.js library for the Browserbase API",
55
"author": "Browserbase <support@browserbase.com>",
66
"types": "dist/index.d.ts",
@@ -113,17 +113,17 @@
113113
"default": "./dist/index.mjs"
114114
},
115115
"./*.mjs": {
116-
"types": "./dist/*.d.ts",
117-
"default": "./dist/*.mjs"
116+
"types": ["./dist/*.d.ts", "./dist/*/index.d.ts"],
117+
"default": ["./dist/*.mjs", "./dist/*/index.mjs"]
118118
},
119119
"./*.js": {
120-
"types": "./dist/*.d.ts",
121-
"default": "./dist/*.js"
120+
"types": ["./dist/*.d.ts", "./dist/*/index.d.ts"],
121+
"default": ["./dist/*.js", "./dist/*/index.js"]
122122
},
123123
"./*": {
124-
"types": "./dist/*.d.ts",
125-
"require": "./dist/*.js",
126-
"default": "./dist/*.mjs"
124+
"types": ["./dist/*.d.ts", "./dist/*/index.d.ts"],
125+
"require": ["./dist/*.js", "./dist/*/index.js"],
126+
"default": ["./dist/*.mjs", "./dist/*/index.mjs"]
127127
}
128128
}
129129
}

0 commit comments

Comments
 (0)