• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

npm / npm-pick-manifest / #22
100%
latest: 100%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: latest
Ran 28 Jul 2021 07:34PM UTC
Jobs 1
Files 1
Run time 21s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#22

push

isaacs
fix: improve heuristics when dist-tags.latest is in range

Previously, there were two problems.

First problem, even though we heuristically choose the version that best
suits the stated 'engines' restriction, we were skipping that check when
the 'defaultTag' (ie, 'latest', typically) version was a semver match.

Second problem, the heuristic was improperly being set for 'staged' and
'restricted' packages, resulting in failure to sort those versions
properly.

Only choose the defaultTag version if it both a semver match, _and_
passes the engines/staged/restricted heuristics, and apply those
heuristics properly in the sort that comes later, if the defaultTag
version is not used.

Related-to: https://github.com/npm/rfcs/pull/405

125 of 125 branches covered (100.0%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

93 of 93 relevant lines covered (100.0%)

55.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #22.1 28 Jul 2021 07:34PM UTC 0
100.0
Source Files on build #22
Detailed source file information is not available for this build.
  • Back to Repo
  • 66b46ab6 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc