fix(deps): update dependency google-auth-library to v2#290
Merged
JustinBeckwith merged 1 commit intomasterfrom Aug 30, 2018
Merged
fix(deps): update dependency google-auth-library to v2#290JustinBeckwith merged 1 commit intomasterfrom
JustinBeckwith merged 1 commit intomasterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #290 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 10 10
Lines 1266 1266
=====================================
Hits 1266 1266Continue to review full report at Codecov.
|
JustinBeckwith
approved these changes
Aug 30, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.1to^2.0.0Note: This PR was created on a configured schedule ("after 9am and before 3pm") and will not receive updates outside those times.
Details
Release Notes
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
This PR has been generated by Renovate Bot.