Skip to content

fix(deps): update dependency google/cloud-firestore to v2#2196

Open
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/functions-firebase_firestore-google-cloud-firestore-2.x
Open

fix(deps): update dependency google/cloud-firestore to v2#2196
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/functions-firebase_firestore-google-cloud-firestore-2.x

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
google/cloud-firestore ^1.25^2.0 age confidence

Release Notes

googleapis/google-cloud-php-firestore (google/cloud-firestore)

v2.0.0: google/cloud-firestore v2.0.0

Compare Source

Miscellaneous Chores

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners April 9, 2026 23:30
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Apr 9, 2026
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 9, 2026
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 9, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the google/cloud-firestore dependency from version 1.25 to 2.0 in composer.json. The review feedback suggests moving this dependency to the require-dev section to optimize the Cloud Function's deployment size and cold start performance, as it is only utilized in deployment tests rather than the production code.

"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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants