From cda3e09d42c32b65c478c69c51daee2bee5dbeb6 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 24 Jul 2024 06:05:29 +0000 Subject: [PATCH] fix: upgrade langchain from 0.2.5 to 0.2.8 Snyk has created this PR to upgrade langchain from 0.2.5 to 0.2.8. See this package in npm: langchain See this project in Snyk: https://app.snyk.io/org/prathik2401/project/11631ac9-6f0c-4c9c-99a3-dfe284d826ff?utm_source=github&utm_medium=referral&page=upgrade-pr --- package-lock.json | 43 ++++++++++++++++++++++++++++--------------- package.json | 2 +- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 03e9149..e389553 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@langchain/core": "^0.2.8", "@langchain/google-genai": "^0.0.20", "@prisma/client": "^5.15.1", - "langchain": "^0.2.5", + "langchain": "^0.2.8", "next": "14.2.3", "react": "^18", "react-dom": "^18", @@ -926,21 +926,21 @@ } }, "node_modules/@langchain/core": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.8.tgz", - "integrity": "sha512-OCho08UR07ET/dD+7cIkpX6Hz3j4u7Df8wxzvkScSiK/pvmtJogrWLj9Xsjfk+Px/pkMyRRBfG2BCf7SIkbAaQ==", + "version": "0.2.18", + "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.18.tgz", + "integrity": "sha512-ru542BwNcsnDfjTeDbIkFIchwa54ctHZR+kVrC8U9NPS9/36iM8p8ruprOV7Zccj/oxtLE5UpEhV+9MZhVcFlA==", "license": "MIT", "dependencies": { "ansi-styles": "^5.0.0", "camelcase": "6", "decamelize": "1.2.0", "js-tiktoken": "^1.0.12", - "langsmith": "~0.1.30", + "langsmith": "~0.1.39", "ml-distance": "^4.0.0", "mustache": "^4.2.0", "p-queue": "^6.6.2", "p-retry": "4", - "uuid": "^9.0.0", + "uuid": "^10.0.0", "zod": "^3.22.4", "zod-to-json-schema": "^3.22.3" }, @@ -960,6 +960,19 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/@langchain/core/node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/@langchain/google-genai": { "version": "0.0.20", "resolved": "https://registry.npmjs.org/@langchain/google-genai/-/google-genai-0.0.20.tgz", @@ -5699,13 +5712,13 @@ } }, "node_modules/langchain": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.2.5.tgz", - "integrity": "sha512-H5WL0NanCdQ+tzoeEt7Fyz9YGdR3wbfDvfQrJvxAO95istKo5JraRh24dzyvqxM9439xwRMNaMIpMwsyqtWDtQ==", + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.2.8.tgz", + "integrity": "sha512-kb2IOMA71xH8e6EXFg0l4S+QSMC/c796pj1+7mPBkR91HHwoyHZhFRrBaZv4tV+Td+Ba91J2uEDBmySklZLpNQ==", "license": "MIT", "dependencies": { - "@langchain/core": "~0.2.0", - "@langchain/openai": "~0.1.0", + "@langchain/core": ">=0.2.9 <0.3.0", + "@langchain/openai": ">=0.1.0 <0.3.0", "@langchain/textsplitters": "~0.0.0", "binary-extensions": "^2.2.0", "js-tiktoken": "^1.0.12", @@ -5768,7 +5781,7 @@ "redis": "^4.6.4", "sonix-speech-recognition": "^2.1.1", "srt-parser-2": "^1.2.3", - "typeorm": "^0.3.12", + "typeorm": "^0.3.20", "weaviate-ts-client": "*", "web-auth-library": "^1.0.3", "ws": "^8.14.2", @@ -5935,9 +5948,9 @@ "license": "MIT" }, "node_modules/langsmith": { - "version": "0.1.32", - "resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.32.tgz", - "integrity": "sha512-EUWHIH6fiOCGRYdzgwGoXwJxCMyUrL+bmUcxoVmkXoXoAGDOVinz8bqJLKbxotsQWqM64NKKsW85OTIutgNaMQ==", + "version": "0.1.39", + "resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.39.tgz", + "integrity": "sha512-K2/qbc96JhrZbSL74RbZ0DBOpTB9Mxicu8RQrZ88Xsp1bH2O3+y5EdcvC0g/1YzQWQhcQ4peknCA24c3VTNiNA==", "license": "MIT", "dependencies": { "@types/uuid": "^9.0.1", diff --git a/package.json b/package.json index 67517a9..29f45b1 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@langchain/core": "^0.2.8", "@langchain/google-genai": "^0.0.20", "@prisma/client": "^5.15.1", - "langchain": "^0.2.5", + "langchain": "^0.2.8", "next": "14.2.3", "react": "^18", "react-dom": "^18",