Currently the exported coerce function does not support having the pre release information as part of the returned data.
For coin craypto :
const { coerce } = require("semver")
// Current behaviour
coerce("1.9") // 1.9.0
coerce("1.9-dev") // throw
// Future behaviour
coerce("1.9-dev", { coercePrerelease: true }) // 1.9.0-dev
Originally posted by @Nokel81 in npm/node-semver#473
Currently the exported
coercefunction does not support having the pre release information as part of the returned data.For coin craypto :
Originally posted by @Nokel81 in npm/node-semver#473