FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: release 2.0.0 by release-please[bot] · Pull Request #309 · googleapis/java-firestore · GitHub

This repository was archived by the owner on May 8, 2026. It is now read-only.
/ java-firestore Public archive

chore: release 2.0.0 - #309

Merged
gcf-merge-on-green[bot] merged 16 commits into
masterfrom
release-v2.0.0
Aug 14, 2020
Merged

chore: release 2.0.0#309
gcf-merge-on-green[bot] merged 16 commits into
masterfrom
release-v2.0.0

Conversation

release-please Bot commented Jul 23, 2020
edited by BenWhitehead
Loading

Copy link
Copy Markdown
Contributor

🤖 I have created a release *beep* *boop*

2.0.0 (2020-08-14)

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

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

  • enable gapicv2 (#188) (92224bc)
  • move FirestoreAdminClient and associated classes to new artifact google-cloud-firestore-admin (#311) (03ef755)
  • remove deprecated FirestoreOptions#setTimestampsInSnapshotsEnabled (#308) (7255a42)
  • remove deprecated getCollections() methods (#307) (bb4ddf1)
  • remove deprecated v1beta1 protos and grpc client (#305) (96adacb)
  • add BulkWriter (#323) (e7054df)
  • make BulkWriter package private (#330) (ef0869a)

This PR was generated with Release Please.

google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 23, 2020

codecov Bot commented Jul 23, 2020
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #309 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #309   +/-   ##
=========================================
  Coverage     72.75%   72.75%           
- Complexity     1044     1053    +9     
=========================================
  Files            64       64           
  Lines          5512     5512           
  Branches        681      679    -2     
=========================================
  Hits           4010     4010           
  Misses         1289     1289           
  Partials        213      213           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef0869a...e2727d2. Read the comment docs.

release-please Bot closed this Jul 27, 2020
release-please Bot reopened this Jul 27, 2020
release-please Bot closed this Jul 28, 2020
release-please Bot reopened this Jul 28, 2020
release-please Bot closed this Jul 31, 2020
release-please Bot reopened this Jul 31, 2020
release-please Bot closed this Aug 3, 2020
release-please Bot reopened this Aug 3, 2020
release-please Bot closed this Aug 4, 2020
release-please Bot reopened this Aug 4, 2020
release-please Bot closed this Aug 6, 2020
release-please Bot reopened this Aug 6, 2020
release-please Bot closed this Aug 7, 2020
release-please Bot reopened this Aug 7, 2020
release-please Bot closed this Aug 7, 2020
release-please Bot reopened this Aug 7, 2020
release-please Bot closed this Aug 7, 2020
release-please Bot reopened this Aug 7, 2020
release-please Bot reopened this Aug 14, 2020
BenWhitehead added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 14, 2020
yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 14, 2020
BenWhitehead added the automerge Merge the pull request once unit tests and other checks pass. label Aug 14, 2020
gcf-merge-on-green Bot merged commit f2ea1b9 into master Aug 14, 2020
gcf-merge-on-green Bot deleted the release-v2.0.0 branch August 14, 2020 02:20

Copy link
Copy Markdown
Contributor

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automerge Merge the pull request once unit tests and other checks pass. autorelease: published cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL