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

Freshen up deps #93

Merged
merged 17 commits into from
Sep 13, 2020
Merged

Freshen up deps #93

merged 17 commits into from
Sep 13, 2020

Conversation

bcomnes
Copy link
Collaborator

@bcomnes bcomnes commented Aug 4, 2020

Looking to close #92. Starting with all the outdated deps to get those out of the way.

The deps that need code changes appear to be:

√ gh-release % npm outdated
Package  Current  Wanted  Latest  Location
ghauth     3.2.1   3.2.1   4.0.0  gh-release
shelljs    0.3.0   0.3.0   0.8.4  gh-release
yargs      2.3.0   2.3.0  15.4.1  gh-release

Working on that part next.

.travis.yml Outdated Show resolved Hide resolved
@bcomnes
Copy link
Collaborator Author

bcomnes commented Aug 4, 2020

Ok, deps are all up to date. This first and foremost will remove the security warnings.

Unfortunately, ghauth doesn't have a fix for the new endpoint yet, but I opened an upstream issue: rvagg/ghauth#26

I would hold off from releasing this (we can land the PR though) until I figure out a solution for the auth flow. It would be a nice contribution to ghuath to update it to the latest auth endpoint.

@bcomnes bcomnes marked this pull request as ready for review August 4, 2020 16:54
@bcomnes bcomnes removed the WIP label Aug 4, 2020
@bcomnes bcomnes changed the title Freshen up and fix deprecated API Freshen up deps Aug 4, 2020
@ungoldman
Copy link
Owner

If this isn't a breaking change why not release now?

@bcomnes
Copy link
Collaborator Author

bcomnes commented Aug 4, 2020

A bunch of deps raised the minimum node version required to run, so from that perspective its breaking, but if we already assumed LTS was always the minimum it wouldn't be. wdyt?

Breaking would be safer but more (easy) downstream work.

@bcomnes
Copy link
Collaborator Author

bcomnes commented Aug 4, 2020

The new auth flow would likely be breaking, so I figured I would roll all this in with that.

@ungoldman
Copy link
Owner

ok makes sense to me. just like to avoid leaving things unreleased in master when possible -- we're all busy and it's entirely possible the new auth flow won't get dealt with soon

@bcomnes
Copy link
Collaborator Author

bcomnes commented Aug 4, 2020

Sounds good. If the auth stuff stalls out for a bit, I can cut a release with just this. Whats your preference semverwise on just this portion of the work? (I think it should be major to be on the safe side).

@ungoldman
Copy link
Owner

considering this gets 16k downloads / month it would probably be better to be cautious and cut a major release -- I've been bitten enough by other module authors releasing breaking changes under a patch or minor to try to never do that to anyone else.

we could wait to merge this until the auth flow stuff is also ready to not do two major releases

@bcomnes
Copy link
Collaborator Author

bcomnes commented Aug 4, 2020

Ok sounds good. Ill make a call to merge over the next week or so depending on upstream interest in the new device auth flow.

@ungoldman
Copy link
Owner

thanks bret, sorry to complicate it. appreciate the work

@paulcpederson
Copy link
Contributor

Doing the good lordt's work here, @bcomnes much appreciated 👍

@bcomnes
Copy link
Collaborator Author

bcomnes commented Aug 6, 2020

Pr opened: rvagg/ghauth#27

Any reviews appreciated. Biggest change that affects gh-release is the change from authUrl to githubHost.

- the `options.authUrl` (default: `https://api.github.com/authorizations`) is removed in favor of `options.githubHost` (default `github.com`).

The reason being, there are a ton more URLs and subdomains involved now, so providing the host seems like the best thing to customize.

UPDATE:

This is no longer true. options.authUrl is untouched now.

@bcomnes
Copy link
Collaborator Author

bcomnes commented Aug 19, 2020

Looks like we've stalled out upstream. Thinking now that we should land this work, and then just break again when upstream gh auth is out. We have till November in theory.

@ungoldman
Copy link
Owner

@bcomnes we could fork ghauth until upstream is responsive -- not sure if rvagg is actively maintaining ghauth anymore

@bcomnes
Copy link
Collaborator Author

bcomnes commented Aug 20, 2020

Definitely an option I was thinking about. Would be nice to at least get his input on the desired outcome. I'll give it a couple of weeks.

@bcomnes
Copy link
Collaborator Author

bcomnes commented Sep 13, 2020

Ok, I forked ghauth for the time being, while we wait for upstream. Going to test this out a few more times and cut a major release.

Unaffected by the breaking changes other than dropped node versions.
How many more majors will yargs get! Nobody knows! At least it was easy.
Doesn't fix our deprecated endpoint issue, but it does update to the latest version of the dep.

I opened an upstream issue regarding the endpoint: rvagg/ghauth#26
@bcomnes
Copy link
Collaborator Author

bcomnes commented Sep 13, 2020

Found a bug where the error messaging is terrible when you try to release to an org that is lacking permissions for the new oauth scoped tokens. Going to improve that.

@bcomnes
Copy link
Collaborator Author

bcomnes commented Sep 13, 2020

Ok, all good. Can't really tell the difference between a 404 or a bad org permissions setting, so I'll just rely on the context of where the error happens. Will improve if needed.

Screen Shot 2020-09-13 at 10 05 48 AM

@bcomnes
Copy link
Collaborator Author

bcomnes commented Sep 13, 2020

OK, going to cut a major on this.

@bcomnes bcomnes merged commit 09abb70 into master Sep 13, 2020
@bcomnes bcomnes deleted the deps-refresh branch September 13, 2020 17:07
@bcomnes
Copy link
Collaborator Author

bcomnes commented Sep 13, 2020

Ok this is out in 4.0.0

@paulcpederson
Copy link
Contributor

Thanks @bcomnes !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub API Authorizations endpoint deprecated
4 participants