fix(cli): pass options to semver.valid() for loose version validation by mldangelo · Pull Request #835 · npm/node-semver (original) (raw)

mbtools

mbtools added a commit to abapPM/ABAP-SemVer that referenced this pull request

Jan 14, 2026

@mbtools

@mldangelo

The --loose flag was not being applied when validating input versions. The options object was already computed and passed to coerce() and satisfies(), but the filter() call using semver.valid(v) was missing the options parameter.

This meant that loose versions like 1.2.3beta would fail validation even when -l was specified, despite the documentation stating that -l --loose will "Interpret versions and ranges loosely".

mbtools

wraithgar

wraithgar pushed a commit that referenced this pull request

Feb 5, 2026

@github-actions

ghost

This was referenced

May 9, 2026

This was referenced

May 16, 2026

This was referenced

May 24, 2026

This was referenced

May 31, 2026

This was referenced

Jun 7, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})