From 997df97d46f0e5ae7fa9e620e7e7e1e8f0fbc798 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Mon, 8 Jul 2024 18:34:08 -0700 Subject: [PATCH] all[major]: Bump to typescript 5.4.5 --- docs/api_refs/package.json | 2 +- .../test-exports-bun/package.json | 2 +- .../test-exports-cf/package.json | 2 +- .../test-exports-cjs/package.json | 2 +- .../test-exports-esbuild/package.json | 2 +- .../test-exports-esm/package.json | 2 +- .../test-exports-vercel/package.json | 2 +- .../test-exports-vite/package.json | 2 +- examples/package.json | 2 +- langchain-core/package.json | 2 +- langchain-core/src/package.json | 1 + .../utils/@cfworker/json-schema/package.json | 2 +- langchain-core/tsconfig.cjs.json | 1 - langchain-core/tsconfig.json | 2 +- langchain/package.json | 2 +- langchain/tsconfig.cjs.json | 1 - langchain/tsconfig.json | 4 +- .../create-langchain-integration/package.json | 2 +- .../template/package.json | 2 +- .../template/tsconfig.cjs.json | 10 ++- .../template/tsconfig.json | 20 +++-- .../tsconfig.json | 16 +++- libs/langchain-anthropic/package.json | 2 +- libs/langchain-anthropic/tsconfig.cjs.json | 1 - libs/langchain-anthropic/tsconfig.json | 4 +- libs/langchain-aws/package.json | 2 +- libs/langchain-aws/tsconfig.cjs.json | 10 ++- libs/langchain-aws/tsconfig.json | 20 +++-- .../package.json | 2 +- .../tsconfig.cjs.json | 10 ++- .../tsconfig.json | 20 +++-- libs/langchain-azure-openai/package.json | 2 +- libs/langchain-azure-openai/tsconfig.cjs.json | 1 - libs/langchain-azure-openai/tsconfig.json | 4 +- libs/langchain-baidu-qianfan/package.json | 2 +- .../langchain-baidu-qianfan/tsconfig.cjs.json | 10 ++- libs/langchain-baidu-qianfan/tsconfig.json | 20 +++-- libs/langchain-cloudflare/package.json | 2 +- libs/langchain-cloudflare/tsconfig.cjs.json | 10 ++- libs/langchain-cloudflare/tsconfig.json | 20 +++-- libs/langchain-cohere/package.json | 2 +- libs/langchain-cohere/tsconfig.cjs.json | 10 ++- libs/langchain-cohere/tsconfig.json | 20 +++-- libs/langchain-community/package.json | 2 +- libs/langchain-community/tsconfig.cjs.json | 10 ++- libs/langchain-community/tsconfig.json | 20 +++-- libs/langchain-exa/package.json | 2 +- libs/langchain-exa/tsconfig.cjs.json | 10 ++- libs/langchain-exa/tsconfig.json | 20 +++-- libs/langchain-google-common/package.json | 2 +- .../langchain-google-common/tsconfig.cjs.json | 10 ++- libs/langchain-google-common/tsconfig.json | 20 +++-- libs/langchain-google-gauth/package.json | 2 +- libs/langchain-google-gauth/tsconfig.cjs.json | 10 ++- libs/langchain-google-gauth/tsconfig.json | 20 +++-- libs/langchain-google-genai/package.json | 2 +- libs/langchain-google-genai/tsconfig.cjs.json | 10 ++- libs/langchain-google-genai/tsconfig.json | 20 +++-- .../package.json | 2 +- .../tsconfig.cjs.json | 10 ++- .../tsconfig.json | 20 +++-- libs/langchain-google-vertexai/package.json | 2 +- .../tsconfig.cjs.json | 10 ++- libs/langchain-google-vertexai/tsconfig.json | 20 +++-- libs/langchain-google-webauth/package.json | 2 +- .../tsconfig.cjs.json | 10 ++- libs/langchain-google-webauth/tsconfig.json | 20 +++-- libs/langchain-groq/package.json | 2 +- libs/langchain-groq/tsconfig.cjs.json | 10 ++- libs/langchain-groq/tsconfig.json | 20 +++-- libs/langchain-mistralai/package.json | 2 +- libs/langchain-mistralai/tsconfig.cjs.json | 1 - libs/langchain-mistralai/tsconfig.json | 4 +- libs/langchain-mixedbread-ai/package.json | 2 +- .../langchain-mixedbread-ai/tsconfig.cjs.json | 10 ++- libs/langchain-mixedbread-ai/tsconfig.json | 20 +++-- libs/langchain-mongodb/package.json | 2 +- libs/langchain-mongodb/tsconfig.cjs.json | 10 ++- libs/langchain-mongodb/tsconfig.json | 20 +++-- libs/langchain-nomic/package.json | 2 +- libs/langchain-nomic/tsconfig.cjs.json | 10 ++- libs/langchain-nomic/tsconfig.json | 20 +++-- libs/langchain-openai/package.json | 2 +- libs/langchain-openai/tsconfig.cjs.json | 1 - libs/langchain-openai/tsconfig.json | 4 +- libs/langchain-pinecone/package.json | 2 +- libs/langchain-pinecone/tsconfig.cjs.json | 10 ++- libs/langchain-pinecone/tsconfig.json | 20 +++-- libs/langchain-qdrant/package.json | 2 +- libs/langchain-qdrant/tsconfig.cjs.json | 10 ++- libs/langchain-qdrant/tsconfig.json | 20 +++-- libs/langchain-redis/package.json | 2 +- libs/langchain-redis/tsconfig.cjs.json | 10 ++- libs/langchain-redis/tsconfig.json | 20 +++-- libs/langchain-scripts/src/build_v2.ts | 27 +++++- libs/langchain-textsplitters/package.json | 2 +- .../langchain-textsplitters/tsconfig.cjs.json | 10 ++- libs/langchain-textsplitters/tsconfig.json | 20 +++-- libs/langchain-weaviate/package.json | 2 +- libs/langchain-weaviate/tsconfig.cjs.json | 10 ++- libs/langchain-weaviate/tsconfig.json | 20 +++-- libs/langchain-yandex/package.json | 2 +- libs/langchain-yandex/tsconfig.cjs.json | 10 ++- libs/langchain-yandex/tsconfig.json | 20 +++-- package.json | 2 +- tsconfig.json | 4 +- yarn.lock | 86 +++++++------------ 107 files changed, 652 insertions(+), 314 deletions(-) create mode 100644 langchain-core/src/package.json diff --git a/docs/api_refs/package.json b/docs/api_refs/package.json index 55f5f0428936..7e45e212cf6f 100644 --- a/docs/api_refs/package.json +++ b/docs/api_refs/package.json @@ -30,6 +30,6 @@ "prettier": "^2.8.3", "tailwindcss": "^3.3.0", "typedoc": "^0.26.0", - "typescript": "~5.1.6" + "typescript": "^5.4.5" } } diff --git a/environment_tests/test-exports-bun/package.json b/environment_tests/test-exports-bun/package.json index ef5753021c6d..d5d4cab9e98b 100644 --- a/environment_tests/test-exports-bun/package.json +++ b/environment_tests/test-exports-bun/package.json @@ -28,6 +28,6 @@ "devDependencies": { "@tsconfig/recommended": "^1.0.2", "@types/node": "^18.15.11", - "typescript": "^5.0.0" + "typescript": "^5.4.5" } } diff --git a/environment_tests/test-exports-cf/package.json b/environment_tests/test-exports-cf/package.json index 6b892dde4870..f1695f9db149 100644 --- a/environment_tests/test-exports-cf/package.json +++ b/environment_tests/test-exports-cf/package.json @@ -15,7 +15,7 @@ "langchain": "workspace:*", "wrangler": "3.7.0", "vitest": "0.34.3", - "typescript": "^5.0.3" + "typescript": "^5.4.5" }, "private": true, "scripts": { diff --git a/environment_tests/test-exports-cjs/package.json b/environment_tests/test-exports-cjs/package.json index c97c2931d5cb..ca2f39b4b1ac 100644 --- a/environment_tests/test-exports-cjs/package.json +++ b/environment_tests/test-exports-cjs/package.json @@ -30,7 +30,7 @@ "d3-dsv": "2", "hnswlib-node": "^3.0.0", "langchain": "workspace:*", - "typescript": "^5.0.0" + "typescript": "^5.4.5" }, "devDependencies": { "@types/node": "^18.15.11", diff --git a/environment_tests/test-exports-esbuild/package.json b/environment_tests/test-exports-esbuild/package.json index a90f4b52118d..e2105395769f 100644 --- a/environment_tests/test-exports-esbuild/package.json +++ b/environment_tests/test-exports-esbuild/package.json @@ -28,7 +28,7 @@ "esbuild": "^0.17.18", "hnswlib-node": "^3.0.0", "langchain": "workspace:*", - "typescript": "^5.0.0" + "typescript": "^5.4.5" }, "devDependencies": { "@types/node": "^18.15.11", diff --git a/environment_tests/test-exports-esm/package.json b/environment_tests/test-exports-esm/package.json index ec04572c39cf..f8208364c957 100644 --- a/environment_tests/test-exports-esm/package.json +++ b/environment_tests/test-exports-esm/package.json @@ -31,7 +31,7 @@ "d3-dsv": "2", "hnswlib-node": "^3.0.0", "langchain": "workspace:*", - "typescript": "^5.0.0" + "typescript": "^5.4.5" }, "devDependencies": { "@types/node": "^18.15.11", diff --git a/environment_tests/test-exports-vercel/package.json b/environment_tests/test-exports-vercel/package.json index fcf41e67537a..9aab184abaf0 100644 --- a/environment_tests/test-exports-vercel/package.json +++ b/environment_tests/test-exports-vercel/package.json @@ -25,7 +25,7 @@ "next": "13.4.9", "react": "18.2.0", "react-dom": "18.2.0", - "typescript": "^5.0.0" + "typescript": "^5.4.5" }, "resolutions": { "@langchain/core": "~0.2.0" diff --git a/environment_tests/test-exports-vite/package.json b/environment_tests/test-exports-vite/package.json index aaab92df3504..272694dd59c0 100644 --- a/environment_tests/test-exports-vite/package.json +++ b/environment_tests/test-exports-vite/package.json @@ -18,7 +18,7 @@ "@langchain/core": "workspace:*", "@langchain/openai": "workspace:*", "langchain": "workspace:*", - "typescript": "^5.0.0", + "typescript": "^5.4.5", "vite": "^4.2.0" }, "resolutions": { diff --git a/examples/package.json b/examples/package.json index 56fb064ed456..75be7c810694 100644 --- a/examples/package.json +++ b/examples/package.json @@ -121,6 +121,6 @@ "eslint-plugin-unused-imports": "^3.0.0", "prettier": "^2.8.3", "tsx": "^3.12.3", - "typescript": "~5.1.6" + "typescript": "^5.4.5" } } diff --git a/langchain-core/package.json b/langchain-core/package.json index 258045f35fee..39806469ff19 100644 --- a/langchain-core/package.json +++ b/langchain-core/package.json @@ -74,7 +74,7 @@ "prettier": "^2.8.3", "release-it": "^15.10.1", "rimraf": "^5.0.1", - "typescript": "~5.1.6", + "typescript": "^5.4.5", "web-streams-polyfill": "^3.3.3" }, "publishConfig": { diff --git a/langchain-core/src/package.json b/langchain-core/src/package.json new file mode 100644 index 000000000000..9e26dfeeb6e6 --- /dev/null +++ b/langchain-core/src/package.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/langchain-core/src/utils/@cfworker/json-schema/package.json b/langchain-core/src/utils/@cfworker/json-schema/package.json index 256ab0396134..49037cb3b671 100644 --- a/langchain-core/src/utils/@cfworker/json-schema/package.json +++ b/langchain-core/src/utils/@cfworker/json-schema/package.json @@ -44,6 +44,6 @@ "chai": "^4.3.6", "json-schema-test-suite": "git+https://github.com/json-schema-org/JSON-Schema-Test-Suite#76b529f", "mocha": "^10.0.0", - "typescript": "^4.8.4" + "typescript": "^5.4.5" } } diff --git a/langchain-core/tsconfig.cjs.json b/langchain-core/tsconfig.cjs.json index 83f5d513ef0f..64152eb97732 100644 --- a/langchain-core/tsconfig.cjs.json +++ b/langchain-core/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, "exclude": [ diff --git a/langchain-core/tsconfig.json b/langchain-core/tsconfig.json index ffc49dde54a6..05cdf3a4d72b 100644 --- a/langchain-core/tsconfig.json +++ b/langchain-core/tsconfig.json @@ -9,7 +9,7 @@ "ES2022.Object", "DOM" ], - "module": "ES2020", + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, diff --git a/langchain/package.json b/langchain/package.json index acf78e1b109e..e6ee0e3f44d3 100644 --- a/langchain/package.json +++ b/langchain/package.json @@ -677,7 +677,7 @@ "srt-parser-2": "^1.2.3", "ts-jest": "^29.1.0", "typeorm": "^0.3.20", - "typescript": "~5.1.6", + "typescript": "^5.4.5", "weaviate-ts-client": "^2.0.0", "web-auth-library": "^1.0.3", "wikipedia": "^2.1.2", diff --git a/langchain/tsconfig.cjs.json b/langchain/tsconfig.cjs.json index 83f5d513ef0f..64152eb97732 100644 --- a/langchain/tsconfig.cjs.json +++ b/langchain/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, "exclude": [ diff --git a/langchain/tsconfig.json b/langchain/tsconfig.json index ffc49dde54a6..7d0cd8692064 100644 --- a/langchain/tsconfig.json +++ b/langchain/tsconfig.json @@ -9,7 +9,7 @@ "ES2022.Object", "DOM" ], - "module": "ES2020", + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -30,4 +30,4 @@ "dist", "docs" ] -} +} \ No newline at end of file diff --git a/libs/create-langchain-integration/package.json b/libs/create-langchain-integration/package.json index c8b3e57b2458..dee629fc11ff 100644 --- a/libs/create-langchain-integration/package.json +++ b/libs/create-langchain-integration/package.json @@ -34,7 +34,7 @@ "picocolors": "^1.0.0", "prettier": "^2.8.3", "prompts": "^2.4.2", - "typescript": "~5.1.6", + "typescript": "^5.4.5", "update-check": "^1.5.4", "validate-npm-package-name": "^5.0.0" } diff --git a/libs/create-langchain-integration/template/package.json b/libs/create-langchain-integration/template/package.json index bdbf6649f41b..0e0e6871b52f 100644 --- a/libs/create-langchain-integration/template/package.json +++ b/libs/create-langchain-integration/template/package.json @@ -63,7 +63,7 @@ "prettier": "^2.8.3", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/create-langchain-integration/template/tsconfig.cjs.json b/libs/create-langchain-integration/template/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/create-langchain-integration/template/tsconfig.cjs.json +++ b/libs/create-langchain-integration/template/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/create-langchain-integration/template/tsconfig.json b/libs/create-langchain-integration/template/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/create-langchain-integration/template/tsconfig.json +++ b/libs/create-langchain-integration/template/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/create-langchain-integration/tsconfig.json b/libs/create-langchain-integration/tsconfig.json index 8994aa4b3798..533276b8712d 100644 --- a/libs/create-langchain-integration/tsconfig.json +++ b/libs/create-langchain-integration/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "./dist", "rootDir": "./", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -19,5 +23,9 @@ "strict": true, "resolveJsonModule": true }, - "exclude": ["node_modules", "dist", "template"] -} + "exclude": [ + "node_modules", + "dist", + "template" + ] +} \ No newline at end of file diff --git a/libs/langchain-anthropic/package.json b/libs/langchain-anthropic/package.json index b94ca016e8a3..3b61d3f45ce9 100644 --- a/libs/langchain-anthropic/package.json +++ b/libs/langchain-anthropic/package.json @@ -62,7 +62,7 @@ "release-it": "^15.10.1", "rimraf": "^5.0.1", "ts-jest": "^29.1.0", - "typescript": "~5.1.6" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-anthropic/tsconfig.cjs.json b/libs/langchain-anthropic/tsconfig.cjs.json index 83f5d513ef0f..64152eb97732 100644 --- a/libs/langchain-anthropic/tsconfig.cjs.json +++ b/libs/langchain-anthropic/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, "exclude": [ diff --git a/libs/langchain-anthropic/tsconfig.json b/libs/langchain-anthropic/tsconfig.json index ffc49dde54a6..7d0cd8692064 100644 --- a/libs/langchain-anthropic/tsconfig.json +++ b/libs/langchain-anthropic/tsconfig.json @@ -9,7 +9,7 @@ "ES2022.Object", "DOM" ], - "module": "ES2020", + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -30,4 +30,4 @@ "dist", "docs" ] -} +} \ No newline at end of file diff --git a/libs/langchain-aws/package.json b/libs/langchain-aws/package.json index bd305ce3c996..5d15de74fc0d 100644 --- a/libs/langchain-aws/package.json +++ b/libs/langchain-aws/package.json @@ -69,7 +69,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0", + "typescript": "^5.4.5", "zod": "^3.22.4" }, "publishConfig": { diff --git a/libs/langchain-aws/tsconfig.cjs.json b/libs/langchain-aws/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-aws/tsconfig.cjs.json +++ b/libs/langchain-aws/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-aws/tsconfig.json b/libs/langchain-aws/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-aws/tsconfig.json +++ b/libs/langchain-aws/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-azure-dynamic-sessions/package.json b/libs/langchain-azure-dynamic-sessions/package.json index f26be33388ee..703e60f933f0 100644 --- a/libs/langchain-azure-dynamic-sessions/package.json +++ b/libs/langchain-azure-dynamic-sessions/package.json @@ -65,7 +65,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-azure-dynamic-sessions/tsconfig.cjs.json b/libs/langchain-azure-dynamic-sessions/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-azure-dynamic-sessions/tsconfig.cjs.json +++ b/libs/langchain-azure-dynamic-sessions/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-azure-dynamic-sessions/tsconfig.json b/libs/langchain-azure-dynamic-sessions/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-azure-dynamic-sessions/tsconfig.json +++ b/libs/langchain-azure-dynamic-sessions/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-azure-openai/package.json b/libs/langchain-azure-openai/package.json index 99ec548694f3..efc4d8a4c5d2 100644 --- a/libs/langchain-azure-openai/package.json +++ b/libs/langchain-azure-openai/package.json @@ -58,7 +58,7 @@ "prettier": "^2.8.3", "release-it": "^15.10.1", "rimraf": "^5.0.1", - "typescript": "~5.1.6" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-azure-openai/tsconfig.cjs.json b/libs/langchain-azure-openai/tsconfig.cjs.json index 83f5d513ef0f..64152eb97732 100644 --- a/libs/langchain-azure-openai/tsconfig.cjs.json +++ b/libs/langchain-azure-openai/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, "exclude": [ diff --git a/libs/langchain-azure-openai/tsconfig.json b/libs/langchain-azure-openai/tsconfig.json index ffc49dde54a6..7d0cd8692064 100644 --- a/libs/langchain-azure-openai/tsconfig.json +++ b/libs/langchain-azure-openai/tsconfig.json @@ -9,7 +9,7 @@ "ES2022.Object", "DOM" ], - "module": "ES2020", + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -30,4 +30,4 @@ "dist", "docs" ] -} +} \ No newline at end of file diff --git a/libs/langchain-baidu-qianfan/package.json b/libs/langchain-baidu-qianfan/package.json index 6b3bf46efc28..074ed4b6c58f 100644 --- a/libs/langchain-baidu-qianfan/package.json +++ b/libs/langchain-baidu-qianfan/package.json @@ -62,7 +62,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-baidu-qianfan/tsconfig.cjs.json b/libs/langchain-baidu-qianfan/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-baidu-qianfan/tsconfig.cjs.json +++ b/libs/langchain-baidu-qianfan/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-baidu-qianfan/tsconfig.json b/libs/langchain-baidu-qianfan/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-baidu-qianfan/tsconfig.json +++ b/libs/langchain-baidu-qianfan/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-cloudflare/package.json b/libs/langchain-cloudflare/package.json index 24669f14f9d1..d962a48197d2 100644 --- a/libs/langchain-cloudflare/package.json +++ b/libs/langchain-cloudflare/package.json @@ -64,7 +64,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-cloudflare/tsconfig.cjs.json b/libs/langchain-cloudflare/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-cloudflare/tsconfig.cjs.json +++ b/libs/langchain-cloudflare/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-cloudflare/tsconfig.json b/libs/langchain-cloudflare/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-cloudflare/tsconfig.json +++ b/libs/langchain-cloudflare/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-cohere/package.json b/libs/langchain-cohere/package.json index 4227d83388e7..faf503cd3195 100644 --- a/libs/langchain-cohere/package.json +++ b/libs/langchain-cohere/package.json @@ -62,7 +62,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-cohere/tsconfig.cjs.json b/libs/langchain-cohere/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-cohere/tsconfig.cjs.json +++ b/libs/langchain-cohere/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-cohere/tsconfig.json b/libs/langchain-cohere/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-cohere/tsconfig.json +++ b/libs/langchain-cohere/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-community/package.json b/libs/langchain-community/package.json index 789b17607eb4..d377f10dc4c0 100644 --- a/libs/langchain-community/package.json +++ b/libs/langchain-community/package.json @@ -202,7 +202,7 @@ "srt-parser-2": "^1.2.3", "ts-jest": "^29.1.0", "typeorm": "^0.3.20", - "typescript": "~5.1.6", + "typescript": "^5.4.5", "typesense": "^1.5.3", "usearch": "^1.1.1", "vectordb": "^0.1.4", diff --git a/libs/langchain-community/tsconfig.cjs.json b/libs/langchain-community/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-community/tsconfig.cjs.json +++ b/libs/langchain-community/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-community/tsconfig.json b/libs/langchain-community/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-community/tsconfig.json +++ b/libs/langchain-community/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-exa/package.json b/libs/langchain-exa/package.json index d4cc7a84c435..badb84b083cf 100644 --- a/libs/langchain-exa/package.json +++ b/libs/langchain-exa/package.json @@ -66,7 +66,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-exa/tsconfig.cjs.json b/libs/langchain-exa/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-exa/tsconfig.cjs.json +++ b/libs/langchain-exa/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-exa/tsconfig.json b/libs/langchain-exa/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-exa/tsconfig.json +++ b/libs/langchain-exa/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-common/package.json b/libs/langchain-google-common/package.json index 55996d06b1ac..1930ee6bb703 100644 --- a/libs/langchain-google-common/package.json +++ b/libs/langchain-google-common/package.json @@ -66,7 +66,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0", + "typescript": "^5.4.5", "zod": "^3.22.4" }, "publishConfig": { diff --git a/libs/langchain-google-common/tsconfig.cjs.json b/libs/langchain-google-common/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-google-common/tsconfig.cjs.json +++ b/libs/langchain-google-common/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-common/tsconfig.json b/libs/langchain-google-common/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-google-common/tsconfig.json +++ b/libs/langchain-google-common/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-gauth/package.json b/libs/langchain-google-gauth/package.json index a41e893065d6..7e5bc5b77177 100644 --- a/libs/langchain-google-gauth/package.json +++ b/libs/langchain-google-gauth/package.json @@ -61,7 +61,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0", + "typescript": "^5.4.5", "zod": "^3.22.4" }, "publishConfig": { diff --git a/libs/langchain-google-gauth/tsconfig.cjs.json b/libs/langchain-google-gauth/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-google-gauth/tsconfig.cjs.json +++ b/libs/langchain-google-gauth/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-gauth/tsconfig.json b/libs/langchain-google-gauth/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-google-gauth/tsconfig.json +++ b/libs/langchain-google-gauth/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-genai/package.json b/libs/langchain-google-genai/package.json index a5410bc40619..397d7593072e 100644 --- a/libs/langchain-google-genai/package.json +++ b/libs/langchain-google-genai/package.json @@ -63,7 +63,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0", + "typescript": "^5.4.5", "zod": "^3.22.4" }, "publishConfig": { diff --git a/libs/langchain-google-genai/tsconfig.cjs.json b/libs/langchain-google-genai/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-google-genai/tsconfig.cjs.json +++ b/libs/langchain-google-genai/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-genai/tsconfig.json b/libs/langchain-google-genai/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-google-genai/tsconfig.json +++ b/libs/langchain-google-genai/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-vertexai-web/package.json b/libs/langchain-google-vertexai-web/package.json index 3e1ee7ce9463..0d97a68f21f0 100644 --- a/libs/langchain-google-vertexai-web/package.json +++ b/libs/langchain-google-vertexai-web/package.json @@ -65,7 +65,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0", + "typescript": "^5.4.5", "zod": "^3.22.4" }, "publishConfig": { diff --git a/libs/langchain-google-vertexai-web/tsconfig.cjs.json b/libs/langchain-google-vertexai-web/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-google-vertexai-web/tsconfig.cjs.json +++ b/libs/langchain-google-vertexai-web/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-vertexai-web/tsconfig.json b/libs/langchain-google-vertexai-web/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-google-vertexai-web/tsconfig.json +++ b/libs/langchain-google-vertexai-web/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-vertexai/package.json b/libs/langchain-google-vertexai/package.json index 6b71a1566de4..dd297ff0df6d 100644 --- a/libs/langchain-google-vertexai/package.json +++ b/libs/langchain-google-vertexai/package.json @@ -70,7 +70,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-google-vertexai/tsconfig.cjs.json b/libs/langchain-google-vertexai/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-google-vertexai/tsconfig.cjs.json +++ b/libs/langchain-google-vertexai/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-vertexai/tsconfig.json b/libs/langchain-google-vertexai/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-google-vertexai/tsconfig.json +++ b/libs/langchain-google-vertexai/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-webauth/package.json b/libs/langchain-google-webauth/package.json index 8e95d85ce11f..2d5267ae41e4 100644 --- a/libs/langchain-google-webauth/package.json +++ b/libs/langchain-google-webauth/package.json @@ -66,7 +66,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-google-webauth/tsconfig.cjs.json b/libs/langchain-google-webauth/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-google-webauth/tsconfig.cjs.json +++ b/libs/langchain-google-webauth/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-google-webauth/tsconfig.json b/libs/langchain-google-webauth/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-google-webauth/tsconfig.json +++ b/libs/langchain-google-webauth/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-groq/package.json b/libs/langchain-groq/package.json index 50efc3f9ba07..431e29a7bdc6 100644 --- a/libs/langchain-groq/package.json +++ b/libs/langchain-groq/package.json @@ -67,7 +67,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-groq/tsconfig.cjs.json b/libs/langchain-groq/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-groq/tsconfig.cjs.json +++ b/libs/langchain-groq/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-groq/tsconfig.json b/libs/langchain-groq/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-groq/tsconfig.json +++ b/libs/langchain-groq/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-mistralai/package.json b/libs/langchain-mistralai/package.json index 0cc8edf42372..399630ec218e 100644 --- a/libs/langchain-mistralai/package.json +++ b/libs/langchain-mistralai/package.json @@ -65,7 +65,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-mistralai/tsconfig.cjs.json b/libs/langchain-mistralai/tsconfig.cjs.json index 83f5d513ef0f..64152eb97732 100644 --- a/libs/langchain-mistralai/tsconfig.cjs.json +++ b/libs/langchain-mistralai/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, "exclude": [ diff --git a/libs/langchain-mistralai/tsconfig.json b/libs/langchain-mistralai/tsconfig.json index ffc49dde54a6..7d0cd8692064 100644 --- a/libs/langchain-mistralai/tsconfig.json +++ b/libs/langchain-mistralai/tsconfig.json @@ -9,7 +9,7 @@ "ES2022.Object", "DOM" ], - "module": "ES2020", + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -30,4 +30,4 @@ "dist", "docs" ] -} +} \ No newline at end of file diff --git a/libs/langchain-mixedbread-ai/package.json b/libs/langchain-mixedbread-ai/package.json index 2109c5aae39a..58ed4dac5cc6 100644 --- a/libs/langchain-mixedbread-ai/package.json +++ b/libs/langchain-mixedbread-ai/package.json @@ -62,7 +62,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-mixedbread-ai/tsconfig.cjs.json b/libs/langchain-mixedbread-ai/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-mixedbread-ai/tsconfig.cjs.json +++ b/libs/langchain-mixedbread-ai/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-mixedbread-ai/tsconfig.json b/libs/langchain-mixedbread-ai/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-mixedbread-ai/tsconfig.json +++ b/libs/langchain-mixedbread-ai/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-mongodb/package.json b/libs/langchain-mongodb/package.json index 01b385097794..83d860135954 100644 --- a/libs/langchain-mongodb/package.json +++ b/libs/langchain-mongodb/package.json @@ -67,7 +67,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0", + "typescript": "^5.4.5", "uuid": "^10.0.0" }, "publishConfig": { diff --git a/libs/langchain-mongodb/tsconfig.cjs.json b/libs/langchain-mongodb/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-mongodb/tsconfig.cjs.json +++ b/libs/langchain-mongodb/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-mongodb/tsconfig.json b/libs/langchain-mongodb/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-mongodb/tsconfig.json +++ b/libs/langchain-mongodb/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-nomic/package.json b/libs/langchain-nomic/package.json index 2de4973cbc01..2bc23da03796 100644 --- a/libs/langchain-nomic/package.json +++ b/libs/langchain-nomic/package.json @@ -67,7 +67,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-nomic/tsconfig.cjs.json b/libs/langchain-nomic/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-nomic/tsconfig.cjs.json +++ b/libs/langchain-nomic/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-nomic/tsconfig.json b/libs/langchain-nomic/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-nomic/tsconfig.json +++ b/libs/langchain-nomic/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-openai/package.json b/libs/langchain-openai/package.json index 7a1010529da2..023c829cb803 100644 --- a/libs/langchain-openai/package.json +++ b/libs/langchain-openai/package.json @@ -62,7 +62,7 @@ "release-it": "^15.10.1", "rimraf": "^5.0.1", "ts-jest": "^29.1.0", - "typescript": "~5.1.6" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-openai/tsconfig.cjs.json b/libs/langchain-openai/tsconfig.cjs.json index 83f5d513ef0f..64152eb97732 100644 --- a/libs/langchain-openai/tsconfig.cjs.json +++ b/libs/langchain-openai/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, "exclude": [ diff --git a/libs/langchain-openai/tsconfig.json b/libs/langchain-openai/tsconfig.json index ffc49dde54a6..7d0cd8692064 100644 --- a/libs/langchain-openai/tsconfig.json +++ b/libs/langchain-openai/tsconfig.json @@ -9,7 +9,7 @@ "ES2022.Object", "DOM" ], - "module": "ES2020", + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -30,4 +30,4 @@ "dist", "docs" ] -} +} \ No newline at end of file diff --git a/libs/langchain-pinecone/package.json b/libs/langchain-pinecone/package.json index 767ef6fd32cf..fc8bcdf139a3 100644 --- a/libs/langchain-pinecone/package.json +++ b/libs/langchain-pinecone/package.json @@ -69,7 +69,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-pinecone/tsconfig.cjs.json b/libs/langchain-pinecone/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-pinecone/tsconfig.cjs.json +++ b/libs/langchain-pinecone/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-pinecone/tsconfig.json b/libs/langchain-pinecone/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-pinecone/tsconfig.json +++ b/libs/langchain-pinecone/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-qdrant/package.json b/libs/langchain-qdrant/package.json index 4a6439c67a5c..03f4109dcc2f 100644 --- a/libs/langchain-qdrant/package.json +++ b/libs/langchain-qdrant/package.json @@ -67,7 +67,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-qdrant/tsconfig.cjs.json b/libs/langchain-qdrant/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-qdrant/tsconfig.cjs.json +++ b/libs/langchain-qdrant/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-qdrant/tsconfig.json b/libs/langchain-qdrant/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-qdrant/tsconfig.json +++ b/libs/langchain-qdrant/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-redis/package.json b/libs/langchain-redis/package.json index d8ff3deb8cc0..2cc46b59a7d6 100644 --- a/libs/langchain-redis/package.json +++ b/libs/langchain-redis/package.json @@ -66,7 +66,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0", + "typescript": "^5.4.5", "uuid": "^10.0.0" }, "publishConfig": { diff --git a/libs/langchain-redis/tsconfig.cjs.json b/libs/langchain-redis/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-redis/tsconfig.cjs.json +++ b/libs/langchain-redis/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-redis/tsconfig.json b/libs/langchain-redis/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-redis/tsconfig.json +++ b/libs/langchain-redis/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-scripts/src/build_v2.ts b/libs/langchain-scripts/src/build_v2.ts index e8764f6b48e5..5c1fd818d92d 100644 --- a/libs/langchain-scripts/src/build_v2.ts +++ b/libs/langchain-scripts/src/build_v2.ts @@ -592,6 +592,26 @@ export async function moveAndRename({ } } +async function buildESM(): Promise { + await tryCatchDeleteFile("src/package.json"); + return asyncSpawn("tsc", ["--outDir", "dist/"]); +} + +async function buildCJS(): Promise { + // Required for proper CJS compilation with TS ^5.4.5 + await fs.promises.writeFile("src/package.json", "{}"); + + return asyncSpawn("tsc", ["--outDir", "dist-cjs/", "-p", "tsconfig.cjs.json"]); +} + +async function tryCatchDeleteFile(filePath: string): Promise { + try { + await fs.promises.unlink(filePath); + } catch { + // no-op + } +} + export async function buildWithTSup() { const { shouldCreateEntrypoints, @@ -622,10 +642,8 @@ export async function buildWithTSup() { } if (shouldCreateEntrypoints) { - await Promise.all([ - asyncSpawn("tsc", ["--outDir", "dist/"]), - asyncSpawn("tsc", ["--outDir", "dist-cjs/", "-p", "tsconfig.cjs.json"]), - ]); + await buildESM(); + await buildCJS(); await moveAndRename({ source: config.cjsSource, dest: config.cjsDestination, @@ -637,6 +655,7 @@ export async function buildWithTSup() { rimraf("dist-cjs"), rimraf("dist/tests"), rimraf("dist/**/tests"), + tryCatchDeleteFile("src/package.json"), ]); } diff --git a/libs/langchain-textsplitters/package.json b/libs/langchain-textsplitters/package.json index 89eba2d93ebe..251e035bd38f 100644 --- a/libs/langchain-textsplitters/package.json +++ b/libs/langchain-textsplitters/package.json @@ -64,7 +64,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-textsplitters/tsconfig.cjs.json b/libs/langchain-textsplitters/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-textsplitters/tsconfig.cjs.json +++ b/libs/langchain-textsplitters/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-textsplitters/tsconfig.json b/libs/langchain-textsplitters/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-textsplitters/tsconfig.json +++ b/libs/langchain-textsplitters/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-weaviate/package.json b/libs/langchain-weaviate/package.json index 6ddb76e23060..c6954078ddd0 100644 --- a/libs/langchain-weaviate/package.json +++ b/libs/langchain-weaviate/package.json @@ -69,7 +69,7 @@ "release-it": "^15.10.1", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-weaviate/tsconfig.cjs.json b/libs/langchain-weaviate/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-weaviate/tsconfig.cjs.json +++ b/libs/langchain-weaviate/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-weaviate/tsconfig.json b/libs/langchain-weaviate/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-weaviate/tsconfig.json +++ b/libs/langchain-weaviate/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/libs/langchain-yandex/package.json b/libs/langchain-yandex/package.json index 8fa657ae97e5..5f6c710bb741 100644 --- a/libs/langchain-yandex/package.json +++ b/libs/langchain-yandex/package.json @@ -63,7 +63,7 @@ "prettier": "^2.8.3", "rollup": "^4.5.2", "ts-jest": "^29.1.0", - "typescript": "<5.2.0" + "typescript": "^5.4.5" }, "publishConfig": { "access": "public" diff --git a/libs/langchain-yandex/tsconfig.cjs.json b/libs/langchain-yandex/tsconfig.cjs.json index 3b7026ea406c..64152eb97732 100644 --- a/libs/langchain-yandex/tsconfig.cjs.json +++ b/libs/langchain-yandex/tsconfig.cjs.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", "declaration": false }, - "exclude": ["node_modules", "dist", "docs", "**/tests"] -} + "exclude": [ + "node_modules", + "dist", + "docs", + "**/tests" + ] +} \ No newline at end of file diff --git a/libs/langchain-yandex/tsconfig.json b/libs/langchain-yandex/tsconfig.json index bc85d83b6229..7d0cd8692064 100644 --- a/libs/langchain-yandex/tsconfig.json +++ b/libs/langchain-yandex/tsconfig.json @@ -4,8 +4,12 @@ "outDir": "../dist", "rootDir": "./src", "target": "ES2021", - "lib": ["ES2021", "ES2022.Object", "DOM"], - "module": "ES2020", + "lib": [ + "ES2021", + "ES2022.Object", + "DOM" + ], + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -18,6 +22,12 @@ "allowJs": true, "strict": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "docs"] -} + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "docs" + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 7df23f31dabc..e482557ae084 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "prettier": "^2.8.3", "semver": "^7.5.4", "turbo": "^1.13.3", - "typescript": "~5.1.6" + "typescript": "^5.4.5" }, "resolutions": { "dpdm@^3.12.0": "patch:dpdm@npm%3A3.12.0#./.yarn/patches/dpdm-npm-3.12.0-0dfdd8e3b8.patch", diff --git a/tsconfig.json b/tsconfig.json index 202ca729163f..b46803373425 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "ES2022.Object", "DOM" ], - "module": "ES2020", + "module": "NodeNext", "moduleResolution": "nodenext", "esModuleInterop": true, "declaration": true, @@ -33,4 +33,4 @@ "langchain-core/dist/", "libs/*/dist/", ] -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index b82e3b5d8ff1..1cf6b9443222 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10227,7 +10227,7 @@ __metadata: release-it: ^15.10.1 rimraf: ^5.0.1 ts-jest: ^29.1.0 - typescript: ~5.1.6 + typescript: ^5.4.5 zod: ^3.22.4 zod-to-json-schema: ^3.22.4 languageName: unknown @@ -10264,7 +10264,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 zod: ^3.22.4 zod-to-json-schema: ^3.22.5 languageName: unknown @@ -10298,7 +10298,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 languageName: unknown linkType: soft @@ -10330,7 +10330,7 @@ __metadata: prettier: ^2.8.3 release-it: ^15.10.1 rimraf: ^5.0.1 - typescript: ~5.1.6 + typescript: ^5.4.5 zod: ^3.22.3 zod-to-json-schema: 3.20.3 languageName: unknown @@ -10366,7 +10366,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 zod: ^3.22.4 zod-to-json-schema: ^3.22.5 languageName: unknown @@ -10402,7 +10402,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 languageName: unknown linkType: soft @@ -10446,7 +10446,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -10616,7 +10616,7 @@ __metadata: srt-parser-2: ^1.2.3 ts-jest: ^29.1.0 typeorm: ^0.3.20 - typescript: ~5.1.6 + typescript: ^5.4.5 typesense: ^1.5.3 usearch: ^1.1.1 uuid: ^10.0.0 @@ -11025,7 +11025,7 @@ __metadata: prettier: ^2.8.3 release-it: ^15.10.1 rimraf: ^5.0.1 - typescript: ~5.1.6 + typescript: ^5.4.5 uuid: ^10.0.0 web-streams-polyfill: ^3.3.3 zod: ^3.22.4 @@ -11061,7 +11061,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -11102,7 +11102,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 zod: ^3.22.4 zod-to-json-schema: ^3.22.4 @@ -11137,7 +11137,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 zod: ^3.22.4 languageName: unknown linkType: soft @@ -11171,7 +11171,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 zod: ^3.22.4 zod-to-json-schema: ^3.22.4 languageName: unknown @@ -11204,7 +11204,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 zod: ^3.22.4 languageName: unknown linkType: soft @@ -11238,7 +11238,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -11269,7 +11269,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 web-auth-library: ^1.0.3 languageName: unknown linkType: soft @@ -11305,7 +11305,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 zod: ^3.22.4 zod-to-json-schema: ^3.22.5 languageName: unknown @@ -11355,7 +11355,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 zod: ^3.22.4 zod-to-json-schema: ^3.22.4 @@ -11391,7 +11391,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -11424,7 +11424,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 languageName: unknown linkType: soft @@ -11458,7 +11458,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -11489,7 +11489,7 @@ __metadata: release-it: ^15.10.1 rimraf: ^5.0.1 ts-jest: ^29.1.0 - typescript: ~5.1.6 + typescript: ^5.4.5 zod: ^3.22.4 zod-to-json-schema: ^3.22.3 languageName: unknown @@ -11552,7 +11552,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 languageName: unknown linkType: soft @@ -11586,7 +11586,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 languageName: unknown linkType: soft @@ -11620,7 +11620,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 languageName: unknown linkType: soft @@ -11720,7 +11720,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -11753,7 +11753,7 @@ __metadata: release-it: ^15.10.1 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 uuid: ^10.0.0 weaviate-ts-client: ^2.0.0 languageName: unknown @@ -11784,7 +11784,7 @@ __metadata: prettier: ^2.8.3 rollup: ^4.5.2 ts-jest: ^29.1.0 - typescript: <5.2.0 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -19123,7 +19123,7 @@ __metadata: react-dom: ^18 tailwindcss: ^3.3.0 typedoc: ^0.26.0 - typescript: ~5.1.6 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -21807,7 +21807,7 @@ __metadata: picocolors: ^1.0.0 prettier: ^2.8.3 prompts: ^2.4.2 - typescript: ~5.1.6 + typescript: ^5.4.5 update-check: ^1.5.4 validate-npm-package-name: ^5.0.0 bin: @@ -24969,7 +24969,7 @@ __metadata: sqlite3: ^5.1.4 tsx: ^3.12.3 typeorm: ^0.3.20 - typescript: ~5.1.6 + typescript: ^5.4.5 typesense: ^1.5.3 uuid: ^10.0.0 vectordb: ^0.1.4 @@ -30316,7 +30316,7 @@ __metadata: srt-parser-2: ^1.2.3 ts-jest: ^29.1.0 typeorm: ^0.3.20 - typescript: ~5.1.6 + typescript: ^5.4.5 uuid: ^10.0.0 weaviate-ts-client: ^2.0.0 web-auth-library: ^1.0.3 @@ -30500,7 +30500,7 @@ __metadata: prettier: ^2.8.3 semver: ^7.5.4 turbo: ^1.13.3 - typescript: ~5.1.6 + typescript: ^5.4.5 languageName: unknown linkType: soft @@ -39014,16 +39014,6 @@ __metadata: languageName: node linkType: hard -"typescript@npm:<5.2.0, typescript@npm:~5.1.6": - version: 5.1.6 - resolution: "typescript@npm:5.1.6" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: b2f2c35096035fe1f5facd1e38922ccb8558996331405eb00a5111cc948b2e733163cc22fab5db46992aba7dd520fff637f2c1df4996ff0e134e77d3249a7350 - languageName: node - linkType: hard - "typescript@npm:^4.9.4": version: 4.9.5 resolution: "typescript@npm:4.9.5" @@ -39064,16 +39054,6 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@<5.2.0#~builtin, typescript@patch:typescript@~5.1.6#~builtin": - version: 5.1.6 - resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin::version=5.1.6&hash=1f5320" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 21e88b0a0c0226f9cb9fd25b9626fb05b4c0f3fddac521844a13e1f30beb8f14e90bd409a9ac43c812c5946d714d6e0dee12d5d02dfc1c562c5aacfa1f49b606 - languageName: node - linkType: hard - "typescript@patch:typescript@^4.9.4#~builtin": version: 4.9.5 resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=23ec76"