Skip to content

Commit e5f2f90

Browse files
authored
Merge pull request #768 from anthropics/release-please--branches--main--changes--next
chore: release main
2 parents d96bded + 7ff22bd commit e5f2f90

File tree

17 files changed

+311
-28
lines changed

17 files changed

+311
-28
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
- name: Bootstrap
2525
run: ./scripts/bootstrap
2626

27+
- name: Update internal symlinks in third party packages
28+
run: ./bin/replace-internal-symlinks
29+
30+
- name: run build all
31+
# this is needed so that sub packages can work (they depend on `dist` in the root folder)
32+
run: ./scripts/build-all
33+
2734
- name: Check types
2835
run: ./scripts/lint
2936

@@ -45,11 +52,11 @@ jobs:
4552
- name: Bootstrap
4653
run: ./scripts/bootstrap
4754

48-
- name: Update 3p souces
55+
- name: Update internal symlinks in third party packages
4956
run: ./bin/replace-internal-symlinks
5057

51-
- name: Check build
52-
run: yarn build
58+
- name: run build all
59+
run: ./scripts/build-all
5360

5461
- name: Get GitHub OIDC Token
5562
if: github.repository == 'stainless-sdks/anthropic-typescript'
@@ -80,5 +87,12 @@ jobs:
8087
- name: Bootstrap
8188
run: ./scripts/bootstrap
8289

90+
- name: Update internal symlinks in third party packages
91+
run: ./bin/replace-internal-symlinks
92+
93+
- name: run build all
94+
# this is needed so that sub packages can work (they depend on `dist` in the root folder)
95+
run: ./scripts/build-all
96+
8397
- name: Run tests
8498
run: ./scripts/test

.github/workflows/create-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
yarn install
3535
36-
- name: Update 3p souces
36+
- name: Update internal symlinks in third party packages
3737
run: ./bin/replace-internal-symlinks
3838

3939
- name: Publish to NPM

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
yarn install
2828
29-
- name: Update 3p souces
29+
- name: Update internal symlinks in third party packages
3030
run: ./bin/replace-internal-symlinks
3131

3232
- name: Publish to NPM

.release-please-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
".": "0.50.4",
3-
"packages/vertex-sdk": "0.11.2",
4-
"packages/bedrock-sdk": "0.21.2"
2+
".": "0.51.0",
3+
"packages/vertex-sdk": "0.11.3",
4+
"packages/bedrock-sdk": "0.22.0"
55
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 21
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-7015ea2d98991d6c2e7931c521e36448778fe868cc1b8a21173898d67b14b819.yml
33
openapi_spec_hash: 2007ff815a3f39af8cebe1976d50f17d
4-
config_hash: 4d0dcf47d77eae22d34624d2ac0f0b46
4+
config_hash: 55aeaebf89fb2ccfcd0b188fc4dc6aba

CHANGELOG.md

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

3+
## 0.51.0 (2025-05-15)
4+
5+
Full Changelog: [sdk-v0.50.4...sdk-v0.51.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.50.4...sdk-v0.51.0)
6+
7+
### Features
8+
9+
* **bedrock:** support skipAuth on Bedrock client to bypass local auth requirements ([b661c5f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b661c5fe4d93fa749de5b7cbbce98dc224a68adc))
10+
11+
12+
### Bug Fixes
13+
14+
* **bedrock:** support model names with slashes ([cb5fa8a](https://github.com/anthropics/anthropic-sdk-typescript/commit/cb5fa8a8f55ed12382aeb5f09110b0d5fefc46bb))
15+
16+
17+
### Chores
18+
19+
* **package:** remove engines ([f0378ec](https://github.com/anthropics/anthropic-sdk-typescript/commit/f0378ec0be0cac0b165d169a05548692f8ef3b69))
20+
321
## 0.50.4 (2025-05-12)
422

523
Full Changelog: [sdk-v0.50.3...sdk-v0.50.4](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.50.3...sdk-v0.50.4)

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@anthropic-ai/sdk",
3-
"version": "0.50.4",
3+
"version": "0.51.0",
44
"description": "The official TypeScript library for the Anthropic API",
55
"author": "Anthropic <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -71,8 +71,5 @@
7171
"import": "./dist/*.mjs",
7272
"require": "./dist/*.js"
7373
}
74-
},
75-
"engines": {
76-
"node": ">= 20"
7774
}
7875
}

packages/bedrock-sdk/CHANGELOG.md

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

3+
## 0.22.0 (2025-05-15)
4+
5+
Full Changelog: [bedrock-sdk-v0.21.2...bedrock-sdk-v0.22.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/bedrock-sdk-v0.21.2...bedrock-sdk-v0.22.0)
6+
7+
### Features
8+
9+
* **bedrock:** support skipAuth on Bedrock client to bypass local auth requirements ([b661c5f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b661c5fe4d93fa749de5b7cbbce98dc224a68adc))
10+
11+
12+
### Bug Fixes
13+
14+
* **bedrock:** support model names with slashes ([cb5fa8a](https://github.com/anthropics/anthropic-sdk-typescript/commit/cb5fa8a8f55ed12382aeb5f09110b0d5fefc46bb))
15+
316
## 0.21.2 (2025-05-09)
417

518
Full Changelog: [bedrock-sdk-v0.21.1...bedrock-sdk-v0.21.2](https://github.com/anthropics/anthropic-sdk-typescript/compare/bedrock-sdk-v0.21.1...bedrock-sdk-v0.21.2)

packages/bedrock-sdk/jest.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { JestConfigWithTsJest } from 'ts-jest';
2+
3+
const config: JestConfigWithTsJest = {
4+
preset: 'ts-jest/presets/default-esm',
5+
testEnvironment: 'node',
6+
transform: {
7+
'^.+\\.(t|j)sx?$': ['@swc/jest', { sourceMaps: 'inline' }],
8+
},
9+
moduleNameMapper: {
10+
'^@anthropic-ai/bedrock-sdk$': '<rootDir>/src/index.ts',
11+
'^@anthropic-ai/bedrock-sdk/(.*)$': '<rootDir>/src/$1',
12+
},
13+
modulePathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/deno/'],
14+
testPathIgnorePatterns: ['scripts'],
15+
};
16+
17+
export default config;

packages/bedrock-sdk/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@anthropic-ai/bedrock-sdk",
3-
"version": "0.21.2",
3+
"version": "0.22.0",
44
"description": "The official TypeScript library for the Anthropic Bedrock API",
55
"author": "Anthropic <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
1111
"packageManager": "[email protected]",
1212
"private": false,
1313
"scripts": {
14-
"test": "echo 'no tests defined yet' && exit 1",
14+
"test": "jest",
1515
"build": "bash ./build",
1616
"prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1",
1717
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
@@ -35,6 +35,8 @@
3535
"@smithy/util-base64": "^2.0.0"
3636
},
3737
"devDependencies": {
38+
"@swc/core": "^1.3.101",
39+
"@swc/jest": "^0.2.29",
3840
"@types/node": "^20.17.6",
3941
"@types/jest": "^29.4.0",
4042
"@typescript-eslint/eslint-plugin": "^6.7.0",

0 commit comments

Comments
 (0)