Skip to content

Conversation

@schmidt-sebastian
Copy link
Contributor

This PR marks the old v1beta1 protocol as deprecated, which has not been used in our client since 0.20.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 20, 2020
"/protos/firestore_v1beta1_proto_api'"
)

# Mark v1beta1 as deprecated
Copy link
Contributor

Choose a reason for hiding this comment

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

@AlanGasperini @alexander-fenster so this is a funny use for synthtool :) For cases where a specific API version itself is deprecated, how do we let customers know?

Copy link
Contributor

Choose a reason for hiding this comment

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

@lukesneeringer Is there any annotation that might help mark the whole API version as deprecated?

* committed. Any read with an equal or greater `read_time` is guaranteed
* to see the effects of the transaction.
* @class
* @deprecated Use v1/firestore_client instead.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know specifically which tools/situations where this will be surfaced? I think the TypeScript compiler, and eslint will do stuff. Should we consider emitting runtime warnings for users not using these kinds of tools though?

Copy link
Contributor Author

@schmidt-sebastian schmidt-sebastian Feb 20, 2020

Choose a reason for hiding this comment

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

It shows up in the generated docs (barely legible) and as a warning in VSCode/IntelliJ.

@schmidt-sebastian
Copy link
Contributor Author

@lukesneeringer @JustinBeckwith We want to launch this as part of the breaking Node 10 release, as deprecation warnings might be considered a breaking change by some of our users. Are there any other strategies worth exploring that don't involve search/replace?

@JustinBeckwith
Copy link
Contributor

that sounds fine to me

@schmidt-sebastian schmidt-sebastian changed the title fix: mark v1beta1 client as deprecated fix!: mark v1beta1 client as deprecated Mar 16, 2020
@schmidt-sebastian schmidt-sebastian added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 16, 2020
@schmidt-sebastian schmidt-sebastian changed the base branch from master to node10 April 9, 2020 20:38
@schmidt-sebastian
Copy link
Contributor Author

Merging into feature branch.

@schmidt-sebastian schmidt-sebastian merged commit ae1cc08 into node10 Apr 9, 2020
schmidt-sebastian added a commit that referenced this pull request Jun 24, 2020
* fix!: mark v1beta1 client as deprecated (#937)

* feat!: use QueryDocumentSnapshot in FirestoreDataConverter (#965)

* deps: update to gts 2.x (#1013)

* chore!: update settings for Node 10 (#1019)

* deps: drop through2 (#1014)

* feat: support BigInt (#1016)

* fix: make update.sh work on Linux (#1043)

* fix: only use BigInt in BigInt system test (#1044)

* fix: make pbjs compile admin proto again (#1045)

* Add BulkWriter (#1055)

* docs: Add documentation for FirestoreDataConverter (#1059)

* chore: enforce return types (#1065)

* fix: add generic to Firestore.getAll() (#1066)

* chore: remove internal WriteOp (#1067)

* chore: add linter checks for it|describe.only (#1068)

* fix: handle terminate in BulkWriter (#1070)

* chore: run template copying last in synthtool (#1071)

* feat: Firestore Bundles implementation (#1078)

* feat: add support for set() with SetOptions when using FirestoreDataConverter (#1087)

* feat: Add totalDocuments and totalBytes to bundle metadata. (#1085)

* feat: Add totalDocuments and totalBytes to bundle metadata.

* fix: Better comment

* fix: Better testing.

* fix: Improve metadata testing.

* fix: incomplete expect in rate-limiter test (#1092)

* Remove BatchWrite proto, fix conformance tests

* chore: use public API types internally (#1100)

* feat: add Partition and BatchWrite protos (#1110)

* fix: remove GCF transaction fallback (#1112)

* fix: add BulkWriter integration tests, java backport changes, delete fix (#1117)

* chore: merge master (#1218)

* chore: add eslint check for console.log statements (#1229)

* fix: another attempt at fixing the flaky BulkWriter test (#1228)

* Fix comment

* Renames

* Test fix

* Fix unit tests

Co-authored-by: Brian Chen <chenbrian@google.com>
Co-authored-by: wu-hui <53845758+wu-hui@users.noreply.github.com>
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. do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants