Skip to content

Commit

Permalink
fix(community): Relax community deps (#7464)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Jan 2, 2025
1 parent 074681c commit d0fb84f
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 56 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@tensorflow/tfjs-backend-cpu": "^4.4.0",
"@upstash/redis": "^1.32.0",
"@upstash/vector": "^1.1.1",
"@vercel/kv": "^0.2.3",
"@vercel/kv": "^3.0.0",
"@xata.io/client": "^0.28.0",
"@zilliz/milvus2-sdk-node": "^2.3.5",
"axios": "^0.26.0",
Expand Down
8 changes: 4 additions & 4 deletions libs/langchain-community/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@
"@upstash/ratelimit": "^2.0.3",
"@upstash/redis": "^1.32.0",
"@upstash/vector": "^1.1.1",
"@vercel/kv": "^0.2.3",
"@vercel/postgres": "^0.5.0",
"@vercel/kv": "^3.0.0",
"@vercel/postgres": "^0.10.0",
"@writerai/writer-sdk": "^0.40.2",
"@xata.io/client": "^0.28.0",
"@zilliz/milvus2-sdk-node": ">=2.3.5",
Expand Down Expand Up @@ -281,8 +281,8 @@
"@upstash/ratelimit": "^1.1.3 || ^2.0.3",
"@upstash/redis": "^1.20.6",
"@upstash/vector": "^1.1.1",
"@vercel/kv": "^0.2.3",
"@vercel/postgres": "^0.5.0",
"@vercel/kv": "*",
"@vercel/postgres": "*",
"@writerai/writer-sdk": "^0.40.2",
"@xata.io/client": "^0.28.0",
"@zilliz/milvus2-sdk-node": ">=2.3.5",
Expand Down
3 changes: 2 additions & 1 deletion libs/langchain-community/src/storage/vercel_kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export class VercelKVStore extends BaseStore<string, Uint8Array> {
for (const key of batch) {
yield this._getDeprefixedKey(key);
}
while (cursor !== 0) {
// Backwards compatibility for older @vercel/kv versions
while (String(cursor) !== "0") {
[cursor, batch] = await this.client.scan(cursor, {
match: pattern,
count: this.yieldKeysScanBatchSize,
Expand Down
100 changes: 50 additions & 50 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11946,8 +11946,8 @@ __metadata:
"@upstash/ratelimit": ^2.0.3
"@upstash/redis": ^1.32.0
"@upstash/vector": ^1.1.1
"@vercel/kv": ^0.2.3
"@vercel/postgres": ^0.5.0
"@vercel/kv": ^3.0.0
"@vercel/postgres": ^0.10.0
"@writerai/writer-sdk": ^0.40.2
"@xata.io/client": ^0.28.0
"@zilliz/milvus2-sdk-node": ">=2.3.5"
Expand Down Expand Up @@ -12103,8 +12103,8 @@ __metadata:
"@upstash/ratelimit": ^1.1.3 || ^2.0.3
"@upstash/redis": ^1.20.6
"@upstash/vector": ^1.1.1
"@vercel/kv": ^0.2.3
"@vercel/postgres": ^0.5.0
"@vercel/kv": "*"
"@vercel/postgres": "*"
"@writerai/writer-sdk": ^0.40.2
"@xata.io/client": ^0.28.0
"@zilliz/milvus2-sdk-node": ">=2.3.5"
Expand Down Expand Up @@ -13662,15 +13662,6 @@ __metadata:
languageName: node
linkType: hard

"@neondatabase/serverless@npm:0.6.0":
version: 0.6.0
resolution: "@neondatabase/serverless@npm:0.6.0"
dependencies:
"@types/pg": 8.6.6
checksum: 25b81ba6b37e0ac56a746a1219de6107dd74d6f2d093bc23dc33b6fb8f33d00f80cb37eb0648afacd32ab0020b20c1809e3ec6e5c34d23fa21ae5b76d6041332
languageName: node
linkType: hard

"@neondatabase/serverless@npm:^0.9.1":
version: 0.9.1
resolution: "@neondatabase/serverless@npm:0.9.1"
Expand All @@ -13680,6 +13671,15 @@ __metadata:
languageName: node
linkType: hard

"@neondatabase/serverless@npm:^0.9.3":
version: 0.9.5
resolution: "@neondatabase/serverless@npm:0.9.5"
dependencies:
"@types/pg": 8.11.6
checksum: b53c4b21c6eaf995a12bd84adf2c839022b7eb8b216cb07319a784a6f60965cf9ae497560a2aa767f5f8a407f1a45783f13b9f9e8f5c2078118a6a5ae174fdb2
languageName: node
linkType: hard

"@next/env@npm:14.0.1":
version: 14.0.1
resolution: "@next/env@npm:14.0.1"
Expand Down Expand Up @@ -19859,6 +19859,17 @@ __metadata:
languageName: node
linkType: hard

"@types/pg@npm:8.11.6":
version: 8.11.6
resolution: "@types/pg@npm:8.11.6"
dependencies:
"@types/node": "*"
pg-protocol: "*"
pg-types: ^4.0.1
checksum: 231f7e5bfe8b4d14cca398d24cd55f4f14f582f815b62059e6f3ee74108cf92089fbd946568ebc35fa402f238ed9c8a8c1e10e7084e83e4ca3aff75957243014
languageName: node
linkType: hard

"@types/pg@npm:8.6.6":
version: 8.6.6
resolution: "@types/pg@npm:8.6.6"
Expand Down Expand Up @@ -20829,15 +20840,6 @@ __metadata:
languageName: node
linkType: hard

"@upstash/redis@npm:1.22.0":
version: 1.22.0
resolution: "@upstash/redis@npm:1.22.0"
dependencies:
isomorphic-fetch: ^3.0.0
checksum: 894b7d4e318c55fdcbf0f322efd9ace94a37f1b8f9d7cb2cdf8b8b4859814379665c7e00feef3565578455d98492710d14ed4a2b043ec412b5d640a4d5a2dd55
languageName: node
linkType: hard

"@upstash/redis@npm:^1.28.3":
version: 1.31.1
resolution: "@upstash/redis@npm:1.31.1"
Expand All @@ -20856,19 +20858,28 @@ __metadata:
languageName: node
linkType: hard

"@upstash/redis@npm:^1.34.0":
version: 1.34.3
resolution: "@upstash/redis@npm:1.34.3"
dependencies:
crypto-js: ^4.2.0
checksum: 4c738eb82e3d8906999345379ff0c96913627cdf96ec54b6880fa8fb5616331a92228b889c076b4a93bee4bb31324f5afa68aa927fb751d308fc83464de68e79
languageName: node
linkType: hard

"@upstash/vector@npm:^1.1.1":
version: 1.1.1
resolution: "@upstash/vector@npm:1.1.1"
checksum: 2eeaa655b46d9182dfdb5e12ff58654e820df18e7b03e8cfff2795cbdb370cc7652a198638f36e8f29dab3e6a67004cda693b62e0885dc87472a08f908ffe0e6
languageName: node
linkType: hard

"@vercel/kv@npm:^0.2.3":
version: 0.2.3
resolution: "@vercel/kv@npm:0.2.3"
"@vercel/kv@npm:^3.0.0":
version: 3.0.0
resolution: "@vercel/kv@npm:3.0.0"
dependencies:
"@upstash/redis": 1.22.0
checksum: 3a2b1e3a0ebf605b69341b449bd81edde94f9d00393cc6971759b950c90cff782e1e4fa5daf672f4769aa8301e00f7b7fdec07cdd98d40530652d83c043125ed
"@upstash/redis": ^1.34.0
checksum: 5bebab15c770e32409c03054dbd58e3e5a4d77d1a813c91e6613a9382a96b391878b67a1e2fbe8f7e197899a2dc589212ee6f6b11ab272798954e63816c6eba1
languageName: node
linkType: hard

Expand All @@ -20883,15 +20894,14 @@ __metadata:
languageName: node
linkType: hard

"@vercel/postgres@npm:^0.5.0":
version: 0.5.0
resolution: "@vercel/postgres@npm:0.5.0"
"@vercel/postgres@npm:^0.10.0":
version: 0.10.0
resolution: "@vercel/postgres@npm:0.10.0"
dependencies:
"@neondatabase/serverless": 0.6.0
bufferutil: 4.0.7
utf-8-validate: 6.0.3
ws: 8.14.2
checksum: 9fe0f496753a481d06566e7b846956c2129af081080f6618a4f9f8efb90ae53cc2aa1b3598a95ecc04f612b0ffdfcfffd20921fd1187fdc3db99b35d24b73a3f
"@neondatabase/serverless": ^0.9.3
bufferutil: ^4.0.8
ws: ^8.17.1
checksum: 45c29baa73bed4b07a5c06ae283647d43c89d843ebd3cb4864b59ec4217ef5d24832e569cd08d61f8b7875522fc207bb364547ea7e9423dd37521fba24ccec20
languageName: node
linkType: hard

Expand Down Expand Up @@ -22816,13 +22826,13 @@ __metadata:
languageName: node
linkType: hard

"bufferutil@npm:4.0.7":
version: 4.0.7
resolution: "bufferutil@npm:4.0.7"
"bufferutil@npm:^4.0.8":
version: 4.0.9
resolution: "bufferutil@npm:4.0.9"
dependencies:
node-gyp: latest
node-gyp-build: ^4.3.0
checksum: f75aa87e3d1b99b87a95f60a855e63f70af07b57fb8443e75a2ddfef2e47788d130fdd46e3a78fd7e0c10176082b26dfbed970c5b8632e1cc299cafa0e93ce45
checksum: 51ce9ee19bc4b72c2eb9f9a231dd95e786ca5a00a6bdfcae83f1d5cd8169301c79245ce96913066a5a1bbe45c44e95bc5a1761a18798b835585c1a05af65b209
languageName: node
linkType: hard

Expand Down Expand Up @@ -27822,7 +27832,7 @@ __metadata:
"@typescript-eslint/parser": ^5.51.0
"@upstash/redis": ^1.32.0
"@upstash/vector": ^1.1.1
"@vercel/kv": ^0.2.3
"@vercel/kv": ^3.0.0
"@xata.io/client": ^0.28.0
"@zilliz/milvus2-sdk-node": ^2.3.5
axios: ^0.26.0
Expand Down Expand Up @@ -43581,16 +43591,6 @@ __metadata:
languageName: node
linkType: hard

"utf-8-validate@npm:6.0.3":
version: 6.0.3
resolution: "utf-8-validate@npm:6.0.3"
dependencies:
node-gyp: latest
node-gyp-build: ^4.3.0
checksum: 5e21383c81ff7469c1912119ca69d07202d944c73ddd8a54b84dddcc546b939054e5101c78c294e494d206fe93bd43428adc635a0660816b3ec9c8ec89286ac4
languageName: node
linkType: hard

"util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1":
version: 1.0.2
resolution: "util-deprecate@npm:1.0.2"
Expand Down

0 comments on commit d0fb84f

Please sign in to comment.