Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

chore!: migrate gax to Node 18#1699

Merged
sofisl merged 70 commits intomainfrom
migrateToNode18
Feb 19, 2025
Merged

chore!: migrate gax to Node 18#1699
sofisl merged 70 commits intomainfrom
migrateToNode18

Conversation

@sofisl
Copy link
Copy Markdown
Contributor

@sofisl sofisl commented Feb 5, 2025

For gax and tools directory:

@sofisl sofisl requested review from a team February 5, 2025 08:48
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Feb 5, 2025
@generated-files-bot
Copy link
Copy Markdown

generated-files-bot Bot commented Feb 5, 2025

Warning: This pull request is touching the following templated files:

  • .kokoro/common.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/continuous/node14/common.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/continuous/node14/lint.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/continuous/node14/samples-test.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/continuous/node14/system-test.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/continuous/node14/test.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/presubmit/node14/common.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/presubmit/node14/samples-test.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/presubmit/node14/system-test.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/presubmit/node14/test.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/release/docs.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/release/publish.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/samples-test.sh - .kokoro files are templated and should be updated in synthtool
  • .kokoro/system-test.sh - .kokoro files are templated and should be updated in synthtool
  • .kokoro/test.bat - .kokoro files are templated and should be updated in synthtool
  • .kokoro/test.sh - .kokoro files are templated and should be updated in synthtool
  • .github/workflows/ci.yaml - .github/workflows/ci.yaml (GitHub Actions) should be updated in synthtool

@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Feb 5, 2025
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Feb 5, 2025
Comment thread gax/package.json
"@grpc/grpc-js": "^1.12.6",
"@grpc/proto-loader": "^0.7.13",
"@types/long": "^5.0.0",
"abort-controller": "^3.0.0",
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.

This is global in Node 18+; we can drop this dependency in this or separate PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looking through the code, I believe this is only used in browser-contexts.

Comment thread gax/package.json Outdated
"google-auth-library": "^9.3.0",
"duplexify": "^4.1.3",
"google-auth-library": "^9.15.1",
"node-fetch": "^2.7.0",
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.

Comment thread gax/package.json Outdated
"protobufjs": "^7.3.2"
"protobufjs": "^7.4.0",
"retry-request": "^7.0.2",
"uuid": "^11.0.5"
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.

Comment thread gax/package.json
},
"devDependencies": {
"@types/uuid": "^9.0.7",
"@babel/plugin-proposal-private-methods": "^7.18.6",
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.

We should be good to remove this now in Node 18+

Comment thread gax/src/iamService.ts Outdated
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **
/* eslint-disable @typescript-eslint/no-floating-promises */
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 think these should be handled rather than ignored - even if its adding .catch(console.error).

"outDir": "build",
"resolveJsonModule": true,
"lib": ["ES2018", "DOM"]
"lib": ["DOM"]
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.

We may want ES2023 for language support, in case upstream dependencies use newer syntax or features.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We get this for free since it inherits from the top-level config!

Comment thread package.json
@@ -15,7 +15,7 @@
"url": "https://github.com/googleapis/gax-nodejs/issues"
},
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.

[Optional] We can use npm workspaces now:

Which has the benefit of enabling top-level tests for all workspaces/packages among other features.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hm good call! Maybe a good process request?

Copy link
Copy Markdown
Contributor

@d-goog d-goog left a comment

Choose a reason for hiding this comment

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

LGTM!

@d-goog
Copy link
Copy Markdown
Contributor

d-goog commented Feb 19, 2025

@sofisl sofisl merged commit fc3eeaa into main Feb 19, 2025
@sofisl sofisl deleted the migrateToNode18 branch February 19, 2025 23:30
@release-please release-please Bot mentioned this pull request Feb 14, 2025
gcf-merge-on-green Bot pushed a commit that referenced this pull request Mar 6, 2025
🤖 I have created a release *beep* *boop*
---


## [1.0.0](https://togithub.com/googleapis/gax-nodejs/compare/gapic-tools-v0.4.6...gapic-tools-v1.0.0) (2025-03-05)


### ⚠ BREAKING CHANGES

* migrate gax to Node 18 ([#1699](https://togithub.com/googleapis/gax-nodejs/issues/1699))

### Bug Fixes

* bytes field should be typed as a Buffer ([#1652](https://togithub.com/googleapis/gax-nodejs/issues/1652)) ([a81663f](https://togithub.com/googleapis/gax-nodejs/commit/a81663fcdf69a42ee6335c78355b9c8cb11d6064))
* protobuf export path in compileProtos ([#1708](https://togithub.com/googleapis/gax-nodejs/issues/1708)) ([113ca18](https://togithub.com/googleapis/gax-nodejs/commit/113ca18d98f7915c5af05a893d0314744e3d15e1))


### Miscellaneous Chores

* migrate gax to Node 18 ([#1699](https://togithub.com/googleapis/gax-nodejs/issues/1699)) ([fc3eeaa](https://togithub.com/googleapis/gax-nodejs/commit/fc3eeaa574e171c445e0768b06df4ed087bf1f67))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use subpath exports

2 participants