Skip to content
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

BREAKING CHANGE: export class types and remove properties from GoogleAuth #202

Merged
merged 1 commit into from
Dec 1, 2017
Merged

Conversation

JustinBeckwith
Copy link
Contributor

When writing samples, I noticed that today I need to instantiate a new GoogleAuth, then from that instance you get access to the types needed to create new JWT, UserRefreshClient, and OAuth2Client objects. That's silly. Instead, I just added them to the exports on the index.

@JustinBeckwith JustinBeckwith requested review from ofrobots and a team December 1, 2017 04:37
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 1, 2017
Copy link
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a few nits:

  • As per https://conventionalcommits.org/ the body or the footer should have the 'BREAKING CHANGE' prefix, not the title.
  • Since you didn't change package.json, it is preferable not to include the delta to package-lock.json in the patch, unless you had an explicit intent to upgrade the deps. If possible, drop that file from the patch. That will make cherry-picking / reverting / rebasing easier going forward.

BREAKING CHANGE: The IAMAuth, Compute, JWT, JWTAccess, OAuth2, and UserRefreshClient types are no longer available as public properties on the GoogleAuth object.  They are now exported directly from the top level module.
@JustinBeckwith
Copy link
Contributor Author

Good feedback :) Addressed all the things!

@JustinBeckwith JustinBeckwith merged commit 2bf0c28 into googleapis:next Dec 1, 2017
ofrobots pushed a commit that referenced this pull request Jan 9, 2018
BREAKING CHANGE: The IAMAuth, Compute, JWT, JWTAccess, OAuth2, and UserRefreshClient types are no longer available as public properties on the GoogleAuth object.  They are now exported directly from the top level module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants