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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: latest
Repo Added 12 Feb 2020 07:59PM UTC
Files 1
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

LAST BUILD ON BRANCH isaacs/do-not-default-to-latest-on-engine-mismatch
branch: isaacs/do-not-default-to-latest-on-engine-mismatch
CHANGE BRANCH
x
Reset
  • isaacs/do-not-default-to-latest-on-engine-mismatch
  • isaacs/check-engine
  • isaacs/de-fig
  • isaacs/known-vulnerable-option
  • isaacs/npm-normalize-package-bin
  • latest
  • main
  • mikemimik/feature/remove-figgy-dep

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

Relevant lines Covered
Build:
Build:
93 RELEVANT LINES 93 COVERED LINES
55.66 HITS PER LINE
Source Files on isaacs/do-not-default-to-latest-on-engine-mismatch
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
#22 isaacs/do-not-default-to-latest-on-engine-mismatch 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 ... push 28 Jul 2021 07:34PM UTC isaacs pending completion  
See All Builds (23)
  • Repo 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

© 2025 Coveralls, Inc