The version 2.0.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of google-auth-library.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notesv2.0.0
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 deprecated
The getRequestMetadata method has been deprecated on the IAM, OAuth2, JWT, and JWTAccess classes. The getRequestHeaders method should be used instead. The methods have a subtle difference: the getRequestMetadata method returns an object with a headers property, which contains the authorization header. The getRequestHeaders method simply returns the headers.
The createScopedRequired method has been deprecated
The createScopedRequired method has been deprecated on multiple classes. The createScopedRequired and createScoped methods on the JWT 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 the GoogleAuth.getClient method, or directly into the JWT constructor.
Old code
auth.getApplicationDefault(function(err, authClient) {
if (err) {
returncallback(err);
}
if (authClient.createScopedRequired&&authClient.createScopedRequired()) {
authClient =authClient.createScoped([
'https://www.googleapis.com/auth/cloud-platform'
]);
}
callback(null, authClient);
});
The OAuth2.refreshAccessToken method has been deprecated. The getAccessToken, getRequestMetadata, and request 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
Set private_key_id in JWT access token header like other google auth libraries. (#450)
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
Version 2.0.0 of google-auth-library was just published.
The version 2.0.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of google-auth-library.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v2.0.0Well 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
Commits
The new version differs by 50 commits.
17a9d5f
fix CircleCI install config
dbe05e8
Fix sample and system tests
55885a3
Fix sample and system tests
b9a809c
Fix sample and system tests
6e3bc6e
Release v2.0.0 (#456)
5377684
fix: support HTTPS proxies (#405)
3ba8c45
Run synth to make build tools consistent (#455)
909fa75
Add a package.json for samples and cleanup README (#454)
dc1265f
chore(deps): update dependency typedoc to ^0.12.0 (#453)
0ad3630
chore: move examples => samples + synth (#448)
edcafbc
Set private_key_id in JWT access token header like other google auth libraries. (#450)
7e21777
chore(deps): update dependency nyc to v13 (#452)
bad4321
chore(deps): update dependency pify to v4 (#447)
552a4a2
chore(deps): update dependency assert-rejects to v1 (#446)
9cdfb6f
chore: ignore package-lock.json (#445)
There are 50 commits in total.
See the full diff
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper bot :palm_tree: