From c3100b2ed1029a67841098658d3de8cf14e66982 Mon Sep 17 00:00:00 2001 From: hectorhammett Date: Wed, 8 Apr 2026 20:34:54 +0000 Subject: [PATCH 1/3] Update the Firestore client version to 2.0.0 --- Firestore/src/FirestoreClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firestore/src/FirestoreClient.php b/Firestore/src/FirestoreClient.php index 6f9f41fddcf4..f8987921c9de 100644 --- a/Firestore/src/FirestoreClient.php +++ b/Firestore/src/FirestoreClient.php @@ -88,7 +88,7 @@ class FirestoreClient use ClientOptionsTrait; use RequestProcessorTrait; - const VERSION = '2.0.0-RC1'; + const VERSION = '2.0.0'; const DEFAULT_DATABASE = '(default)'; const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/cloud-platform'; From 0af365ea093f2fba6c49048a486b2f5e5145a55d Mon Sep 17 00:00:00 2001 From: hectorhammett Date: Wed, 8 Apr 2026 22:11:40 +0000 Subject: [PATCH 2/3] Remove the version constant from specific clients --- Datastore/src/DatastoreClient.php | 2 -- Firestore/src/FirestoreClient.php | 2 -- Logging/src/LoggingClient.php | 2 -- PubSub/src/PubSubClient.php | 2 -- Spanner/src/SpannerClient.php | 2 -- 5 files changed, 10 deletions(-) diff --git a/Datastore/src/DatastoreClient.php b/Datastore/src/DatastoreClient.php index a4f493591fb1..2c9788f02197 100644 --- a/Datastore/src/DatastoreClient.php +++ b/Datastore/src/DatastoreClient.php @@ -97,8 +97,6 @@ class DatastoreClient use ClientOptionsTrait; use EmulatorTrait; - const VERSION = '2.0.0-RC1'; - const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/datastore'; /** diff --git a/Firestore/src/FirestoreClient.php b/Firestore/src/FirestoreClient.php index f8987921c9de..6b1464a6c215 100644 --- a/Firestore/src/FirestoreClient.php +++ b/Firestore/src/FirestoreClient.php @@ -88,8 +88,6 @@ class FirestoreClient use ClientOptionsTrait; use RequestProcessorTrait; - const VERSION = '2.0.0'; - const DEFAULT_DATABASE = '(default)'; const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/cloud-platform'; const MAX_RETRIES = 5; diff --git a/Logging/src/LoggingClient.php b/Logging/src/LoggingClient.php index d69d28c35e2e..0996b9e053a7 100644 --- a/Logging/src/LoggingClient.php +++ b/Logging/src/LoggingClient.php @@ -67,8 +67,6 @@ class LoggingClient use DetectProjectIdTrait; use ClientOptionsTrait; - const VERSION = '2.0.0-RC1'; - const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/logging.admin'; const READ_ONLY_SCOPE = 'https://www.googleapis.com/auth/logging.read'; const WRITE_ONLY_SCOPE = 'https://www.googleapis.com/auth/logging.write'; diff --git a/PubSub/src/PubSubClient.php b/PubSub/src/PubSubClient.php index 39f8600b5006..57c536b6bad8 100644 --- a/PubSub/src/PubSubClient.php +++ b/PubSub/src/PubSubClient.php @@ -98,8 +98,6 @@ class PubSubClient use ApiHelperTrait; use ClientOptionsTrait; - const VERSION = '2.19.1'; - const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/pubsub'; private const GAPIC_KEYS = [ diff --git a/Spanner/src/SpannerClient.php b/Spanner/src/SpannerClient.php index dbe02bb165ad..4d135b8dbfa8 100644 --- a/Spanner/src/SpannerClient.php +++ b/Spanner/src/SpannerClient.php @@ -114,8 +114,6 @@ class SpannerClient use ApiHelperTrait; use RequestTrait; - const VERSION = '2.0.0-RC1'; - const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/spanner.data'; const ADMIN_SCOPE = 'https://www.googleapis.com/auth/spanner.admin'; private const GRPC_KEEPALIVE_MILLISECONDS = 120 * 1000; From c2ee7139b0e032d59980573392ffadca446886f0 Mon Sep 17 00:00:00 2001 From: hectorhammett Date: Wed, 8 Apr 2026 23:30:47 +0000 Subject: [PATCH 3/3] Add the removal of the VERSION constant on the clients to the MIGRATING.md file --- Datastore/MIGRATING.md | 4 +++- Firestore/MIGRATING.md | 3 +++ Logging/MIGRATING.md | 5 +++-- PubSub/MIGRATING.md | 3 +++ Spanner/MIGRATING.md | 4 +++- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Datastore/MIGRATING.md b/Datastore/MIGRATING.md index 40c05420e1cf..d5164bb0cc8a 100644 --- a/Datastore/MIGRATING.md +++ b/Datastore/MIGRATING.md @@ -14,6 +14,9 @@ Update your `google/cloud-datastore` dependency to `^2.0`: ## Breaking Changes +### Version constant removed +Removed `DatastoreClient::VERSION`, use the `VERSION` file in the library root instead. + ### EntityInterface changes Types have been added to the methods in [`EntityInterface`](src/EntityInterface.php). This means that @@ -148,4 +151,3 @@ to the namespaced version (replacing `_` with `\`) to upgrade. - `Google\Cloud\Datastore\V1\ReadOptions_ReadConsistency` has been removed - `Google\Cloud\Datastore\V1\Key_PathElement` has been removed - `Google\Cloud\Datastore\V1\AggregationQuery_Aggregation_Count` has been removed - diff --git a/Firestore/MIGRATING.md b/Firestore/MIGRATING.md index d791c813d152..692a131a2050 100644 --- a/Firestore/MIGRATING.md +++ b/Firestore/MIGRATING.md @@ -108,3 +108,6 @@ $batch = new BulkWriter(...); | Class Constructors | Accepted `ConnectionInterface` | Accept `V1\Client\FirestoreClient` | Update arguments passed to constructors. | By addressing these key areas, you can successfully migrate your application to version 2 of the Firestore client library. + +## 5. Version constant removed +Removed `FirestoreClient::VERSION`, use the `VERSION` file in the library root instead. diff --git a/Logging/MIGRATING.md b/Logging/MIGRATING.md index e6a84c940d30..da872de45b36 100644 --- a/Logging/MIGRATING.md +++ b/Logging/MIGRATING.md @@ -14,6 +14,9 @@ Update your `google/cloud-logging` dependency to `^2.0`: ## Changes +### Version constant removed +Removed `LoggingClient::VERSION`, use the `VERSION` file in the library root instead. + ### Client Options changes The following client options are removed/replaced with other options present in @@ -52,5 +55,3 @@ This is a major change, but one that we hope won't break any users. When the The Rest and Grpc connection classes (along with the `ConnectionInterface`) have been removed in favor of using the GAPIC generated clients directly. See `src/Connection/Gapic.php` for an example. - - diff --git a/PubSub/MIGRATING.md b/PubSub/MIGRATING.md index bb767419f1b4..3d26cbffecff 100644 --- a/PubSub/MIGRATING.md +++ b/PubSub/MIGRATING.md @@ -14,6 +14,9 @@ Update your `google/cloud-pubsub` dependency to `^2.0`: ## Changes +### Version constant removed +Removed `PubSubClient::VERSION`, use the `VERSION` file in the library root instead. + ### Client Options changes The following client options are removed/replaced with other options present in diff --git a/Spanner/MIGRATING.md b/Spanner/MIGRATING.md index 2dacba949d62..96d8c2516289 100644 --- a/Spanner/MIGRATING.md +++ b/Spanner/MIGRATING.md @@ -14,6 +14,9 @@ Update your `google/cloud-spanner` dependency to `^2.0`: ## Changes +### Version constant removed +Removed `SpannerClient::VERSION`, use the `VERSION` file in the library root instead. + ### Client Options changes The following client options are removed/replaced with other options present in @@ -133,4 +136,3 @@ $lro->delete(); - `Session\CacheSessionPool` => removed in favor of `SessionCache` - `Session\SessionPoolInterface` => removed in favor of `SessionCache` - `Operation` - this class is marked `@internal`, and should not be used directly. -