Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

v2.0.1

Choose a tag to compare

@sverweij sverweij released this 20 Jul 21:17
  • πŸ› make sure modules that have a version-with-a-postfix are correctly matched

When a module had a semver compliant version with a postfix (e.g. 2.0.0-beta-0 or 3.0.0-rc) semverTryRequire returned false, even when that version fell within the specified range (e.g. >=1.0.0 <4.0.0). The root cause turned out to be a surprising behaviour of semver.satisfies that would return false on semver.satisfies('3.0.0-rc', '>=1.0.0 <4.0.0'). Solved by first semver.coerce-ing the passed version before offering it to semver.satisfies.