Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update dependency com.google.cloud:google-cloud-firestore-bom to v2 #839

Conversation

renovate-bot
Copy link
Contributor

This PR contains the following updates:

Package Update Change
com.google.cloud:google-cloud-firestore-bom major 1.35.2 -> 2.0.0

Release Notes

googleapis/java-firestore

v2.0.0

Compare Source

New Features
Query Partition API

New API and backend RPC which allows for fetching a set of cursor keys for a
Collection Group Query. Accessible via the new CollectionGroup#getPartitions(long,ApiStreamObserver) method.

Read-Only Transaction Options

TransactionOptions
has been refactored to provide the ability to configure options for read-only
transactions along with the existing configuration for read-write transactions.

This new ability is provided via the new TransactionOptions.createReadOnlyOptionsBuilder()
type safe builder.

Along with the new type safe builder for read-only options, there is a new type
safe builder for read-write options as well accessible via TransactionOptions.createReadWriteOptionsBuilder(). Each of the existing TransactionOptions.create(...)
methods for configuring read-write options has been deprecated in favor of the new builder.

EmulatorCredentials

com.google.cloud.firestore.FirestoreOptions.Builder.FakeCredentials has been
made static and renamed to com.google.cloud.firestore.FirestoreOptions.EmulatorCredentials
allowing instantiation outside FirestoreOptions.Builder.

When connecting to the Cloud Firestore Emulator via FirestoreOptions rather than
the environment variable FIRESTORE_EMULATOR_HOST, a custom credential implementation
must be specified to allow various admin operations in the emulator. Previously
this required users to create their own implementation due to it not being
possible to construct a FakeCredential. As part of this change, EmulatorCredentials
is static and therefore able to be constructed from any location.

Breaking Changes
New Firestore Admin Client API Artifact

The Cloud Firestore Admin Client has been migrated to its own maven artifact com.google.cloud:google-cloud-firestore-admin
rather than being bundled in com.google.cloud:google-cloud-firestore. All
packages and classes have retained their existing names.

The new artifact is included in the com.google.cloud:google-cloud-firestore-bom,
com.google.cloud:google-cloud-bom and com.google.cloud:libraries-bom
artifacts and is accessible by adding the new dependency to your pom.xml file:

<dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-firestore-admin</artifactId>
</dependency>
Removal of v1beta1

Cloud Firestore has been GA for some time now, and the google-cloud-firestore
code base has been using the protos and generated classes for the v1 api since
that time. As such, we will no longer be publishing artifacts for the deprecated
v1beta1 protos. All functionality from v1beta1 is present in v1, and all users
should update any code to use v1.

Removal of support for java.util.Date in Snapshots

It is no longer possible to configure the ability for java.util.Date to be
returned from DocumentSnapshot.get(FieldPath) or DocumentSnapshot.getData()
for properties which are stored as Timestamps in Cloud Firestore.

The default behavior has been to return com.google.cloud.Timestamp by default
for some time, and is now the only option. Any code that is dependent on the old
behavior must be updated to use Timestamps instead of Date.

