Skip to content

Currently the exported coerce function does not support having the pre release information as part of the returned data. #18

@pigcivil

Description

@pigcivil

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions