Skip to content

Commit 47344ef

Browse files
release: 2.5.0 (#156)
Automated Release PR --- ## 2.5.0 (2025-03-28) Full Changelog: [v2.4.0...v2.5.0](v2.4.0...v2.5.0) ### Features * **api:** api update ([#151](#151)) ([9433265](9433265)) * **api:** api update ([#153](#153)) ([53c928c](53c928c)) ### Bug Fixes * avoid type error in certain environments ([#154](#154)) ([0288fa5](0288fa5)) * **internal:** work around vercel/next.js#76881 ([#155](#155)) ([f2b25bc](f2b25bc)) ### Chores * **exports:** cleaner resource index imports ([#149](#149)) ([ef04d35](ef04d35)) * **exports:** stop using path fallbacks ([#150](#150)) ([32c5ee7](32c5ee7)) * **internal:** version bump ([#147](#147)) ([ea90300](ea90300)) --- 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:[email protected]) for help or questions --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent cae9b42 commit 47344ef

13 files changed

+63
-16
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.4.0"
2+
".": "2.5.0"
33
}

.stats.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-06206dff3ffaf539b0ed8aa5bac368cb366b631f85d7a4ba5f07aca91c172550.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-ad8e080c2347b3f28d64f49cf02c2ab4a69b7bf289fd7eb018c955d8915bb990.yml
3+
openapi_spec_hash: b3aea10135a89597634d62f1ef418839
4+
config_hash: 74882e23a455dece33e43a27e67f0fbb

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## 2.5.0 (2025-03-28)
4+
5+
Full Changelog: [v2.4.0...v2.5.0](https://github.com/browserbase/sdk-node/compare/v2.4.0...v2.5.0)
6+
7+
### Features
8+
9+
* **api:** api update ([#151](https://github.com/browserbase/sdk-node/issues/151)) ([9433265](https://github.com/browserbase/sdk-node/commit/9433265b54e3b560152be7642a5a314c82d8ad08))
10+
* **api:** api update ([#153](https://github.com/browserbase/sdk-node/issues/153)) ([53c928c](https://github.com/browserbase/sdk-node/commit/53c928cbc008d2b8b33d405ecd853a46e960ffd5))
11+
12+
13+
### Bug Fixes
14+
15+
* avoid type error in certain environments ([#154](https://github.com/browserbase/sdk-node/issues/154)) ([0288fa5](https://github.com/browserbase/sdk-node/commit/0288fa562ed1397cfba2cc7c77ae060e3e747382))
16+
* **internal:** work around https://github.com/vercel/next.js/issues/76881 ([#155](https://github.com/browserbase/sdk-node/issues/155)) ([f2b25bc](https://github.com/browserbase/sdk-node/commit/f2b25bc31f4dd4d5a1978065478cca1dfd75526d))
17+
18+
19+
### Chores
20+
21+
* **exports:** cleaner resource index imports ([#149](https://github.com/browserbase/sdk-node/issues/149)) ([ef04d35](https://github.com/browserbase/sdk-node/commit/ef04d358436d2883af62c88281dad0a379900512))
22+
* **exports:** stop using path fallbacks ([#150](https://github.com/browserbase/sdk-node/issues/150)) ([32c5ee7](https://github.com/browserbase/sdk-node/commit/32c5ee7d6de48ac826b608e4e582e37fa92a5188))
23+
* **internal:** version bump ([#147](https://github.com/browserbase/sdk-node/issues/147)) ([ea90300](https://github.com/browserbase/sdk-node/commit/ea9030070914ad0d790dd89a81a266cc54434161))
24+
325
## 2.4.0 (2025-03-14)
426

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

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

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

src/_shims/index-deno.ts

+2
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,5 @@ export declare class FsReadStream extends Readable {
108108
const _ReadableStream = ReadableStream;
109109
type _ReadableStream = ReadableStream;
110110
export { _ReadableStream as ReadableStream };
111+
112+
export const init = () => {};

src/_shims/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ export function fileFromPath(path: string, options?: FileFromPathOptions): Promi
7979
export function fileFromPath(path: string, filename?: string, options?: FileFromPathOptions): Promise<File>;
8080

8181
export function isFsReadStream(value: any): value is FsReadStream;
82+
83+
export const init: () => void;

src/_shims/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
*/
44
const shims = require('./registry');
55
const auto = require('@browserbasehq/sdk/_shims/auto/runtime');
6-
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
6+
exports.init = () => {
7+
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
8+
};
79
for (const property of Object.keys(shims)) {
810
Object.defineProperty(exports, property, {
911
get() {
1012
return shims[property];
1113
},
1214
});
1315
}
16+
17+
exports.init();

src/_shims/index.mjs

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
*/
44
import * as shims from './registry.mjs';
55
import * as auto from '@browserbasehq/sdk/_shims/auto/runtime';
6-
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
6+
export const init = () => {
7+
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
8+
};
79
export * from './registry.mjs';
10+
11+
init();

src/core.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ import {
1616
type RequestInit,
1717
type Response,
1818
type HeadersInit,
19+
init,
1920
} from './_shims/index';
21+
22+
// try running side effects outside of _shims/index to workaround https://github.com/vercel/next.js/issues/76881
23+
init();
24+
2025
export { type Response };
2126
import { BlobLike, isBlobLike, isMultipartBody } from './uploads';
2227
export {
@@ -395,7 +400,7 @@ export abstract class APIClient {
395400
!headers ? {}
396401
: Symbol.iterator in headers ?
397402
Object.fromEntries(Array.from(headers as Iterable<string[]>).map((header) => [...header]))
398-
: { ...headers }
403+
: { ...(headers as any as Record<string, string>) }
399404
);
400405
}
401406

src/resources.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './resources/index';

src/resources/projects.ts

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export class Projects extends APIResource {
2929
export interface Project {
3030
id: string;
3131

32+
/**
33+
* The maximum number of sessions that this project can run concurrently.
34+
*/
35+
concurrency: number;
36+
3237
createdAt: string;
3338

3439
defaultTimeout: number;

src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '2.4.0'; // x-release-please-version
1+
export const VERSION = '2.5.0'; // x-release-please-version

0 commit comments

Comments
 (0)