You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,18 @@
1
1
# Changelog
2
2
3
+
## 0.1.0-alpha.3 (2024-10-29)
4
+
5
+
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/browserbase/sdk-node/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
6
+
7
+
### Features
8
+
9
+
***api:** api update ([#19](https://github.com/browserbase/sdk-node/issues/19)) ([8df9cc8](https://github.com/browserbase/sdk-node/commit/8df9cc8c76e4a615ba63d4568086bd60e88a0dfb))
> Once this package is [published to npm](https://app.stainlessapi.com/docs/guides/publish), this will become: `npm install browserbase`
19
-
20
17
## Usage
21
18
22
19
The full API of this library can be found in [api.md](api.md).
23
20
24
21
<!-- prettier-ignore -->
25
22
```js
26
-
importBrowserbasefrom'browserbase';
23
+
importBrowserbasefrom'@browserbasehq/sdk';
27
24
28
25
constclient=newBrowserbase({
29
26
apiKey:process.env['BROWSERBASE_API_KEY'], // This is the default and can be omitted
@@ -44,7 +41,7 @@ This library includes TypeScript definitions for all request params and response
44
41
45
42
<!-- prettier-ignore -->
46
43
```ts
47
-
importBrowserbasefrom'browserbase';
44
+
importBrowserbasefrom'@browserbasehq/sdk';
48
45
49
46
const client =newBrowserbase({
50
47
apiKey: process.env['BROWSERBASE_API_KEY'], // This is the default and can be omitted
@@ -218,11 +215,11 @@ add the following import before your first import `from "Browserbase"`:
218
215
```ts
219
216
// Tell TypeScript and the package to use the global web fetch instead of node-fetch.
220
217
// Note, despite the name, this does not add any polyfills, but expects them to be provided if needed.
221
-
import'browserbase/shims/web';
222
-
importBrowserbasefrom'browserbase';
218
+
import'@browserbasehq/sdk/shims/web';
219
+
importBrowserbasefrom'@browserbasehq/sdk';
223
220
```
224
221
225
-
To do the inverse, add `import "browserbase/shims/node"` (which does import polyfills).
222
+
To do the inverse, add `import "@browserbasehq/sdk/shims/node"` (which does import polyfills).
226
223
This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/browserbase/sdk-node/tree/main/src/_shims#readme)).
227
224
228
225
### Logging and middleware
@@ -232,7 +229,7 @@ which can be used to inspect or alter the `Request` or `Response` before/after e
0 commit comments