Skip to content

Commit

Permalink
fix: made firebase-admin and firebase-functions peers deps more flexi…
Browse files Browse the repository at this point in the history
…ble (#1094)
  • Loading branch information
pavelgj authored Oct 22, 2024
1 parent 4d831e4 commit 624a090
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 318 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ js/testapps/firebase-functions-sample1/public/config.js
ui-debug.log
firebase-debug.log
**/*.env
.genkit
# RAG sample files
!js/testapps/rag/package.json
js/testapps/rag/*.json
Expand Down
4 changes: 2 additions & 2 deletions js/flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"body-parser": "^1.20.3",
"cors": "^2.8.5",
"express": "^4.21.0",
"firebase-admin": "^12.1.0",
"firebase-functions": "^4.8.0 || ^5.0.0",
"firebase-admin": ">=12.2",
"firebase-functions": ">=4.8",
"uuid": "^9.0.1",
"zod": "^3.22.4"
},
Expand Down
6 changes: 3 additions & 3 deletions js/plugins/firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"zod": "^3.22.4"
},
"peerDependencies": {
"@google-cloud/firestore": "^7.6.0",
"firebase-admin": "^12.2.0",
"firebase-functions": "^4.8.0 || ^5.0.0",
"@google-cloud/firestore": ">7.6",
"firebase-admin": ">=12.2",
"firebase-functions": ">=4.8",
"@genkit-ai/ai": "workspace:*",
"@genkit-ai/core": "workspace:*",
"@genkit-ai/flow": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion js/plugins/vertexai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
"optionalDependencies": {
"@google-cloud/bigquery": "^7.8.0",
"firebase-admin": "^12.1.0"
"firebase-admin": ">=12.2"
},
"devDependencies": {
"@types/node": "^20.11.16",
Expand Down
331 changes: 25 additions & 306 deletions js/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/testapps/cat-eval/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@genkit-ai/vertexai": "workspace:*",
"@google-cloud/firestore": "^7.9.0",
"@opentelemetry/sdk-trace-base": "^1.22.0",
"firebase-admin": "^12.3.0",
"firebase-admin": ">=12.2",
"genkitx-pinecone": "workspace:*",
"llm-chunk": "^0.0.1",
"pdf-parse": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion js/testapps/dev-ui-gallery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@genkit-ai/flow": "workspace:*",
"@genkit-ai/googleai": "workspace:*",
"@genkit-ai/vertexai": "workspace:*",
"firebase-admin": "^12.1.0",
"firebase-admin": ">=12.2",
"genkitx-chromadb": "workspace:*",
"genkitx-ollama": "workspace:*",
"genkitx-pinecone": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions js/testapps/firebase-functions-sample1/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@genkit-ai/firebase": "*",
"@genkit-ai/flow": "*",
"@genkit-ai/vertexai": "*",
"firebase-admin": "^11.8.0",
"firebase-functions": "^4.8.0 || ^5.0.0",
"firebase-admin": ">=12.2",
"firebase-functions": ">=4.8",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion js/testapps/flow-simple-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@genkit-ai/vertexai": "workspace:*",
"@google/generative-ai": "^0.15.0",
"@opentelemetry/sdk-trace-base": "^1.25.0",
"firebase-admin": "^12.1.0",
"firebase-admin": ">=12.2",
"partial-json": "^0.1.7",
"zod": "^3.22.4"
},
Expand Down
2 changes: 1 addition & 1 deletion js/testapps/vertexai-vector-search-firestore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@genkit-ai/vertexai": "workspace:*",
"dotenv": "^16.4.5",
"express": "^4.21.0",
"firebase-admin": "^12.1.0",
"firebase-admin": ">=12.2",
"genkitx-chromadb": "workspace:*",
"genkitx-langchain": "workspace:*",
"genkitx-pinecone": "workspace:*",
Expand Down

0 comments on commit 624a090

Please sign in to comment.