Skip to content

Commit 31f8b87

Browse files
authored
Merge pull request #11 from browser-use/release-please--branches--main--changes--next--components--browser-use-sdk
release: 0.4.0
2 parents 7f44f73 + f55f1b2 commit 31f8b87

File tree

22 files changed

+777
-816
lines changed

22 files changed

+777
-816
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.3.0"
2+
".": "0.4.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: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browser-use%2Fbrowser-use-d20f308ac3a63b1ea5749dac763fd846481c9723156a5653c1d03669e73d5b5e.yml
3-
openapi_spec_hash: ccf5babfe92a776213a3e5097a7cd546
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browser-use%2Fbrowser-use-758a1c052b93e7e478fa650c1748f4b466653f44cb26f97fef1314c7a96924df.yml
3+
openapi_spec_hash: 9e0e99b613f2b9bf3993ac36aa0c7911
44
config_hash: 9d52be5177b2ede4cb0633c04f4cc4ef

CHANGELOG.md

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

3+
## 0.4.0 (2025-08-17)
4+
5+
Full Changelog: [v0.3.0...v0.4.0](https://github.com/browser-use/browser-use-node/compare/v0.3.0...v0.4.0)
6+
7+
### Features
8+
9+
* Update param and response views ([68615f4](https://github.com/browser-use/browser-use-node/commit/68615f4851b05203a78520c34409ad4c8f043cc4))
10+
11+
12+
### Chores
13+
14+
* **deps:** update dependency @types/node to v20.17.58 ([42c532e](https://github.com/browser-use/browser-use-node/commit/42c532ede1ba630159e410ebf3c8cc8a73721242))
15+
* **internal:** formatting change ([e09c835](https://github.com/browser-use/browser-use-node/commit/e09c8357715abca8d1e095316a7f43d171a3a0f9))
16+
317
## 0.3.0 (2025-08-15)
418

519
Full Changelog: [v0.2.2...v0.3.0](https://github.com/browser-use/browser-use-node/compare/v0.2.2...v0.3.0)

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Types:
5656

5757
Methods:
5858

59-
- <code title="get /sessions/{session_id}">client.sessions.<a href="./src/resources/sessions/sessions.ts">retrieve</a>(sessionID, { ...params }) -> SessionView</code>
59+
- <code title="get /sessions/{session_id}">client.sessions.<a href="./src/resources/sessions/sessions.ts">retrieve</a>(sessionID) -> SessionView</code>
6060
- <code title="patch /sessions/{session_id}">client.sessions.<a href="./src/resources/sessions/sessions.ts">update</a>(sessionID, { ...params }) -> SessionView</code>
6161
- <code title="get /sessions">client.sessions.<a href="./src/resources/sessions/sessions.ts">list</a>({ ...params }) -> SessionListResponse</code>
6262
- <code title="delete /sessions/{session_id}">client.sessions.<a href="./src/resources/sessions/sessions.ts">delete</a>(sessionID) -> void</code>

examples/demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function main() {
2626
case 'started':
2727
case 'paused':
2828
case 'stopped':
29-
log = `agent ${status.status} - live: ${status.sessionLiveUrl}`;
29+
log = `agent ${status.status} - live: ${status.session.liveUrl}`;
3030

3131
await new Promise((resolve) => setTimeout(resolve, 2000));
3232
break;

examples/stream-zod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ async function main() {
3737
for await (const msg of stream) {
3838
// Regular
3939
process.stdout.write(`${msg.data.status}`);
40-
if (msg.data.sessionLiveUrl) {
41-
process.stdout.write(` | Live URL: ${msg.data.sessionLiveUrl}`);
40+
if (msg.data.session.liveUrl) {
41+
process.stdout.write(` | Live URL: ${msg.data.session.liveUrl}`);
4242
}
4343

4444
if (msg.data.steps.length > 0) {

examples/zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function main() {
4646
const steps = `${stepsCount} steps`;
4747
const lastGoalDescription = stepsCount > 0 ? status.steps![stepsCount - 1]!.nextGoal : undefined;
4848
const lastGoal = lastGoalDescription ? `, last: ${lastGoalDescription}` : '';
49-
const liveUrl = status.sessionLiveUrl ? `, live: ${status.sessionLiveUrl}` : '';
49+
const liveUrl = status.session.liveUrl ? `, live: ${status.session.liveUrl}` : '';
5050

5151
log = `agent ${status.status} (${steps}${lastGoal}${liveUrl}) `;
5252

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-use-sdk",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "The official TypeScript library for the Browser Use API",
55
"author": "Browser Use <[email protected]>",
66
"types": "dist/index.d.ts",

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import {
5555
import {
5656
SessionListParams,
5757
SessionListResponse,
58-
SessionRetrieveParams,
5958
SessionStatus,
6059
SessionUpdateParams,
6160
SessionView,
@@ -765,11 +764,13 @@ export class BrowserUse {
765764
browserProfiles: API.BrowserProfiles = new API.BrowserProfiles(this);
766765
agentProfiles: API.AgentProfiles = new API.AgentProfiles(this);
767766
}
767+
768768
BrowserUse.Users = Users;
769769
BrowserUse.Tasks = Tasks;
770770
BrowserUse.Sessions = Sessions;
771771
BrowserUse.BrowserProfiles = BrowserProfiles;
772772
BrowserUse.AgentProfiles = AgentProfiles;
773+
773774
export declare namespace BrowserUse {
774775
export type RequestOptions = Opts.RequestOptions;
775776

@@ -800,7 +801,6 @@ export declare namespace BrowserUse {
800801
type SessionStatus as SessionStatus,
801802
type SessionView as SessionView,
802803
type SessionListResponse as SessionListResponse,
803-
type SessionRetrieveParams as SessionRetrieveParams,
804804
type SessionUpdateParams as SessionUpdateParams,
805805
type SessionListParams as SessionListParams,
806806
};

src/internal/detect-platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const getPlatformProperties = (): PlatformProperties => {
6767
'X-Stainless-Arch': normalizeArch(Deno.build.arch),
6868
'X-Stainless-Runtime': 'deno',
6969
'X-Stainless-Runtime-Version':
70-
typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
70+
typeof Deno.version === 'string' ? Deno.version : (Deno.version?.deno ?? 'unknown'),
7171
};
7272
}
7373
if (typeof EdgeRuntime !== 'undefined') {

0 commit comments

Comments
 (0)