Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Update dependency google-auth-library to v2 - autoclosed #243

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 19, 2018

This PR contains the following updates:

Package Type Update Change References
google-auth-library dependencies major ^1.5.0 -> ^2.0.0 source

Release Notes

google/google-auth-library-nodejs

v2.0.2

Compare Source

12-16-2018 10:48 PST

Fixes
  • fix(types): export GCPEnv type (#​569)
  • fix: use post for token revocation (#​524)
Dependencies
  • fix(deps): update dependency lru-cache to v5 (#​541)
Documentation
  • docs: add ref docs again (#​553)
  • docs: clean up the readme (#​554)
Internal / Testing Changes
  • chore(deps): update dependency @​types/sinon to v7 (#​568)
  • refactor: use execa for install tests, run eslint on samples (#​559)
  • chore(build): inject yoshi automation key (#​566)
  • chore: update nyc and eslint configs (#​565)
  • chore: fix publish.sh permission +x (#​563)
  • fix(build): fix Kokoro release script (#​562)
  • build: add Kokoro configs for autorelease (#​561)
  • chore: always nyc report before calling codecov (#​557)
  • chore: nyc ignore build/test by default (#​556)
  • chore(build): update the prettier and renovate config (#​552)
  • chore: update license file (#​551)
  • fix(build): fix system key decryption (#​547)
  • chore(deps): update dependency typescript to ~3.2.0 (#​546)
  • chore(deps): unpin sinon (#​544)
  • refactor: drop non-required modules (#​542)
  • chore: add synth.metadata (#​537)
  • fix: Pin @​types/sinon to last compatible version (#​538)
  • chore(deps): update dependency gts to ^0.9.0 (#​531)
  • chore: update eslintignore config (#​530)
  • chore: drop contributors from multiple places (#​528)
  • chore: use latest npm on Windows (#​527)
  • chore: update CircleCI config (#​523)
  • chore: include build in eslintignore (#​516)

v2.0.1

Compare Source

Implementation Changes
  • fix: verifyIdToken will never return null (#​488)
  • Update the url to application default credentials (#​470)
  • Update omitted parameter 'hd' (#​467)
Dependencies
  • chore(deps): update dependency nock to v10 (#​501)
  • chore(deps): update dependency sinon to v7 (#​502)
  • chore(deps): update dependency typescript to v3.1.3 (#​503)
  • chore(deps): update dependency gh-pages to v2 (#​499)
  • chore(deps): update dependency typedoc to ^0.13.0 (#​497)
Documentation
  • docs: Remove code format from Application Default Credentials (#​483)
  • docs: replace google/ with googleapis/ in URIs (#​472)
  • Fix typo in readme (#​469)
  • Update samples and docs for 2.0 (#​459)
Internal / Testing Changes
  • chore: update issue templates (#​509)
  • chore: remove old issue template (#​507)
  • build: run tests on node11 (#​506)
  • chore(build): drop hard rejection and update gts in the kitchen test (#​504)
  • chores(build): do not collect sponge.xml from windows builds (#​500)
  • chores(build): run codecov on continuous builds (#​495)
  • chore: update new issue template (#​494)
  • build: fix codecov uploading on Kokoro (#​490)
  • test: move kitchen sink tests to system-test (#​489)
  • Update kokoro config (#​482)
  • fix: export additional typescript types (#​479)
  • Don't publish sourcemaps (#​478)
  • test: remove appveyor config (#​477)
  • Enable prefer-const in the eslint config (#​473)
  • Enable no-var in eslint (#​471)
  • Update CI config (#​468)
  • Retry npm install in CI (#​465)
  • Update Kokoro config (#​462)

v2.0.0

Compare 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 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.

Old code
const client = await auth.getClient();
const res = await client.getRequestMetadata();
const headers = res.headers;
New code
const client = await auth.getClient();
const headers = await client.getRequestHeaders();
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) {
     return callback(err);
   }
  if (authClient.createScopedRequired && authClient.createScopedRequired()) {
    authClient = authClient.createScoped([
      'https://www.googleapis.com/auth/cloud-platform'
    ]);
  }
  callback(null, authClient);
});
New code
const client = await auth.getClient({
  scopes: ['https://www.googleapis.com/auth/cloud-platform']
});
The refreshAccessToken method has been deprecated

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)
Bug Fixes
  • fix: support HTTPS proxies (#​405)
  • fix: export missing interfaces (#​437)
  • fix: Use new auth URIs (#​434)
  • docs: Fix broken link (#​423)
  • fix: surface file read streams (#​413)
  • fix: prevent unhandled rejections by avoid .catch (#​404)
  • fix: use gcp-metadata for compute credentials (#​409)
  • Add Code of Conduct
  • fix: Warn when using user credentials from the Cloud SDK (#​399)
  • fix: use Buffer.from instead of new Buffer (#​400)
  • fix: Fix link format in README.md (#​385)
Breaking changes
  • chore: deprecate getRequestMetadata (#​414)
  • fix: deprecate the createScopedRequired methods (#​410)
  • fix: drop support for node.js 4.x and 9.x (#​417)
  • fix: deprecate the refreshAccessToken methods (#​411)
  • fix: deprecate the getDefaultProjectId method (#​402)
  • fix: drop support for node.js 4 (#​401)
Build / Test changes
  • Run synth to make build tools consistent (#​455)
  • Add a package.json for samples and cleanup README (#​454)
  • chore(deps): update dependency typedoc to ^0.12.0 (#​453)
  • chore: move examples => samples + synth (#​448)
  • chore(deps): update dependency nyc to v13 (#​452)
  • chore(deps): update dependency pify to v4 (#​447)
  • chore(deps): update dependency assert-rejects to v1 (#​446)
  • chore: ignore package-lock.json (#​445)
  • chore: update renovate config (#​442)
  • chore(deps): lock file maintenance (#​443)
  • chore: remove greenkeeper badge (#​440)
  • test: throw on deprecation
  • chore: add intelli-espower-loader for running tests (#​430)
  • chore(deps): update dependency typescript to v3 (#​432)
  • chore(deps): lock file maintenance (#​431)
  • test: use strictEqual in tests (#​425)
  • chore(deps): lock file maintenance (#​428)
  • chore: Configure Renovate (#​424)
  • chore: Update gts to the latest version 🚀 (#​422)
  • chore: update gcp-metadata for isAvailable fix (#​420)
  • refactor: use assert.reject in the tests (#​415)
  • refactor: cleanup types for certificates (#​412)
  • test: run tests with hard-rejection (#​397)
  • cleanup: straighten nested try-catch (#​394)
  • test: getDefaultProjectId should prefer config (#​388)
  • chore(package): Update gts to the latest version 🚀 (#​387)
  • chore(package): update sinon to version 6.0.0 (#​386)

Renovate configuration

📅 Schedule: "after 9am and before 3pm" (UTC).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

@renovate renovate bot force-pushed the renovate/google-auth-library-2.x branch from 8d7e3c7 to dde42af Compare December 19, 2018 05:09
@renovate renovate bot changed the title Update dependency google-auth-library to v2 fix(deps): update dependency google-auth-library to v2 Dec 19, 2018
@renovate renovate bot force-pushed the renovate/google-auth-library-2.x branch 6 times, most recently from 43c4c4c to 5c8398c Compare December 21, 2018 03:52
@renovate renovate bot force-pushed the renovate/google-auth-library-2.x branch 6 times, most recently from 228b3f8 to 5f9659e Compare January 9, 2019 01:31
@renovate renovate bot force-pushed the renovate/google-auth-library-2.x branch 3 times, most recently from a65ca39 to 99ff32f Compare January 10, 2019 23:39
@mayurkale22
Copy link
Member

This build failure is related to googleapis/google-auth-library-nodejs#520, looks like we need to first update TypeScript -> 3.1.x.

@renovate renovate bot force-pushed the renovate/google-auth-library-2.x branch 2 times, most recently from 268c01a to d2eef64 Compare January 11, 2019 20:43
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

@mayurkale22 mayurkale22 self-requested a review January 11, 2019 22:06
@renovate renovate bot force-pushed the renovate/google-auth-library-2.x branch from d2eef64 to d43dd48 Compare January 12, 2019 22:48
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

@codecov-io
Copy link

Codecov Report

Merging #243 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #243   +/-   ##
=======================================
  Coverage   94.81%   94.81%           
=======================================
  Files         110      110           
  Lines        7771     7771           
  Branches      714      714           
=======================================
  Hits         7368     7368           
  Misses        403      403

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 239a9e2...d43dd48. Read the comment docs.

1 similar comment
@codecov-io
Copy link

Codecov Report

Merging #243 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #243   +/-   ##
=======================================
  Coverage   94.81%   94.81%           
=======================================
  Files         110      110           
  Lines        7771     7771           
  Branches      714      714           
=======================================
  Hits         7368     7368           
  Misses        403      403

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 239a9e2...d43dd48. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Jan 12, 2019

Codecov Report

Merging #243 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #243   +/-   ##
=======================================
  Coverage   94.58%   94.58%           
=======================================
  Files         110      110           
  Lines        7421     7421           
  Branches      680      680           
=======================================
  Hits         7019     7019           
  Misses        402      402

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b76356...bce5720. Read the comment docs.

@renovate renovate bot changed the title fix(deps): update dependency google-auth-library to v2 Update dependency google-auth-library to v2 Jan 12, 2019
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

@renovate renovate bot force-pushed the renovate/google-auth-library-2.x branch from d43dd48 to bce5720 Compare January 15, 2019 02:00
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

@renovate renovate bot force-pushed the renovate/google-auth-library-2.x branch from bce5720 to 2268615 Compare January 16, 2019 06:57
@renovate renovate bot changed the title Update dependency google-auth-library to v2 Update dependency google-auth-library to v2 - autoclosed Jan 16, 2019
@renovate renovate bot closed this Jan 16, 2019
@renovate renovate bot deleted the renovate/google-auth-library-2.x branch January 16, 2019 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants