@langchain/anthropic 0.0.9 → 0.0.10
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/README.md +5 -5
- package/index.d.cts +1 -0
- package/package.json +20 -10
package/README.md
CHANGED
|
@@ -17,18 +17,18 @@ You can do so by adding appropriate fields to your project's `package.json` like
|
|
|
17
17
|
"name": "your-project",
|
|
18
18
|
"version": "0.0.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@langchain/anthropic": "^0.0.
|
|
20
|
+
"@langchain/anthropic": "^0.0.9",
|
|
21
21
|
"langchain": "0.0.207"
|
|
22
22
|
},
|
|
23
23
|
"resolutions": {
|
|
24
|
-
"@langchain/core": "0.1.
|
|
24
|
+
"@langchain/core": "0.1.5"
|
|
25
25
|
},
|
|
26
26
|
"overrides": {
|
|
27
|
-
"@langchain/core": "0.1.
|
|
27
|
+
"@langchain/core": "0.1.5"
|
|
28
28
|
},
|
|
29
29
|
"pnpm": {
|
|
30
30
|
"overrides": {
|
|
31
|
-
"@langchain/core": "0.1.
|
|
31
|
+
"@langchain/core": "0.1.5"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -111,7 +111,7 @@ yarn lint && yarn format
|
|
|
111
111
|
|
|
112
112
|
### Adding new entrypoints
|
|
113
113
|
|
|
114
|
-
If you add a new file to be exported, either import & re-export from `src/index.ts`, or add it to `
|
|
114
|
+
If you add a new file to be exported, either import & re-export from `src/index.ts`, or add it to the `entrypoints` field in the `config` variable located inside `langchain.config.js` and run `yarn build` to generate the new entrypoint.
|
|
115
115
|
|
|
116
116
|
## Publishing
|
|
117
117
|
|
package/index.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/index.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/anthropic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Anthropic integrations for LangChain.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -12,24 +12,28 @@
|
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git@github.com:langchain-ai/langchainjs.git"
|
|
14
14
|
},
|
|
15
|
+
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-anthropic/",
|
|
15
16
|
"scripts": {
|
|
16
17
|
"build": "yarn run build:deps && yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts",
|
|
17
18
|
"build:deps": "yarn run turbo:command build --filter=@langchain/core",
|
|
18
19
|
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/",
|
|
19
|
-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json &&
|
|
20
|
-
"build:watch": "
|
|
21
|
-
"build:scripts": "
|
|
22
|
-
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src",
|
|
20
|
+
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rimraf dist-cjs",
|
|
21
|
+
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
|
|
22
|
+
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
|
|
23
|
+
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
|
|
23
24
|
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
24
25
|
"lint": "yarn lint:eslint && yarn lint:dpdm",
|
|
25
26
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
|
|
26
|
-
"clean": "rimraf .turbo/ dist/ && NODE_OPTIONS=--max-old-space-size=4096
|
|
27
|
+
"clean": "rimraf .turbo/ dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn create-entrypoints -- --pre",
|
|
27
28
|
"prepack": "yarn build",
|
|
28
29
|
"test": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
|
|
29
30
|
"test:watch": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
30
31
|
"test:single": "yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
|
|
31
|
-
"format": "prettier --write \"src\"",
|
|
32
|
-
"format:check": "prettier --check \"src\""
|
|
32
|
+
"format": "prettier --config .prettierrc --write \"src\"",
|
|
33
|
+
"format:check": "prettier --config .prettierrc --check \"src\"",
|
|
34
|
+
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
|
|
35
|
+
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
|
|
36
|
+
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
|
|
33
37
|
},
|
|
34
38
|
"author": "LangChain",
|
|
35
39
|
"license": "MIT",
|
|
@@ -39,6 +43,7 @@
|
|
|
39
43
|
},
|
|
40
44
|
"devDependencies": {
|
|
41
45
|
"@jest/globals": "^29.5.0",
|
|
46
|
+
"@langchain/scripts": "~0.0",
|
|
42
47
|
"@swc/core": "^1.3.90",
|
|
43
48
|
"@swc/jest": "^0.2.29",
|
|
44
49
|
"dpdm": "^3.12.0",
|
|
@@ -75,7 +80,11 @@
|
|
|
75
80
|
],
|
|
76
81
|
"exports": {
|
|
77
82
|
".": {
|
|
78
|
-
"types":
|
|
83
|
+
"types": {
|
|
84
|
+
"import": "./index.d.ts",
|
|
85
|
+
"require": "./index.d.cts",
|
|
86
|
+
"default": "./index.d.ts"
|
|
87
|
+
},
|
|
79
88
|
"import": "./index.js",
|
|
80
89
|
"require": "./index.cjs"
|
|
81
90
|
},
|
|
@@ -85,6 +94,7 @@
|
|
|
85
94
|
"dist/",
|
|
86
95
|
"index.cjs",
|
|
87
96
|
"index.js",
|
|
88
|
-
"index.d.ts"
|
|
97
|
+
"index.d.ts",
|
|
98
|
+
"index.d.cts"
|
|
89
99
|
]
|
|
90
100
|
}
|