Skip to content

Commit 630e50c

Browse files
stainless-app[bot]Stainless Bot
and
Stainless Bot
authored
release: 2.1.0 (#55)
Automated Release PR --- ## 2.1.0 (2024-11-29) Full Changelog: [v2.0.2...v2.1.0](v2.0.2...v2.1.0) ### Features * **internal:** make git install file structure match npm ([#58](#58)) ([f7ea01e](f7ea01e)) ### Chores * **internal:** codegen related update ([#50](#50)) ([101931a](101931a)) * **internal:** version bump ([#56](#56)) ([0f0b97a](0f0b97a)) --- 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 Bot <[email protected]> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent d40fd32 commit 630e50c

7 files changed

+34
-7
lines changed

.release-please-manifest.json

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

CHANGELOG.md

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

3+
## 2.1.0 (2024-11-29)
4+
5+
Full Changelog: [v2.0.2...v2.1.0](https://github.com/browserbase/sdk-node/compare/v2.0.2...v2.1.0)
6+
7+
### Features
8+
9+
* **internal:** make git install file structure match npm ([#58](https://github.com/browserbase/sdk-node/issues/58)) ([f7ea01e](https://github.com/browserbase/sdk-node/commit/f7ea01e8f1b5261dc0fb3db028ff3fc1bea004ed))
10+
11+
12+
### Chores
13+
14+
* **internal:** codegen related update ([#50](https://github.com/browserbase/sdk-node/issues/50)) ([101931a](https://github.com/browserbase/sdk-node/commit/101931aed3555b911b5e96ba6cc7cab33f22c163))
15+
* **internal:** version bump ([#56](https://github.com/browserbase/sdk-node/issues/56)) ([0f0b97a](https://github.com/browserbase/sdk-node/commit/0f0b97aab53c566075dadb8c91bd4ff1014dd54b))
16+
317
## 2.0.2 (2024-11-20)
418

519
Full Changelog: [v2.0.1...v2.0.2](https://github.com/browserbase/sdk-node/compare/v2.0.1...v2.0.2)

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@browserbasehq/sdk",
3-
"version": "2.0.2",
3+
"version": "2.1.0",
44
"description": "The official Node.js library for the Browserbase API",
55
"author": "Browserbase <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -17,7 +17,7 @@
1717
"build": "./scripts/build",
1818
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
1919
"format": "prettier --write --cache --cache-strategy metadata . !dist",
20-
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build; fi",
20+
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi",
2121
"tsn": "ts-node -r tsconfig-paths/register",
2222
"lint": "./scripts/lint",
2323
"fix": "./scripts/format"

scripts/utils/check-is-in-git-install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Check if you happen to call prepare for a repository that's already in node_modules.
33
[ "$(basename "$(dirname "$PWD")")" = 'node_modules' ] ||
44
# The name of the containing directory that 'npm` uses, which looks like

scripts/utils/git-swap.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
set -exuo pipefail
3+
# the package is published to NPM from ./dist
4+
# we want the final file structure for git installs to match the npm installs, so we
5+
6+
# delete everything except ./dist and ./node_modules
7+
find . -maxdepth 1 -mindepth 1 ! -name 'dist' ! -name 'node_modules' -exec rm -rf '{}' +
8+
9+
# move everything from ./dist to .
10+
mv dist/* .
11+
12+
# delete the now-empty ./dist
13+
rmdir dist

src/version.ts

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

0 commit comments

Comments
 (0)