From 1305e9dc457f58d2ab863070cf336b2da5b66cd1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Dec 2024 08:10:15 +0000 Subject: [PATCH] update package version --- libs/langchain-azure-cosmosdb/package.json | 2 +- .../chat_histories_azure_cosmosdb_mongodb.ts | 8 ++- yarn.lock | 52 ++++++++++++++++++- 3 files changed, 58 insertions(+), 4 deletions(-) diff --git a/libs/langchain-azure-cosmosdb/package.json b/libs/langchain-azure-cosmosdb/package.json index f908e942ee83..5389e1befa4b 100644 --- a/libs/langchain-azure-cosmosdb/package.json +++ b/libs/langchain-azure-cosmosdb/package.json @@ -34,7 +34,7 @@ "dependencies": { "@azure/cosmos": "^4.2.0", "@azure/identity": "^4.5.0", - "mongodb": "^6.3.0" + "mongodb": "^6.10.0" }, "peerDependencies": { "@langchain/core": ">=0.2.21 <0.4.0" diff --git a/libs/langchain-azure-cosmosdb/src/chat_histories_azure_cosmosdb_mongodb.ts b/libs/langchain-azure-cosmosdb/src/chat_histories_azure_cosmosdb_mongodb.ts index bd7ed6393154..ad85c3a8b502 100644 --- a/libs/langchain-azure-cosmosdb/src/chat_histories_azure_cosmosdb_mongodb.ts +++ b/libs/langchain-azure-cosmosdb/src/chat_histories_azure_cosmosdb_mongodb.ts @@ -1,4 +1,8 @@ -import { Collection, Document as AzureCosmosMongoDBDocument } from "mongodb"; +import { + Collection, + Document as AzureCosmosMongoDBDocument, + PushOperator, +} from "mongodb"; import { BaseListChatMessageHistory } from "@langchain/core/chat_history"; import { BaseMessage, @@ -42,7 +46,7 @@ export class AzureCosmosDBMongoChatMessageHistory extends BaseListChatMessageHis await this.collection.updateOne( { [this.idKey]: this.sessionId }, { - $push: { messages: { $each: messages } }, + $push: { messages: { $each: messages } } as PushOperator, }, { upsert: true } ); diff --git a/yarn.lock b/yarn.lock index c9622f6a4064..9199c735c85e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11568,7 +11568,7 @@ __metadata: eslint-plugin-prettier: ^4.2.1 jest: ^29.5.0 jest-environment-node: ^29.6.4 - mongodb: ^6.3.0 + mongodb: ^6.10.0 prettier: ^2.8.3 release-it: ^15.10.1 rollup: ^4.5.2 @@ -13491,6 +13491,15 @@ __metadata: languageName: node linkType: hard +"@mongodb-js/saslprep@npm:^1.1.9": + version: 1.1.9 + resolution: "@mongodb-js/saslprep@npm:1.1.9" + dependencies: + sparse-bitfield: ^3.0.3 + checksum: 6f13983e41c9fbd5273eeae9135e47e5b7a19125a63287bea69e33a618f8e034cfcf2258c77d0f5d6dcf386dfe2bb520bc01613afd1528c52f82c71172629242 + languageName: node + linkType: hard + "@mozilla/readability@npm:^0.4.4": version: 0.4.4 resolution: "@mozilla/readability@npm:0.4.4" @@ -22618,6 +22627,13 @@ __metadata: languageName: node linkType: hard +"bson@npm:^6.10.0": + version: 6.10.1 + resolution: "bson@npm:6.10.1" + checksum: 7c85c8df309bbfd4d42fae54aa37112ee048a89457be908a0e53a01d077d548c94a5a6870dd725ef48130da935286edc8b9ce04830869446db22b8c13a370c42 + languageName: node + linkType: hard + "bson@npm:^6.2.0": version: 6.2.0 resolution: "bson@npm:6.2.0" @@ -35032,6 +35048,40 @@ __metadata: languageName: node linkType: hard +"mongodb@npm:^6.10.0": + version: 6.11.0 + resolution: "mongodb@npm:6.11.0" + dependencies: + "@mongodb-js/saslprep": ^1.1.9 + bson: ^6.10.0 + mongodb-connection-string-url: ^3.0.0 + peerDependencies: + "@aws-sdk/credential-providers": ^3.188.0 + "@mongodb-js/zstd": ^1.1.0 + gcp-metadata: ^5.2.0 + kerberos: ^2.0.1 + mongodb-client-encryption: ">=6.0.0 <7" + snappy: ^7.2.2 + socks: ^2.7.1 + peerDependenciesMeta: + "@aws-sdk/credential-providers": + optional: true + "@mongodb-js/zstd": + optional: true + gcp-metadata: + optional: true + kerberos: + optional: true + mongodb-client-encryption: + optional: true + snappy: + optional: true + socks: + optional: true + checksum: cb677bdee565eb9e7cbc27e538d5fafe61312e8ccfc97d4e04fdbf282f03e566537d659394f3236b6f958392707924a7ecae86fcb038a2f8f47b8edafa6edf4d + languageName: node + linkType: hard + "mongodb@npm:^6.3.0": version: 6.3.0 resolution: "mongodb@npm:6.3.0"