Skip to content

Commit

Permalink
update package version
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Dec 9, 2024
1 parent 362f626 commit 1305e9d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/langchain-azure-cosmosdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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<Document>,
},
{ upsert: true }
);
Expand Down
52 changes: 51 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 1305e9d

Please sign in to comment.