This repository was archived by the owner on Apr 21, 2026. It is now read-only.
v2.0.1
- π 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-0or3.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 ofsemver.satisfiesthat would return false onsemver.satisfies('3.0.0-rc', '>=1.0.0 <4.0.0'). Solved by firstsemver.coerce-ing the passed version before offering it tosemver.satisfies.