Skip to content

fix(firestore,pubsub): align types and proto re-exports with -api packages - #9621

Merged
quirogas merged 2 commits into
mainfrom
fix/firestore-pubsub-api-drift
Oct 16, 2026
Merged

quirogas merged 2 commits into
mainfrom
fix/firestore-pubsub-api-drift

Conversation

@quirogas

@quirogas quirogas commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Clean up Firestore and Pub/Sub type and proto exports to match their generated -api packages:

  • Remove the discontinued v1beta1 export from handwritten/firestore/types/firestore.d.ts.
  • Re-export protos in handwritten/pubsub/protos/protos.js and protos.d.ts directly from @google-cloud/pubsub-api instead of keeping a duplicate copy.

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

Copy link
Copy Markdown
Contributor

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 TypeScript definitions in handwritten/firestore/types/firestore.d.ts to explicitly define the structure of the deprecated v1beta1 export, mapping its FirestoreClient to a local import path instead of importing the entire namespace from @google-cloud/firestore-api. There are no review comments to address, and I have no additional feedback to provide.

@quirogas
quirogas marked this pull request as ready for review October 15, 2026 10:09
@quirogas
quirogas requested review from a team as code owners October 15, 2026 10:09
@github-actions
github-actions Bot requested a review from danieljbruce October 15, 2026 10:09

@danieljbruce danieljbruce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like this change, particularly the pubsub proto removals. I was surprised to see handwritten/firestore/types/firestore.d.ts wasn't autogenerated since a similar file in bigquery-storage is autogenerated.

…kages

## Description

Align handwritten `@google-cloud/firestore` type declarations and `@google-cloud/pubsub` proto re-exports with their underlying workspace `-api` packages (`@google-cloud/firestore-api` and `@google-cloud/pubsub-api`).

## Impact

Eliminates cross-package type declaration drift and duplicate static protobuf definitions between handwritten veneer packages and their generated `-api` packages, unblocking workspace dependency linking (`Part 1 of 2` in the internal dependency floor stack).

## Changes

- Update `handwritten/firestore/types/firestore.d.ts` so `FirebaseFirestore.v1beta1` references the local `./v1beta1/firestore_client` `FirestoreClient` declaration rather than a non-existent `v1beta1` export on `@google-cloud/firestore-api`.
- Replace the duplicate static protobuf bundle in `handwritten/pubsub/protos/protos.js` and `handwritten/pubsub/protos/protos.d.ts` with direct re-exports from `@google-cloud/pubsub-api/build/protos/protos`.

## Testing

- Compiled `handwritten/firestore` and `handwritten/pubsub` cleanly with zero TypeScript errors.
- Verified strict repository linter checks (`GIT_DIFF_ARG=origin/main node ./bin/linter.mjs --strict`).

## Alternatives

- Maintaining duplicate static protobuf code and out-of-sync `.d.ts` exports in `handwritten/firestore` and `handwritten/pubsub` was rejected because it causes TypeScript compilation failures when workspace packages link to current `-api` packages.
@quirogas
quirogas force-pushed the fix/firestore-pubsub-api-drift branch from bfd5243 to 2fccf81 Compare October 16, 2026 04:50
@quirogas
quirogas merged commit 25d945b into main Oct 16, 2026
45 of 46 checks passed
@quirogas
quirogas deleted the fix/firestore-pubsub-api-drift branch October 16, 2026 20:36
shivanee-p pushed a commit that referenced this pull request Oct 19, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>common: 8.2.1</summary>

##
[8.2.1](common-v8.2.0...common-v8.2.1)
(2026-10-19)


### Bug Fixes

