Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose uuid for autopopulation of request_id #1542

Merged
merged 7 commits into from
Jan 18, 2024
Merged

feat: expose uuid for autopopulation of request_id #1542

merged 7 commits into from
Jan 18, 2024

Conversation

sofisl
Copy link
Contributor

@sofisl sofisl commented Jan 18, 2024

Technically, we're not adding a dependency since we depend on uuid through retry-request --> teeny-request --> uuid. This will allow this work: googleapis/gapic-generator-typescript#1511 to be executed in Node and alternate environments (without having to depend on importing crypto)

@sofisl sofisl requested review from a team as code owners January 18, 2024 01:30
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Jan 18, 2024
gax/package.json Outdated
@@ -13,18 +13,20 @@
"@grpc/grpc-js": "~1.9.6",
"@grpc/proto-loader": "^0.7.0",
"@types/long": "^4.0.0",
"@types/uuid": "^9.0.7",
Copy link
Contributor

Choose a reason for hiding this comment

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

This should go to devDependencies unless there is a reason not to. @types/long is an exception, it's a dependency of the generated .d.ts files so we must list it as if it is a runtime dependency. Other types go to devDeps.

gax/src/util.ts Outdated
@@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// eslint-disable-next-line node/no-extraneous-import
Copy link
Contributor

Choose a reason for hiding this comment

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

it's not extraneous?

@alexander-fenster
Copy link
Contributor

I believe you should also reexport it from src/index.ts and src/fallback.ts (which are the two entry points to gax).

@sofisl sofisl merged commit 6c66e22 into main Jan 18, 2024
21 checks passed
@sofisl sofisl deleted the addTools branch January 18, 2024 22:43
@sofisl sofisl added the release-please:force-run To run release-please label Jan 18, 2024
@release-please release-please bot removed the release-please:force-run To run release-please label Jan 18, 2024
@sofisl sofisl added the release-please:force-run To run release-please label Jan 18, 2024
@release-please release-please bot removed the release-please:force-run To run release-please label Jan 18, 2024
@release-please release-please bot mentioned this pull request Jan 18, 2024
gcf-merge-on-green bot pushed a commit that referenced this pull request Jan 19, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>4.2.0</summary>

## [4.2.0](https://togithub.com/googleapis/gax-nodejs/compare/v4.1.0...v4.2.0) (2024-01-18)


### Features

* expose uuid for autopopulation of request_id ([#1542](https://togithub.com/googleapis/gax-nodejs/issues/1542)) ([6c66e22](https://togithub.com/googleapis/gax-nodejs/commit/6c66e224919e1bb7a8c044927e1c70f9d32bddb4))
</details>

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
@release-please release-please bot mentioned this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants