@anthropic-ai/sdk 0.9.1 → 0.10.1

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,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1 (2023-11-24)
4
+
5
+ Full Changelog: [v0.10.0...v0.10.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/v0.10.0...v0.10.1)
6
+
7
+ ### Chores
8
+
9
+ * **internal:** remove file import and conditionally run prepare ([#217](https://github.com/anthropics/anthropic-sdk-typescript/issues/217)) ([8ac5c7a](https://github.com/anthropics/anthropic-sdk-typescript/commit/8ac5c7ae63a7aa4262ad95e0f4d6a509428de794))
10
+
11
+ ## 0.10.0 (2023-11-21)
12
+
13
+ Full Changelog: [v0.9.1...v0.10.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/v0.9.1...v0.10.0)
14
+
15
+ ### Features
16
+
17
+ * allow installing package directly from github ([#215](https://github.com/anthropics/anthropic-sdk-typescript/issues/215)) ([3de3f1b](https://github.com/anthropics/anthropic-sdk-typescript/commit/3de3f1b8124c110ead3ebedf709f4d5d088230cd))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **ci:** fix publish-npm ([#213](https://github.com/anthropics/anthropic-sdk-typescript/issues/213)) ([4ab77b7](https://github.com/anthropics/anthropic-sdk-typescript/commit/4ab77b7b323f22019193ba4f0a85fc89af193fbf))
23
+ * **internal:** don't call prepare in dist ([#216](https://github.com/anthropics/anthropic-sdk-typescript/issues/216)) ([b031904](https://github.com/anthropics/anthropic-sdk-typescript/commit/b031904901a17878545cd8ce5c43f03cd364a8fe))
24
+
3
25
  ## 0.9.1 (2023-11-14)
4
26
 
5
27
  Full Changelog: [v0.9.0...v0.9.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/v0.9.0...v0.9.1)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@anthropic-ai/sdk",
3
- "version": "0.9.1",
4
- "description": "Client library for the Anthropic API",
3
+ "version": "0.10.1",
4
+ "description": "The official TypeScript library for the Anthropic API",
5
5
  "author": "Anthropic <support@anthropic.com>",
6
6
  "types": "./index.d.ts",
7
7
  "main": "./index.js",
@@ -9,6 +9,25 @@
9
9
  "repository": "github:anthropics/anthropic-sdk-typescript",
10
10
  "license": "MIT",
11
11
  "private": false,
12
+ "scripts": {
13
+ "test": "bin/check-test-server && yarn jest",
14
+ "build": "bash ./build",
15
+ "format": "prettier --write --cache --cache-strategy metadata . !dist",
16
+ "tsn": "ts-node -r tsconfig-paths/register",
17
+ "lint": "eslint --ext ts,js .",
18
+ "fix": "eslint --fix --ext ts,js ."
19
+ },
20
+ "dependencies": {
21
+ "@types/node": "^18.11.18",
22
+ "@types/node-fetch": "^2.6.4",
23
+ "abort-controller": "^3.0.0",
24
+ "agentkeepalive": "^4.2.1",
25
+ "digest-fetch": "^1.3.0",
26
+ "form-data-encoder": "1.7.2",
27
+ "formdata-node": "^4.3.2",
28
+ "node-fetch": "^2.6.7",
29
+ "web-streams-polyfill": "^3.2.1"
30
+ },
12
31
  "sideEffects": [
13
32
  "./_shims/index.js",
14
33
  "./_shims/index.mjs",
@@ -17,6 +36,10 @@
17
36
  "./shims/web.js",
18
37
  "./shims/web.mjs"
19
38
  ],
39
+ "imports": {
40
+ "@anthropic-ai/sdk": ".",
41
+ "@anthropic-ai/sdk/*": "./src/*"
42
+ },
20
43
  "exports": {
21
44
  "./_shims/auto/*": {
22
45
  "deno": {
@@ -74,24 +97,5 @@
74
97
  "require": "./*.js",
75
98
  "default": "./*.mjs"
76
99
  }
77
- },
78
- "scripts": {
79
- "test": "bin/check-test-server && yarn jest",
80
- "build": "bash ./build",
81
- "format": "prettier --write --cache --cache-strategy metadata . !dist",
82
- "tsn": "ts-node -r tsconfig-paths/register",
83
- "lint": "eslint --ext ts,js .",
84
- "fix": "eslint --fix --ext ts,js ."
85
- },
86
- "dependencies": {
87
- "@types/node": "^18.11.18",
88
- "@types/node-fetch": "^2.6.4",
89
- "abort-controller": "^3.0.0",
90
- "agentkeepalive": "^4.2.1",
91
- "digest-fetch": "^1.3.0",
92
- "form-data-encoder": "1.7.2",
93
- "formdata-node": "^4.3.2",
94
- "node-fetch": "^2.6.7",
95
- "web-streams-polyfill": "^3.2.1"
96
100
  }
97
101
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.9.1'; // x-release-please-version
1
+ export const VERSION = '0.10.1'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.9.1";
1
+ export declare const VERSION = "0.10.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
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.9.1'; // x-release-please-version
4
+ exports.VERSION = '0.10.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.9.1'; // x-release-please-version
1
+ export const VERSION = '0.10.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}