fix(deps): update dependency google-auth-library to v2 #962
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 PR contains the following updates:
^1.3.1->^2.0.0Release Notes
google/google-auth-library-nodejs
v2.0.1Compare Source
Implementation Changes
Dependencies
Documentation
Internal / Testing Changes
v2.0.0Compare 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
getRequestMetadatamethod has been deprecatedThe
getRequestMetadatamethod has been deprecated on theIAM,OAuth2,JWT, andJWTAccessclasses. ThegetRequestHeadersmethod should be used instead. The methods have a subtle difference: thegetRequestMetadatamethod returns an object with a headers property, which contains the authorization header. ThegetRequestHeadersmethod simply returns the headers.Old code
New code
The
createScopedRequiredmethod has been deprecatedThe
createScopedRequiredmethod has been deprecated on multiple classes. ThecreateScopedRequiredandcreateScopedmethods on theJWTclass 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.getClientmethod, or directly into theJWTconstructor.Old code
New code
The
refreshAccessTokenmethod has been deprecatedThe
OAuth2.refreshAccessTokenmethod has been deprecated. ThegetAccessToken,getRequestMetadata, andrequestmethods 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.frominstead ofnew Buffer(#400)Breaking changes
createScopedRequiredmethods (#410)refreshAccessTokenmethods (#411)getDefaultProjectIdmethod (#402)Build / Test changes
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "
rebase!".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.