fix(deps): update dependency google-auth-library to v2 #319
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency
google-auth-library
(source) from^1.6.1
to^2.0.0
Note: This PR was created on a configured schedule ("after 9am and before 3pm") and will not receive updates outside those times.
Release Notes
v2.0.0
Compare Source
Well hello 2.0 🎉 This release has multiple breaking changes. It also has a lot of bug fixes.
Breaking Changes
Support for node.js 4.x and 9.x has been dropped
These versions of node.js are no longer supported.
The
getRequestMetadata
method has been deprecatedThe
getRequestMetadata
method has been deprecated on theIAM
,OAuth2
,JWT
, andJWTAccess
classes. ThegetRequestHeaders
method should be used instead. The methods have a subtle difference: thegetRequestMetadata
method returns an object with a headers property, which contains the authorization header. ThegetRequestHeaders
method simply returns the headers.Old code
New code
The
createScopedRequired
method has been deprecatedThe
createScopedRequired
method has been deprecated on multiple classes. ThecreateScopedRequired
andcreateScoped
methods on theJWT
class were largely in place to help inform clients when scopes were required in an application default credential scenario. Instead of checking if scopes are required after creating the client, instead scopes should just be passed either into theGoogleAuth.getClient
method, or directly into theJWT
constructor.Old code
New code
The
refreshAccessToken
method has been deprecatedThe
OAuth2.refreshAccessToken
method has been deprecated. ThegetAccessToken
,getRequestMetadata
, andrequest
methods will all refresh the token if needed automatically. There is no need to ever manually refresh the token.As always, if you run into any problems… please let us know!
Features
Bug Fixes
Buffer.from
instead ofnew Buffer
(#400)Breaking changes
createScopedRequired
methods (#410)refreshAccessToken
methods (#411)getDefaultProjectId
method (#402)Build / Test changes
This PR has been generated by Renovate Bot.