-
Notifications
You must be signed in to change notification settings - Fork 92
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!: Update google-auth-library
to v10
#1702
Conversation
gax/package.json
Outdated
"node-fetch": "^2.7.0", | ||
"object-hash": "^3.0.0", | ||
"proto3-json-serializer": "^2.0.2", | ||
"protobufjs": "^7.3.2", |
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 was an auto-repair from npm
| GrpcClientOptions | ||
| { | ||
/** | ||
* @deprecated - use `authClient` for `AuthClient`s instead |
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.
GrpcClientOptions
currently includes this parameter, and with the correct name; authClient
.
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.
We should create a follow-up to clean this up in the next major to avoid confusion
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.
LGTM once tests are passing.
Status update: fixing the webpack config |
Status update: figuring out a config issue with webpack 5… |
@@ -53,7 +82,7 @@ module.exports = { | |||
use: 'null-loader', | |||
}, | |||
{ | |||
test: /node_modules[\\/]google-auth-library/, | |||
test: /node_modules[\\/]gcp-metadata/, |
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.
Ignoring gcp-metadata
in this context, as it is unused, while keeping auth
Description
Updating
google-auth-library
to v10 along with improving type-compatibility.Impact
All of the features in
google-auth-library
v10 and more openAuthClient
andGoogleAuth
types.Testing
Updated and streamlined tests.
Additional Information
This functionality can be improved with this feature (to remove
GoogleAuth<AuthClient>
references):GoogleAuth<T>
toAuthClient
google-auth-library-nodejs#1677🦕