-
Notifications
You must be signed in to change notification settings - Fork 87
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
Conversation
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", |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not extraneous?
I believe you should also reexport it from |
🤖 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).
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)