Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/firebase_firestore/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"google/cloud-functions-framework": "^1.0.0",
"google/cloud-firestore": "^1.25"
"google/cloud-firestore": "^2.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The google/cloud-firestore dependency is only used in the deployment tests (DeployTest.php) and not in the actual function code (index.php). To optimize the Cloud Function's deployment size and cold start performance, this dependency should be moved from the require section to require-dev. Additionally, note that version 2.0 of this library requires PHP 8.0 or higher. If the function is intended to run on older PHP runtimes, this upgrade might cause compatibility issues unless the dependency is moved to require-dev (ensuring it is not installed in the production environment).

},
"scripts": {
"start": [
Expand Down
Loading