node-semver: [BUG] pre-release versions not matched when using `||`
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Here are the >=5 stable releases:
Here are the >=5.2.0-beta pre-releases:
But when put together with an ||, there are no pre-releases:
Supprisingly, this works correctly with >=5.1.0-beta:
Expected Behavior
I expect the stable 5 and the pre-release 5.2 to be listed.
Steps To Reproduce
- In this environment… https://semver.npmjs.com/#syntax-examples
- With this config…
typescript,>=5 || >=5.2.0-beta - Run ‘…’ ‘List Versions’ button
- See error…
Environment
- npm: ?
- Node: ?
- OS: ?
- platform: ?
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 20 (4 by maintainers)
But it’s all good, I’ve raised one myself https://github.com/npm/feedback/discussions/999, please upvote it so that this feature can be fixed.
Ok thanks, I opened https://github.com/npm/feedback/discussions/995.
@mbtools So in my case, I want to support both the stable version of
5, and the current pre-releases of5. How can I select that?