-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Release gh-badges to npm #1388
Comments
Yea, agreed, it would be a good idea to do a release. There are a few things that need doing:
|
What are the breaking changes for 2.0? |
|
How far away are we from this? Maybe we could get incremental improvements instead of blocking on all these changes if it delays the release so long? I.e. if there is another breaking change, just cut 3.0, version numbers are cheap. |
I'm curious about this too - 1.3.0 has a lot of security vulnerabilities and I'd like to upgrade. |
Looking over the tasks, I don't mind having a look at this job. I assume when you say "make sure we're publishing the files we need", you mean ensuring this is right: Lines 101 to 111 in 9b6ba77
@paulmelnikow - if I can spend a bit of time to get the docs into shape, check the tests and test a package, do you have access to |
I've submitted PR #2200 with some changes supporting this. It isn't an aspect of the project I've given any attention to before, but having done a bit of work on this, I think there are several other jobs we should do to improve the NPM package. There is one issue I've raised in #2200 which I think we should consider before publishing a 2.0.0 release (should we force the user to make a choice of text measurer in order to generate a badge?). Additionally, these shouldn't be blockers to a
Those issues all stem from the fact we are trying to break a package out of a monolith. IMO we should aim to treat the subset of our codebase which makes up the |
+1 for putting the package into a separate repo. We may be able to do this post-2.0 though. Lets get 2.0 released as soon as possible. |
Think we've got the details nailed down in #2200 now, but if I merge it I don't have permission to |
I do not have access to the npm package. I'll email Thaddée. Can you confirm you're https://www.npmjs.com/~chris48s on npm? Meanwhile let's not block. We could either publish to a scoped name like @shields/gh-badges and then roll things back into the main gh-badges when we get access, or pick a more meaningful name and plan to retire gh-badges. There's a way to mark old packages as not supported or provide a message encouraging users to switch. I haven't used it before, but I've seen those messages. "github badges" is not really what this package does… so perhaps make-badge? |
P.S. Thank you so much @chris48s for taking this on! |
👍 on a separate package.json for the library. I'd lean monorepo to make for a simpler test and release process for the production server. Though if we can get things better decoupled, and this into what feels like a "finished" state, I'd feel better about breaking it out. Checking in a Verdana character width table would be good, too, since it would remove the dependence on Verdana.ttf and resolve #1309. |
I had also thought about publishing a new package name if we need to. Did you already snag https://www.npmjs.com/org/shields or is that somebody else? |
Nooope, that is somebody else… |
Though there’s no need! Thaddee has added both of us to the gh-badges package. (I didn’t get a notification, and I’m not appearing on the public page, though it does show up in my list of packages.) |
Sorry it has taken a while to get this sorted, but I've just published 2.0.0-beta1 to NPM: https://www.npmjs.com/package/gh-badges/v/2.0.0-beta1 It would be useful to get a bit of feedback from those keen to get hold of a new release at this point. If there are no showstoppers, I'll cut a 2.0.0 stable. Having done a bit of work on this, there are clearly some additional improvements we can make, but they can be done in minor releases without BC-breaks. Now that I have access to publish it to NPM, we should be able to work on incremental improvements more easily :) |
Really glad to have a beta shipped! Should we open a new issue for the follow-ons, like the monorepo / repo splitting? By the way, we've removed all the vulnerable dependencies as of latest master, which is a big improvement compared to the beta1 release. |
Yep - nobody seems to have raised any major issues so I think in the next few days we should:
|
closing this as v2.0.0 is now published. |
The library readme on npm looks incredibly outdated and the examples in there don't work:
throws an error because
template
is not set (which is mentioned in the README on master).The text was updated successfully, but these errors were encountered: