Skip to content

Commit

Permalink
test: Removed transitive deps from versioned tests as they will auto-…
Browse files Browse the repository at this point in the history
…install if required as peer deps (#2580)
  • Loading branch information
bizob2828 authored Sep 16, 2024
1 parent e8ae942 commit 0db6599
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 52 deletions.
4 changes: 0 additions & 4 deletions test/versioned/aws-sdk-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
"node": ">=18.0"
},
"dependencies": {
"aws-sdk": {
"versions": ">=2.463.0",
"samples": 10
},
"amazon-dax-client": ">=1.2.5"
},
"files": [
Expand Down
14 changes: 2 additions & 12 deletions test/versioned/aws-sdk-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{"name": "@aws-sdk/client-dynamodb", "minAgentVersion": "8.7.1"},
{"name": "@aws-sdk/lib-dynamodb", "minAgentVersion": "8.7.1"},
{"name": "@aws-sdk/smithy-client", "minAgentVersion": "8.7.1"},
{"name": "@smithy/smithy-client", "minAgentVersion": "11.0.0"},
{"name": "@smithy/smithy-client", "minSupported": "3.47.0", "minAgentVersion": "11.0.0"},
{"name": "@aws-sdk/client-bedrock-runtime", "minAgentVersion": "11.13.0"}
],
"version": "0.0.0",
Expand Down Expand Up @@ -149,10 +149,6 @@
"@aws-sdk/client-sns": {
"versions": ">=3.0.0 <=3.193.0 || >3.196.0 <3.377.0 || >3.377.0 ",
"samples": 10
},
"@aws-sdk/smithy-client": {
"versions": ">=3.47.0 <3.370.0",
"samples": 1
}
},
"files": [
Expand Down Expand Up @@ -192,8 +188,6 @@
"node": ">=18.0"
},
"dependencies": {
"@aws-sdk/util-dynamodb": "latest",
"@aws-sdk/client-dynamodb": "latest",
"@aws-sdk/lib-dynamodb": {
"versions": ">3.377.0 ",
"samples": 10
Expand All @@ -208,11 +202,7 @@
"node": ">=18.0"
},
"dependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.474.0",
"@smithy/smithy-client": {
"versions": ">=2.0.0",
"samples": 1
}
"@aws-sdk/client-bedrock-runtime": ">=3.474.0"
},
"files": [
"bedrock-chat-completions.tap.js",
Expand Down
20 changes: 1 addition & 19 deletions test/versioned/grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,7 @@
"node": ">=18"
},
"dependencies": {
"@grpc/grpc-js": ">=1.4.0 <1.8.0"
},
"files": [
"client-unary.tap.js",
"client-streaming.tap.js",
"client-server-streaming.tap.js",
"client-bidi-streaming.tap.js",
"server-unary.tap.js",
"server-client-streaming.tap.js",
"server-streaming.tap.js",
"server-bidi-streaming.tap.js"
]
},
{
"engines": {
"node": ">=18"
},
"dependencies": {
"@grpc/grpc-js": ">=1.8.0"
"@grpc/grpc-js": ">=1.4.0"
},
"files": [
"client-unary.tap.js",
Expand Down
15 changes: 6 additions & 9 deletions test/versioned/langchain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langchain-tests",
"targets": [{"name":"@langchain/core","minAgentVersion":"11.13.0"}],
"targets": [{"name":"@langchain/core","minSupported": "0.1.17", "minAgentVersion":"11.13.0"}],
"version": "0.0.0",
"private": true,
"engines": {
Expand All @@ -11,9 +11,9 @@
"engines": {
"node": ">=18"
},
"comment": "This is implicitly testing `@langchain/core` as it's a peer dep",
"dependencies": {
"@langchain/core": ">=0.1.17",
"@langchain/openai": "0.0.34"
"@langchain/openai": ">=0.0.34"
},
"files": [
"tools.tap.js",
Expand All @@ -25,16 +25,13 @@
"engines": {
"node": ">=18"
},
"comment": "Using latest of `@langchain/openai` only as it is being used to seed embeddings, nothing to test that hasn't been done in the above stanza",
"dependencies": {
"@langchain/core": ">=0.1.17",
"@langchain/openai": "0.0.34",
"@langchain/community": "0.2.2",
"@langchain/openai": "latest",
"@langchain/community": ">=0.2.2",
"@elastic/elasticsearch": "8.13.1"
},
"files": [
"tools.tap.js",
"runnables.tap.js",
"runnables-streaming.tap.js",
"vectorstore.tap.js"
]
}
Expand Down
8 changes: 2 additions & 6 deletions test/versioned/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"node": ">=18"
},
"dependencies": {
"next": ">=13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0"
"next": ">=13.4.19"
},
"files": [
"app-dir.tap.js"
Expand All @@ -22,9 +20,7 @@
"node": ">=18"
},
"dependencies": {
"next": ">=14.0.0",
"react": "18.2.0",
"react-dom": "18.2.0"
"next": ">=14.0.0"
},
"files": [
"attributes.tap.js",
Expand Down
3 changes: 1 addition & 2 deletions test/versioned/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"node": ">=18"
},
"dependencies": {
"@prisma/client": ">=5.0.0 <5.9.0 || >=5.9.1",
"prisma": "latest"
"@prisma/client": ">=5.0.0 <5.9.0 || >=5.9.1"
},
"files": [
"prisma.tap.js"
Expand Down

0 comments on commit 0db6599

Please sign in to comment.