From 63bd7a4a22d0e77e9fce8b2a3f7e6ae0be42f1c5 Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Tue, 28 May 2024 18:13:15 -0700 Subject: [PATCH] langchain[patch],community[patch]: Loosen peer deps (#5583) * langchain[patch],community[patch]: Loosen peer deps * loosen more deps and cut community rc * cut rc for langchain and community again * drop unused google pkg from langchain --- langchain/langchain.config.js | 3 +-- langchain/package.json | 7 +------ libs/langchain-community/langchain.config.js | 1 + libs/langchain-community/package.json | 10 +++++----- yarn.lock | 14 +++++--------- 5 files changed, 13 insertions(+), 22 deletions(-) diff --git a/langchain/langchain.config.js b/langchain/langchain.config.js index fe5c9003a55f..1cd47cf5d1e8 100644 --- a/langchain/langchain.config.js +++ b/langchain/langchain.config.js @@ -26,8 +26,7 @@ export const config = { "notion-to-md/build/utils/notion.js", "firebase-admin/app", "firebase-admin/firestore", - "web-auth-library/google", - "@google-ai/generativelanguage/build/protos/protos.js", + "web-auth-library/google" ], entrypoints: { load: "load/index", diff --git a/langchain/package.json b/langchain/package.json index 5e5b14f3b933..b9955323c9a5 100644 --- a/langchain/package.json +++ b/langchain/package.json @@ -1,6 +1,6 @@ { "name": "langchain", - "version": "0.2.2", + "version": "0.2.3-rc.0", "description": "Typescript bindings for langchain", "type": "module", "engines": { @@ -600,7 +600,6 @@ "@faker-js/faker": "^7.6.0", "@gomomento/sdk": "^1.51.1", "@gomomento/sdk-core": "^1.51.1", - "@google-ai/generativelanguage": "^2.5.0", "@jest/globals": "^29.5.0", "@langchain/cohere": "^0.0.8", "@langchain/scripts": "~0.0.14", @@ -687,7 +686,6 @@ "@gomomento/sdk": "^1.51.1", "@gomomento/sdk-core": "^1.51.1", "@gomomento/sdk-web": "^1.51.1", - "@google-ai/generativelanguage": "^2.5.0", "@mendable/firecrawl-js": "^0.0.13", "@notionhq/client": "^2.2.10", "@pinecone-database/pinecone": "*", @@ -757,9 +755,6 @@ "@gomomento/sdk-web": { "optional": true }, - "@google-ai/generativelanguage": { - "optional": true - }, "@mendable/firecrawl-js": { "optional": true }, diff --git a/libs/langchain-community/langchain.config.js b/libs/langchain-community/langchain.config.js index 5a04dc556805..3809415a8897 100644 --- a/libs/langchain-community/langchain.config.js +++ b/libs/langchain-community/langchain.config.js @@ -27,6 +27,7 @@ export const config = { "pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js", "web-auth-library/google", "notion-to-md/build/utils/notion.js", + "@getzep/zep-cloud/api" ], entrypoints: { load: "load/index", diff --git a/libs/langchain-community/package.json b/libs/langchain-community/package.json index 7c6d7e8d67b1..4f13a63463ee 100644 --- a/libs/langchain-community/package.json +++ b/libs/langchain-community/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/community", - "version": "0.2.3", + "version": "0.2.4-rc.1", "description": "Third-party integrations for LangChain.js", "type": "module", "engines": { @@ -46,7 +46,7 @@ "expr-eval": "^2.0.2", "flat": "^5.0.2", "js-yaml": "^4.1.0", - "langchain": "~0.2.0", + "langchain": "0.2.3-rc.0", "langsmith": "~0.1.1", "uuid": "^9.0.0", "zod": "^3.22.3", @@ -233,11 +233,11 @@ "@datastax/astra-db-ts": "^1.0.0", "@elastic/elasticsearch": "^8.4.0", "@getmetal/metal-sdk": "*", - "@getzep/zep-cloud": "~1.0.0", + "@getzep/zep-cloud": "*", "@getzep/zep-js": "^0.9.0", "@gomomento/sdk": "^1.51.1", "@gomomento/sdk-core": "^1.51.1", - "@google-ai/generativelanguage": "^2.5.0", + "@google-ai/generativelanguage": "*", "@google-cloud/storage": "^6.10.1 || ^7.7.0", "@gradientai/nodejs-sdk": "^1.2.0", "@huggingface/inference": "^2.6.4", @@ -293,7 +293,7 @@ "epub2": "^3.0.1", "faiss-node": "^0.5.1", "firebase-admin": "^11.9.0 || ^12.0.0", - "google-auth-library": "^9.10.0", + "google-auth-library": "*", "googleapis": "^126.0.1", "hnswlib-node": "^3.0.0", "html-to-text": "^9.0.5", diff --git a/yarn.lock b/yarn.lock index 893c185426d5..82377ccfd808 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9195,7 +9195,7 @@ __metadata: js-yaml: ^4.1.0 jsdom: ^22.1.0 jsonwebtoken: ^9.0.2 - langchain: ~0.2.0 + langchain: 0.2.3-rc.0 langsmith: ~0.1.1 llmonitor: ^0.5.9 lodash: ^4.17.21 @@ -9254,11 +9254,11 @@ __metadata: "@datastax/astra-db-ts": ^1.0.0 "@elastic/elasticsearch": ^8.4.0 "@getmetal/metal-sdk": "*" - "@getzep/zep-cloud": ~1.0.0 + "@getzep/zep-cloud": "*" "@getzep/zep-js": ^0.9.0 "@gomomento/sdk": ^1.51.1 "@gomomento/sdk-core": ^1.51.1 - "@google-ai/generativelanguage": ^2.5.0 + "@google-ai/generativelanguage": "*" "@google-cloud/storage": ^6.10.1 || ^7.7.0 "@gradientai/nodejs-sdk": ^1.2.0 "@huggingface/inference": ^2.6.4 @@ -9314,7 +9314,7 @@ __metadata: epub2: ^3.0.1 faiss-node: ^0.5.1 firebase-admin: ^11.9.0 || ^12.0.0 - google-auth-library: ^9.10.0 + google-auth-library: "*" googleapis: ^126.0.1 hnswlib-node: ^3.0.0 html-to-text: ^9.0.5 @@ -27428,7 +27428,7 @@ __metadata: languageName: node linkType: hard -"langchain@workspace:*, langchain@workspace:langchain, langchain@~0.2.0": +"langchain@0.2.3-rc.0, langchain@workspace:*, langchain@workspace:langchain": version: 0.0.0-use.local resolution: "langchain@workspace:langchain" dependencies: @@ -27443,7 +27443,6 @@ __metadata: "@faker-js/faker": ^7.6.0 "@gomomento/sdk": ^1.51.1 "@gomomento/sdk-core": ^1.51.1 - "@google-ai/generativelanguage": ^2.5.0 "@jest/globals": ^29.5.0 "@langchain/cohere": ^0.0.8 "@langchain/core": ~0.2.0 @@ -27545,7 +27544,6 @@ __metadata: "@gomomento/sdk": ^1.51.1 "@gomomento/sdk-core": ^1.51.1 "@gomomento/sdk-web": ^1.51.1 - "@google-ai/generativelanguage": ^2.5.0 "@mendable/firecrawl-js": ^0.0.13 "@notionhq/client": ^2.2.10 "@pinecone-database/pinecone": "*" @@ -27605,8 +27603,6 @@ __metadata: optional: true "@gomomento/sdk-web": optional: true - "@google-ai/generativelanguage": - optional: true "@mendable/firecrawl-js": optional: true "@notionhq/client":