@anthropic-ai/sdk 0.12.4 → 0.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.8 (2024-02-02)
4
+
5
+ Full Changelog: [sdk-v0.12.7...sdk-v0.12.8](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.12.7...sdk-v0.12.8)
6
+
7
+ ### Chores
8
+
9
+ * **interal:** make link to api.md relative ([#278](https://github.com/anthropics/anthropic-sdk-typescript/issues/278)) ([46f8c28](https://github.com/anthropics/anthropic-sdk-typescript/commit/46f8c2805af75a5a733fdaa53936765a483471cb))
10
+ * **internal:** enable building when git installed ([#279](https://github.com/anthropics/anthropic-sdk-typescript/issues/279)) ([3065001](https://github.com/anthropics/anthropic-sdk-typescript/commit/3065001610041b0c74cc640b72f646b6ff867db1))
11
+
12
+
13
+ ### Documentation
14
+
15
+ * add a CONTRIBUTING.md ([#280](https://github.com/anthropics/anthropic-sdk-typescript/issues/280)) ([5b53551](https://github.com/anthropics/anthropic-sdk-typescript/commit/5b535512f2eacdb9f2fef795c85f2d2aaeedaea3))
16
+
17
+ ## 0.12.7 (2024-01-31)
18
+
19
+ Full Changelog: [sdk-v0.12.6...sdk-v0.12.7](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.12.6...sdk-v0.12.7)
20
+
21
+ ### Chores
22
+
23
+ * **bedrock:** move bedrock SDK to the main repo ([#274](https://github.com/anthropics/anthropic-sdk-typescript/issues/274)) ([b4ef3a8](https://github.com/anthropics/anthropic-sdk-typescript/commit/b4ef3a854e447744a1e270ec1e7e6da81b98ade3))
24
+ * **ci:** fix publish packages script ([#272](https://github.com/anthropics/anthropic-sdk-typescript/issues/272)) ([db3585d](https://github.com/anthropics/anthropic-sdk-typescript/commit/db3585daf759c9794ec307b05a568527a2e7df99))
25
+
26
+ ## 0.12.6 (2024-01-30)
27
+
28
+ Full Changelog: [sdk-v0.12.5...sdk-v0.12.6](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.12.5...sdk-v0.12.6)
29
+
30
+ ### Chores
31
+
32
+ * **internal:** support pre-release versioning ([#270](https://github.com/anthropics/anthropic-sdk-typescript/issues/270)) ([566069d](https://github.com/anthropics/anthropic-sdk-typescript/commit/566069d4eb1dbcc2123f4b455f855b0748d586ee))
33
+
34
+ ## 0.12.5 (2024-01-25)
35
+
36
+ Full Changelog: [sdk-v0.12.4...sdk-v0.12.5](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.12.4...sdk-v0.12.5)
37
+
38
+ ### Chores
39
+
40
+ * **internal:** don't re-export streaming type ([#267](https://github.com/anthropics/anthropic-sdk-typescript/issues/267)) ([bcae5a9](https://github.com/anthropics/anthropic-sdk-typescript/commit/bcae5a95078dfe091d01823cd38cf3c63d28026d))
41
+ * **internal:** update release-please config ([#269](https://github.com/anthropics/anthropic-sdk-typescript/issues/269)) ([80952e6](https://github.com/anthropics/anthropic-sdk-typescript/commit/80952e6ff6aea24ade9ea45dcbe8bb61da385304))
42
+
3
43
  ## 0.12.4 (2024-01-23)
4
44
 
5
45
  Full Changelog: [sdk-v0.12.3...sdk-v0.12.4](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.12.3...sdk-v0.12.4)
package/README.md CHANGED
@@ -6,7 +6,7 @@ This library provides convenient access to the Anthropic REST API from server-si
6
6
 
7
7
  For the AWS Bedrock API, see [`@anthropic-ai/bedrock-sdk`](https://github.com/anthropics/anthropic-bedrock-typescript).
8
8
 
9
- The REST API documentation can be found [on docs.anthropic.com](https://docs.anthropic.com/claude/reference/). The full API of this library can be found in [api.md](https://www.github.com/anthropics/anthropic-sdk-typescript/blob/main/api.md).
9
+ The REST API documentation can be found [on docs.anthropic.com](https://docs.anthropic.com/claude/reference/). The full API of this library can be found in [api.md](api.md).
10
10
 
11
11
  ## Installation
12
12
 
@@ -18,7 +18,7 @@ yarn add @anthropic-ai/sdk
18
18
 
19
19
  ## Usage
20
20
 
21
- The full API of this library can be found in [api.md](https://www.github.com/anthropics/anthropic-sdk-typescript/blob/main/api.md).
21
+ The full API of this library can be found in [api.md](api.md).
22
22
 
23
23
  <!-- prettier-ignore -->
24
24
  ```js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/sdk",
3
- "version": "0.12.4",
3
+ "version": "0.12.8",
4
4
  "description": "The official TypeScript library for the Anthropic API",
5
5
  "author": "Anthropic <support@anthropic.com>",
6
6
  "types": "./index.d.ts",
@@ -9,6 +9,9 @@
9
9
  "repository": "github:anthropics/anthropic-sdk-typescript",
10
10
  "license": "MIT",
11
11
  "packageManager": "yarn@1.22.21",
12
+ "files": [
13
+ "*"
14
+ ],
12
15
  "private": false,
13
16
  "scripts": {
14
17
  "test": "bin/check-test-server && yarn jest",
package/src/streaming.ts CHANGED
@@ -4,7 +4,7 @@ import { AnthropicError } from './error';
4
4
  import { safeJSON, createResponseHeaders } from "./core";
5
5
  import { APIError } from "./error";
6
6
 
7
- export type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
7
+ type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
8
8
 
9
9
  export type ServerSentEvent = {
10
10
  event: string | null;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.12.4'; // x-release-please-version
1
+ export const VERSION = '0.12.8'; // x-release-please-version
package/streaming.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
 
2
-
3
2
  import { ReadableStream, type Response } from "./_shims/index.js";
4
- export type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
5
3
  export type ServerSentEvent = {
6
4
  event: string | null;
7
5
  data: string;
@@ -1 +1 @@
1
- {"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,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ACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AAEF,qBAAa,MAAM,CAAC,IAAI,CAAE,YAAW,aAAa,CAAC,IAAI,CAAC;IAIpD,OAAO,CAAC,QAAQ;IAHlB,UAAU,EAAE,eAAe,CAAC;gBAGlB,QAAQ,EAAE,MAAM,aAAa,CAAC,IAAI,CAAC,EAC3C,UAAU,EAAE,eAAe;IAK7B,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe;IAuF5E;;;OAGG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,eAAe;IA2C3F,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,IAAI,CAAC;IAI7C;;;OAGG;IACH,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAwBnC;;;;OAIG;IACH,gBAAgB,IAAI,cAAc;CA0BnC;AA2KD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAyBpF"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.12.4";
1
+ export declare const VERSION = "0.12.8";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.12.4'; // x-release-please-version
4
+ exports.VERSION = '0.12.8'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.12.4'; // x-release-please-version
1
+ export const VERSION = '0.12.8'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map