Laundry List of Pull Requests
⚠ BREAKING CHANGES
  • add support for the Query Partition API (#​202)
    • Firestore#collectionGroup(...) has a new return type CollectionGroup
      which requires any code that previously used the method be re-compiled to
      pick up the new signature. CollectionGroup extends Query and as such
      does not require your code to be updated, only the compiled class files.
  • move FirestoreAdminClient and associated classes to new artifact google-cloud-firestore-admin (#​311)
  • remove deprecated v1beta1 protos and grpc client (#​305)
  • remove deprecated FirestoreOptions#setTimestampsInSnapshotsEnabled (#​308)
  • remove deprecated getCollections() methods (#​307)
  • various renames due to generator changes
Features
  • add support for read-only transactions in TransactionOptions (#​320) (c25dca3)
  • add support for the Query Partition API (#​202) (3996548)
Bug Fixes
Dependencies
  • update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.5 (#​322) (1b21350)
  • update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 (#​324) (b945fdb)
  • update jackson dependencies to v2.11.2 (#​314) (15d68cd)
Miscellaneous Chores

Renovate configuration

📅 Schedule: 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 has been generated by WhiteSource Renovate. View repository job log here.

@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 14, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 14, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 14, 2020
@BenWhitehead BenWhitehead merged commit fe3444c into googleapis:master Aug 14, 2020
@renovate-bot renovate-bot deleted the renovate/com.google.cloud-google-cloud-firestore-bom-2.x branch August 14, 2020 16:58
gcf-merge-on-green bot pushed a commit that referenced this pull request Aug 25, 2020
🤖 I have created a release \*beep\* \*boop\* 
---
## [0.134.0](https://github.com/googleapis/java-cloud-bom/compare/0.133.0...v0.134.0) (2020-08-25)


### Features

* dashboard search additions, all versions page, stylistic changes ([#803](https://github.com/googleapis/java-cloud-bom/issues/803)) ([2e9222d](https://github.com/googleapis/java-cloud-bom/commit/2e9222daa325f8293d2b9f115431c53c2453a9e3))
* dashboard updates ([#843](https://github.com/googleapis/java-cloud-bom/issues/843)) ([2e0a7b2](https://github.com/googleapis/java-cloud-bom/commit/2e0a7b26fee295bd6480c589336503105d6fe134))


### Bug Fixes

* temporarily disable reporting to unblock releases ([#853](https://github.com/googleapis/java-cloud-bom/issues/853)) ([1bf04a0](https://github.com/googleapis/java-cloud-bom/commit/1bf04a04b918add9209f5c1bc891f6a3f73e70eb))


### Dependencies

* update dependency com.google.cloud:google-cloud-bigquery to v1.117.0 ([#854](https://github.com/googleapis/java-cloud-bom/issues/854)) ([5074082](https://github.com/googleapis/java-cloud-bom/commit/507408245dbc2d84d19a8a7d5da6bb7160fe03d1))
* update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v1.5.0 ([#851](https://github.com/googleapis/java-cloud-bom/issues/851)) ([4f04229](https://github.com/googleapis/java-cloud-bom/commit/4f042299fcca990e23d40611aa0fd70d787514f0))
* update dependency com.google.cloud:google-cloud-document-ai-bom to v0.2.1 ([#836](https://github.com/googleapis/java-cloud-bom/issues/836)) ([3173e08](https://github.com/googleapis/java-cloud-bom/commit/3173e08d8fdc67ffcb52cfef24a907a16ec1b657))
* update dependency com.google.cloud:google-cloud-firestore-bom to v2 ([#839](https://github.com/googleapis/java-cloud-bom/issues/839)) ([fe3444c](https://github.com/googleapis/java-cloud-bom/commit/fe3444c179dcc63a3d84c3f1994985d334f44de3))
* update dependency com.google.cloud:google-cloud-monitoring-bom to v2.0.1 ([#841](https://github.com/googleapis/java-cloud-bom/issues/841)) ([d181ad1](https://github.com/googleapis/java-cloud-bom/commit/d181ad1987dbc9e1b6cb14e2764d249098f580d5))
* update dependency com.google.cloud:google-cloud-securitycenter-bom to v1.2.0 ([#837](https://github.com/googleapis/java-cloud-bom/issues/837)) ([e2172d8](https://github.com/googleapis/java-cloud-bom/commit/e2172d8dd322f0bb7c248bacf772c00cc70a2a8d))
* update dependency com.google.cloud:google-cloud-vision-bom to v1.100.0 ([#838](https://github.com/googleapis/java-cloud-bom/issues/838)) ([59566d3](https://github.com/googleapis/java-cloud-bom/commit/59566d313ecb366955f77e150c269e83ec51c99a))
* update dependency com.google.cloud.tools:dependencies to v1.5.1 ([#848](https://github.com/googleapis/java-cloud-bom/issues/848)) ([e355d4f](https://github.com/googleapis/java-cloud-bom/commit/e355d4f7acb7e5d5c55730947ff4c90672eb5d2b))
* update dependency com.google.cloud.tools:dependencies-parent to v1.5.1 ([#849](https://github.com/googleapis/java-cloud-bom/issues/849)) ([72161f8](https://github.com/googleapis/java-cloud-bom/commit/72161f8d62bad8607cc36dc7705ede35d7f23014))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants