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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: latest
Ran 28 Jul 2021 07:34PM UTC
Files 1
Run time 4s
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

28 Jul 2021 07:34PM UTC coverage: 100.0%. First build
#22.1

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 %.

93 of 93 relevant lines covered (100.0%)

55.66 hits per line

Source Files on job #22.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22
  • 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