* **tools:** Export test-utils types and exempt cloud-profiler on Bun
([#9611](#9611))
([ec74599](ec74599))
</details>

<details><summary>gapic-generator: 5.7.1</summary>

##
[5.7.1](gapic-generator-v5.7.0...gapic-generator-v5.7.1)
(2026-10-19)


### Bug Fixes

* **generator:** Use .jsdoc.json with build/esm/src in ESM template
([#9523](#9523))
([0131ab8](0131ab8))
</details>

<details><summary>gapic-node-processing: 0.3.1</summary>

##
[0.3.1](gapic-node-processing-v0.3.0...gapic-node-processing-v0.3.1)
(2026-10-19)


### Bug Fixes

* **generator:** Use .jsdoc.json with build/esm/src in ESM template
([#9523](#9523))
([0131ab8](0131ab8))
</details>

<details><summary>google-gax: 6.13.0</summary>

##
[6.13.0](google-gax-v6.12.1...google-gax-v6.13.0)
(2026-10-19)


### Features

* **gax:** Add LoggerHelper with context helper
([#9631](#9631))
([c410f90](c410f90))
* **gax:** Remove references to static telemetry information
([#9630](#9630))
([8954cff](8954cff))
</details>

<details><summary>gcp-metadata: 9.2.2</summary>

##
[9.2.2](gcp-metadata-v9.2.1...gcp-metadata-v9.2.2)
(2026-10-19)


### Bug Fixes

* **gcp-metadata:** Recognize Bun socket error codes in isAvailable
([#9613](#9613))
([0fb3dee](0fb3dee))
</details>

<details><summary>precise-date: 6.2.1</summary>

##
[6.2.1](precise-date-v6.2.0...precise-date-v6.2.1)
(2026-10-19)


### Bug Fixes

* **tools:** Export test-utils types and exempt cloud-profiler on Bun
([#9611](#9611))
([ec74599](ec74599))
</details>

<details><summary>projectify: 6.2.1</summary>

##
[6.2.1](projectify-v6.2.0...projectify-v6.2.1)
(2026-10-19)


### Bug Fixes

* **tools:** Export test-utils types and exempt cloud-profiler on Bun
([#9611](#9611))
([ec74599](ec74599))
</details>

<details><summary>promisify: 6.2.1</summary>

##
[6.2.1](promisify-v6.2.0...promisify-v6.2.1)
(2026-10-19)


### Bug Fixes

* **tools:** Export test-utils types and exempt cloud-profiler on Bun
([#9611](#9611))
([ec74599](ec74599))
</details>

<details><summary>test-utils: 0.3.1</summary>

##
[0.3.1](test-utils-v0.3.0...test-utils-v0.3.1)
(2026-10-19)


### Bug Fixes

* **tools:** Export test-utils types and exempt cloud-profiler on Bun
([#9611](#9611))
([ec74599](ec74599))
</details>

<details><summary>bigquery: 9.4.0</summary>

##
[9.4.0](bigquery-v9.3.0...bigquery-v9.4.0)
(2026-10-19)


### Features

* **bigquery:** Add createQueryArrowStream for inline jobs.query results
([#9596](#9596))
([69157ed](69157ed))
</details>

<details><summary>pubsub: 6.3.1</summary>

##
[6.3.1](pubsub-v6.3.0...pubsub-v6.3.1)
(2026-10-19)


### Bug Fixes

* **firestore,pubsub:** Align types and proto re-exports with -api
packages
([#9621](#9621))
([25d945b](25d945b))
</details>

<details><summary>aiplatform: 7.7.0</summary>

##
[7.7.0](aiplatform-v7.6.0...aiplatform-v7.7.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>alloydb: 3.5.0</summary>

##
[3.5.0](alloydb-v3.4.0...alloydb-v3.5.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>compute: 7.9.0</summary>

##
[7.9.0](compute-v7.8.0...compute-v7.9.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>contact-center-insights: 5.3.0</summary>

##
[5.3.0](contact-center-insights-v5.2.0...contact-center-insights-v5.3.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>dataproc: 7.3.0</summary>

##
[7.3.0](dataproc-v7.2.0...dataproc-v7.3.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>datastream: 5.3.0</summary>

##
[5.3.0](datastream-v5.2.0...datastream-v5.3.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>memorystore: 0.12.0</summary>

##
[0.12.0](memorystore-v0.11.0...memorystore-v0.12.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>pubsub-api: 0.8.0</summary>

##
[0.8.0](pubsub-api-v0.7.0...pubsub-api-v0.8.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>redis-cluster: 0.17.0</summary>

##
[0.17.0](redis-cluster-v0.16.0...redis-cluster-v0.17.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>security-center: 10.3.0</summary>

##
[10.3.0](security-center-v10.2.0...security-center-v10.3.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>developer-knowledge: 0.10.0</summary>

##
[0.10.0](developer-knowledge-v0.9.0...developer-knowledge-v0.10.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

<details><summary>cloudbuild: 6.3.0</summary>

##
[6.3.0](cloudbuild-v6.2.0...cloudbuild-v6.3.0)
(2026-10-19)


### Features

* Update API sources and regenerate
([#9620](#9620))
([c812bc3](c812bc3))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
MarkDuckworth pushed a commit that referenced this pull request Oct 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[9.4.0](firestore-v9.3.1...firestore-v9.4.0)
(2026-10-22)


### Features

* **firestore:** Add DML stages (insert, upsert, delete, update),
literals source, and atomic execution option to Node SDK pipelines
([2639650](2639650))


### Bug Fixes

* **firestore,pubsub:** Align types and proto re-exports with -api
packages
([#9621](#9621))
([25d945b](25d945b))
* **firestore:** Resolve api-extractor from cloud-rad in api-report.mjs
([#9505](#9505))
([dc83ed8](dc83ed8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants