-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update google-auth-library to the latest version 🚀 #164
base: master
Are you sure you want to change the base?
Conversation
Version 1.1.0 just got published.Update to this version instead 🚀 Release Notes1.1.0This release includes a few new features, and a few bug fixes. New Featuresf9950b0 feat: cache JWT tokens in JWTAccess (#254) Fixesc3ce4f1 fix: Fix samples/jwt.js link in README (#253) CommitsThe new version differs by 12 commits.
See the full diff |
Version 1.2.0 just got published.Update to this version instead 🚀 CommitsThe new version differs by 8 commits.
See the full diff |
Version 1.2.1 just got published. |
Version 1.3.0 just got published.Update to this version instead 🚀 CommitsThe new version differs by 10 commits.
See the full diff |
Version 1.3.1 just got published. |
Version 1.3.2 just got published.Update to this version instead 🚀 Release Notes1.3.2This release contains minor test improvements and bug fixes. Enjoy! b41381d fix: ensure GCF can read metadata requests (#324) CommitsThe new version differs by 11 commits.
See the full diff |
Version 1.4.0 just got published.Update to this version instead 🚀 Release Notes1.4.0It's that special time again! Bug fixes, new features, updated packages, this release has it all. New features2570751 feat: emit an event when new tokens are obtained (#341) Bug fixesf75f2a2 fix: pin axios to nodejs (#342) Keepin' the lights on375faea test: add missing scope checks (#343) Enjoy that fresh hot auth y'all 🚀🐢 CommitsThe new version differs by 15 commits.
See the full diff |
Version 1.5.0 just got published.Update to this version instead 🚀 Release Notes1.5.0In this release:
Commits1f92e9c fix: read credentials field before keyFilename (#361) CommitsThe new version differs by 9 commits.
See the full diff |
Version 1.6.0 just got published.Update to this version instead 🚀 Release Notesv1.6.0Greetings folks! This minor release has a few new features! Most of these have been added to help support the migration away from Features8294685 feat: enable custom service account with compute client (#378) Fixes23fe447 fix: limit situations where we retry (#373) Keepin the lights on6e88edd chore: upgrade all the dependencies (#372) CommitsThe new version differs by 10 commits.
See the full diff |
Version 1.6.1 just got published. |
Version 2.0.0 just got published.Update to this version instead 🚀 Release Notesv2.0.0Well hello 2.0 🎉 This release has multiple breaking changes. It also has a lot of bug fixes. Breaking ChangesSupport for node.js 4.x and 9.x has been droppedThese versions of node.js are no longer supported. The
|
Update to this version instead 🚀 Release Notes for v2.0.1Implementation Changes
Dependencies
Documentation
Internal / Testing Changes
CommitsThe new version differs by 31 commits.
There are 31 commits in total. See the full diff |
Update to this version instead 🚀 Release Notes for v2.0.212-16-2018 10:48 PST FixesDependencies
DocumentationInternal / Testing Changes
CommitsThe new version differs by 29 commits.
There are 29 commits in total. See the full diff |
Update to this version instead 🚀 Release Notes for v3.0.001-16-2019 10:00 PST Welcome to 3.0 🎉 This release has it all. New features, bug fixes, breaking changes, performance improvements - something for everyone! The biggest addition to this release is support for the browser via Webpack. This release has breaking changes. This release has a few breaking changes. These changes are unlikely to affect most clients. BREAKING: Migration from
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
Version 1.0.0 of google-auth-library was just published.
The version 1.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
1.0.0TL;DR - This release includes a variety of bug fixes, new features, and breaking changes. Please take care.
New Features
TypeScript support
This library now includes a
d.ts
file by default - no @types package needed.Promise & Async/Await style APIs
Previous versions of the API were callback only. For every API that was callback based, there is also a Promise or Async/Await style variant. For example:
Ability to set maxExpiry when verifying tokens
The
OAuth2Client.verifyIdToken
method now accepts an optional maxExpiry field:Support for code_verifier and code_challenge with OAuth2
The
OAuth2Client.generateAuthUrl
method has been extended to support thecode_challenge_method
andcode_challenge
fields. There is also a convenience method to generate a verifier:Breaking changes
There have been multiple API breaking changes with this release. Please test your code accordingly after upgrading.
Default exports
The exports on the
google-auth-library
have changed. The default export of the library was previously a reference to theGoogleAuth
type, which was instantiated as a starting point for all consumers. Now, the module has no default export, but exports several other types common used.If you're using es6 imports via TypeScript or Babel, you can use es6 style as well:
Synchronous methods
Several public methods were switched from asynchronous to synchronous APIs. In all cases, the APIs were not doing anything asynchronous - they were just providing errors in callback form. This has been changed.
This change was made with the following methods:
GoogleAuth.fromJSON
GoogleAuth.fromAPIKey
JWTAccess. getRequestMetadata
JWTAccess.fromJSON
JWTClient.fromJSON
JWTClient.fromAPIKey
UserRefreshClient.fromJSON
Request -> Axios
The underlying transport used for HTTP requests was changed from
request
toaxios
. This will result in a number of breaking changes.Any calls to the
client.request(opts)
method will both accept different parameters, and have different return types. For the options passed to these methods, they are changing from a request options object to an axios request options object.In addition to the properties on the
opts
object changing, the signature of the callback is changing as well. The previous version of the library would return objects with a callback that reversedrequest
's default order:function (err, body, response)
. The signature of that callback has simply been changed tofunction (err, response)
, where the body of the response is available by looking atresponse.data
.In addition to these changes - the
request
andaxios
libraries handle errors differently.request
treats any completed request, even if it returns a non2xx
response code, as a success. Theerr
parameter will benull
orundefined
.axios
treats any non2xx
response as an error. Code which may have previous not worked, but also not thrown errors - may now start throwing errors.Parameter change for
verifyIdToken
The parameters to the
verifyIdToken
method of OAuth2Client have been changed. The function now accepts a single options object, and an optional callback. A function that used to look like this:Would now be rewritten as this:
Commits
The new version differs by 35 commits.
b6324ce
1.0.0
10b4d5d
feat: generate reference docs (#237)
0bc61e3
chore: cleanup samples and readme (#240)
b8a47ca
chore(package): update @types/node to version 9.3.0 (#238)
bc5ddd6
chore: accept options objects in constructors (#230)
f388b8c
chore(package): regen package-lock after merge
811293a
fix: cache promise instead of ProjectId (#216)
c2af227
chore: apply code style rules to javascript (#233)
a2fc08c
fix: improve typing around tokens and add sample (#219)
c717429
chore: license check as posttest (#232)
d248a00
chore: update deps (#229)
83ed61c
feat: add support for code_verifier in getToken (#218)
92d5fc2
chore: docs and samples for refresh token, update uris (#215)
bb9a74b
feat: allow passing maxExpiry to verifyIdToken (#223)
a9ab95e
docs: document proxy behavior and verify with a test (#221)
There are 35 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