Update google-auth-library to the latest version 🚀#164
Update google-auth-library to the latest version 🚀#164greenkeeper[bot] wants to merge 1 commit intomasterfrom
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.tsfile 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.verifyIdTokenmethod now accepts an optional maxExpiry field:Support for code_verifier and code_challenge with OAuth2
The
OAuth2Client.generateAuthUrlmethod has been extended to support thecode_challenge_methodandcode_challengefields. 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-libraryhave changed. The default export of the library was previously a reference to theGoogleAuthtype, 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.fromJSONGoogleAuth.fromAPIKeyJWTAccess. getRequestMetadataJWTAccess.fromJSONJWTClient.fromJSONJWTClient.fromAPIKeyUserRefreshClient.fromJSONRequest -> Axios
The underlying transport used for HTTP requests was changed from
requesttoaxios. 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
optsobject 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
requestandaxioslibraries handle errors differently.requesttreats any completed request, even if it returns a non2xxresponse code, as a success. Theerrparameter will benullorundefined.axiostreats any non2xxresponse as an error. Code which may have previous not worked, but also not thrown errors - may now start throwing errors.Parameter change for
verifyIdTokenThe parameters to the
verifyIdTokenmethod 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.
b6324ce1.0.010b4d5dfeat: generate reference docs (#237)0bc61e3chore: cleanup samples and readme (#240)b8a47cachore(package): update @types/node to version 9.3.0 (#238)bc5ddd6chore: accept options objects in constructors (#230)f388b8cchore(package): regen package-lock after merge811293afix: cache promise instead of ProjectId (#216)c2af227chore: apply code style rules to javascript (#233)a2fc08cfix: improve typing around tokens and add sample (#219)c717429chore: license check as posttest (#232)d248a00chore: update deps (#229)83ed61cfeat: add support for code_verifier in getToken (#218)92d5fc2chore: docs and samples for refresh token, update uris (#215)bb9a74bfeat: allow passing maxExpiry to verifyIdToken (#223)a9ab95edocs: 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 🌴