Skip to content

fix: Ensure node 22 dependencies are up to date so they get the latest patches for core and handwritten libraries - #9116

Merged
danieljbruce merged 52 commits into
mainfrom
node-22-upgrade-all-dependencies
Aug 11, 2026
Merged

danieljbruce merged 52 commits into
mainfrom
node-22-upgrade-all-dependencies

Conversation

@danieljbruce

@danieljbruce danieljbruce commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

This pull request upgrades some of the Node engine values to 22 for nested package.json files that were missed and upgrades dependencies to match the new Node 22 version of the core, generated and handwritten packages.

here is the script that was used to upgrade the dependencies.

Note for the generator that the package-lock.json file and pnpm.lock file were changed as well to get the baseline tests to pass. Also, most of the files changed in this pull request are to baseline files.

This pull request now ignores the packages/** directory. We will address changes in that directory in a separate pull request.

An additional update to the package.json file is applied for a few handwritten libraries to upgrade mocha to resolve a test failure with yargs.

A Bigtable test for fetching the client side metrics version is skipped. Some pubsub tests don't have a reference to the LogSeverity object anymore so the tests compare against strings instead.

Prompt for generating the changes:

Do you see the change in https://github.com/googleapis/google-cloud-node/pull/9084/changes? I want you to expand on this change. The end goal is to do the following:

  1. As you can see from the pull request, some nested package.json files still refer to an old node version, all package.json files should point to node 22 except gaxios, firestore, storage and spanner. Those libraries are not being upgraded yet
  2. In the handwritten, core and generated libraries, upgrade the dependencies to versions matching node v22 that have recently been released for all dependencies that correspond to a core library that has been upgraded, a handwritten library that has been upgraded or a generated library that has been upgraded (excluding gaxios, spanner, firestore or storage). Nothing should change in the gaxios, firestore, spanner or storage directories. Also no dependencies for gaxios, firestore, spanner or storage should be upgraded to the latest version. For these dependency upgrades they should probably correspond to a major version bump. (Make sure the dependencies corresponding to generated libraries correspond to a major version bump as when this task was executed before they didn’t)
  3. Don’t upgrade any dependencies that reference a file or a relative path. Only upgrade the dependencies referencing a version number with a caret or tilde. Those are fixtures shouldn’t change. For example, the dependency referencing "file:./google-cloud-common.tgz" should stay the same.
  4. Make sure to include all core packages except gaxios. For instance, jsdoc-fresh dependencies should be upgraded.

Write a script that accomplishes the above tasks, check in the script, revert the commit and then run the script and check in the changes that get made by running the script.

Impact

Ensures all dependencies will receive new patches released thereby improving the health of our client libraries.

…/googleapis/google-cloud-node into node-22-upgrade-all-dependencies

# Conflicts:
#	handwritten/bigquery/package.json
…/googleapis/google-cloud-node into node-22-upgrade-all-dependencies

# Conflicts:
#	handwritten/logging/package.json
@danieljbruce danieljbruce changed the title Node 22 upgrade all dependencies fix: Ensure node 22 dependencies are up to date so they get the latest fixes Aug 10, 2026
@danieljbruce danieljbruce changed the title fix: Ensure node 22 dependencies are up to date so they get the latest fixes fix: Ensure node 22 dependencies are up to date so they get the latest patches Aug 10, 2026

@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 performs a major dependency upgrade across multiple packages in the repository, updating various Google Cloud libraries (such as google-gax, @google-cloud/promisify, @google-cloud/projectify, and google-auth-library) and development tools (like gapic-tools, jsdoc-fresh, and pack-n-play). It also bumps the required Node.js engine version from >=18 to >=22 across several packages. Feedback highlights that @google-cloud/promisify was missed during the upgrade in handwritten/logging/package.json and remains pinned to 4.0.0 while other packages upgraded it to ^6.0.0.

Comment thread handwritten/logging/package.json
@danieljbruce
danieljbruce marked this pull request as ready for review August 11, 2026 20:03
@danieljbruce
danieljbruce requested review from a team as code owners August 11, 2026 20:03
@danieljbruce
danieljbruce requested a review from westarle August 11, 2026 20:03
@danieljbruce danieljbruce changed the title fix: Ensure node 22 dependencies are up to date so they get the latest patches fix: Ensure node 22 dependencies are up to date so they get the latest patches for core and handwritten libraries Aug 11, 2026
@danieljbruce
danieljbruce merged commit fad57ff into main Aug 11, 2026
41 checks passed
@danieljbruce
danieljbruce deleted the node-22-upgrade-all-dependencies branch August 11, 2026 21:09
shivanee-p pushed a commit that referenced this pull request Aug 12, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>pack-n-play: 5.1.0</summary>

##
[5.1.0](pack-n-play-v5.0.1...pack-n-play-v5.1.0)
(2026-08-12)


### Features

* **ci:** Implement sharding for unit test performance
([#9021](#9021))
([1d977b5](1d977b5))
</details>

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

##
[5.0.1](gapic-generator-v5.0.0...gapic-generator-v5.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

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

##
[0.2.2](gapic-node-processing-v0.2.1...gapic-node-processing-v0.2.2)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

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

##
[6.0.2](google-gax-v6.0.1...google-gax-v6.0.2)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>gaxios: 7.3.1</summary>

##
[7.3.1](gaxios-v7.3.0...gaxios-v7.3.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

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

##
[9.0.3](gcp-metadata-v9.0.2...gcp-metadata-v9.0.3)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>google-auth-library: 11.0.2</summary>

##
[11.0.2](google-auth-library-v11.0.1...google-auth-library-v11.0.2)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>googleapis-common: 9.0.3</summary>

##
[9.0.3](googleapis-common-v9.0.2...googleapis-common-v9.0.3)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>proto3-json-serializer: 4.0.2</summary>

##
[4.0.2](proto3-json-serializer-v4.0.1...proto3-json-serializer-v4.0.2)
(2026-08-12)


### Bug Fixes

* **docs:** Add correct homepage URL in
/core/packages/proto3-json-serializer-nodejs
([#9131](#9131))
([b57db40](b57db40))
</details>

<details><summary>bigquery: 9.0.2</summary>

##
[9.0.2](bigquery-v9.0.1...bigquery-v9.0.2)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>bigquery-storage: 6.0.1</summary>

##
[6.0.1](bigquery-storage-v6.0.0...bigquery-storage-v6.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>bigtable: 7.2.0</summary>

##
[7.2.0](bigtable-v7.1.0...bigtable-v7.2.0)
(2026-08-12)


### Features

* **ci:** Implement sharding for unit test performance
([#9021](#9021))
([1d977b5](1d977b5))


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>cloud-profiler: 8.0.1</summary>

##
[8.0.1](cloud-profiler-v8.0.0...cloud-profiler-v8.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>datastore: 11.0.1</summary>

##
[11.0.1](datastore-v11.0.0...datastore-v11.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>error-reporting: 4.0.1</summary>

##
[4.0.1](error-reporting-v4.0.0...error-reporting-v4.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>dns: 6.0.1</summary>

##
[6.0.1](dns-v6.0.0...dns-v6.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>logging: 12.0.1</summary>

##
[12.0.1](logging-v12.0.0...logging-v12.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>logging-bunyan: 6.0.1</summary>

##
[6.0.1](logging-bunyan-v6.0.0...logging-bunyan-v6.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>logging-winston: 7.0.1</summary>

##
[7.0.1](logging-winston-v7.0.0...logging-winston-v7.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
</details>

<details><summary>pubsub: 6.0.1</summary>

##
[6.0.1](pubsub-v6.0.0...pubsub-v6.0.1)
(2026-08-12)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))
* **pubsub:** Upgrade @opentelemetry/core to ^2.8.0 to resolve
CVE-2026-54285
([#8792](#8792))
([#9092](#9092))
([004850f](004850f))
</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>
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Aug 31, 2026
##### [v11.0.2](https://github.com/googleapis/google-cloud-node/blob/HEAD/core/packages/google-auth-library-nodejs/CHANGELOG.md#1102-2026-08-12)

##### Bug Fixes

- Ensure node 22 dependencies are up to date so they get the latest patches for core and handwritten libraries ([#9116](googleapis/google-cloud-node#9116)) ([fad57ff](googleapis/google-cloud-node@fad57ff))
##### [v11.0.1](https://github.com/googleapis/google-cloud-node/blob/HEAD/core/packages/google-auth-library-nodejs/CHANGELOG.md#1101-2026-08-10)

##### Bug Fixes

- Upgrade all node core library dependencies to their latest node 22 version ([#9084](googleapis/google-cloud-node#9084)) ([af8074c](googleapis/google-cloud-node@af8074c))
##### [v11.0.0](https://github.com/googleapis/google-cloud-node/blob/HEAD/core/packages/google-auth-library-nodejs/CHANGELOG.md#1100-2026-07-29)

##### ⚠ BREAKING CHANGES

- Update google-auth-library-nodejs to minimum Node version of 22. ([#8995](googleapis/google-cloud-node#8995))

##### Features

- Update google-auth-library-nodejs to minimum Node version of 22. ([#8995](googleapis/google-cloud-node#8995)) ([152f686](googleapis/google-cloud-node@152f686)), refs [#8985](googleapis/google-cloud-node#8985)
gwennlbh pushed a commit to cigaleapp/cigale that referenced this pull request Aug 31, 2026
##### [v11.0.2](https://github.com/googleapis/google-cloud-node/blob/HEAD/core/packages/google-auth-library-nodejs/CHANGELOG.md#1102-2026-08-12)

##### Bug Fixes

- Ensure node 22 dependencies are up to date so they get the latest patches for core and handwritten libraries ([#9116](googleapis/google-cloud-node#9116)) ([fad57ff](googleapis/google-cloud-node@fad57ff))
##### [v11.0.1](https://github.com/googleapis/google-cloud-node/blob/HEAD/core/packages/google-auth-library-nodejs/CHANGELOG.md#1101-2026-08-10)

##### Bug Fixes

- Upgrade all node core library dependencies to their latest node 22 version ([#9084](googleapis/google-cloud-node#9084)) ([af8074c](googleapis/google-cloud-node@af8074c))
##### [v11.0.0](https://github.com/googleapis/google-cloud-node/blob/HEAD/core/packages/google-auth-library-nodejs/CHANGELOG.md#1100-2026-07-29)

##### ⚠ BREAKING CHANGES

- Update google-auth-library-nodejs to minimum Node version of 22. ([#8995](googleapis/google-cloud-node#8995))

##### Features

- Update google-auth-library-nodejs to minimum Node version of 22. ([#8995](googleapis/google-cloud-node#8995)) ([152f686](googleapis/google-cloud-node@152f686)), refs [#8985](googleapis/google-cloud-node#8985)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
danieljbruce pushed a commit that referenced this pull request Sep 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[9.0.1](firestore-v9.0.0...firestore-v9.0.1)
(2026-09-01)


### Bug Fixes

* Ensure node 22 dependencies are up to date so they get the latest
patches for core and handwritten libraries
([#9116](#9116))
([fad57ff](fad57ff))

---
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