question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in npm badges

See original GitHub issue

Again. 😄

@babel/core is cyan, but shouldn’t be, because it is latest.

The cyan should be only if non-latest dist-tag is passed, no matter it is scoped or not.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
tunnckoCorecommented, Aug 25, 2018

Babel is specific case, that was said…

But i won’t continue, cuz i’m seeing that other 👍 all the time, so i will fold that. ;/

2reactions
amiocommented, Aug 25, 2018

Consider @babel/core’s case, I think latest doesn’t always mean “stable” or “best” (maybe “recommended”?).

In our cases, the cyan color doesn’t (shouldn’t) mean stable or unstable, just like the orange doesn’t say it’s unstable (we use a lot 0.x packages in production).

semColor() is meant to reflect semver’s convention:

  • Orange => the MAJOR version is 0
  • Cyan => the version has pre-release meta
  • Blue => the version’s MAJOR > 0 and doesn’t include any pre-release tag, seems like stable.

If there’s a platform specific case, it should be handled in services’s live function, other than semColor().

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm dev dependency version badge not working with scoped ...
The reason this isn't working is because you're missing the user/org of the repo. I think you're trying to do this:.
Read more >
gh-badges - npm
Start using gh-badges in your project by running `npm i gh-badges`. ... gh-badges will no longer receive fixes for bugs or security issues....
Read more >
Last commit status "NOT RUN" with badge is "FAILED" for npm ...
Hi everyone! I have a bit problem in the badge status. I'm not sure if it is a bug or an improvement, but...
Read more >
loggin-js-badges - npm Package Health Analysis | Snyk
Learn more about loggin-js-badges: package health score, popularity, security, ... Ensure you're using the healthiest npm packages ... Found a bug?
Read more >
Gh-badges NPM | npm.io
Check Gh-badges 2.2.2 package - Last release 2.2.2 with CC0-1.0 licence at our NPM ... gh-badges will no longer receive fixes for bugs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found