We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
例えば>=0.9.0 <1.0.0という範囲指定の時、1.0.0-alphaはこの範囲を満たすべきではないだろう。
>=0.9.0 <1.0.0
1.0.0-alpha
この範囲指定はすなわちユーザは0.9.xのみを使いたいのであって、1.0.0は使いたくないのだから、1.0.0-alphaはなおのこと使いたくないはずである。
0.9.x
1.0.0
しかし現状の実装では以下の通りである。
([pspm.SemVerRange]::new('>=0.9.0 <1.0.0')).IsSatisfied('1.0.0-alpha') => $true
これはSemantic Versioning 2.0.0の仕様上、0.9.0 < 1.0.0-alpha < 1.0.0であることに起因する。 通常の大小比較とは異なる特例処理が必要になる。
0.9.0 < 1.0.0-alpha < 1.0.0
The text was updated successfully, but these errors were encountered:
Fixed an issue where comparison result of SemVer with prerelease tag …
601bc50
…differs from npm-semver #46 #47
[SemVerRange] Add test for #46 #47
d789b7f
No branches or pull requests
例えば
>=0.9.0 <1.0.0
という範囲指定の時、1.0.0-alpha
はこの範囲を満たすべきではないだろう。この範囲指定はすなわちユーザは
0.9.x
のみを使いたいのであって、1.0.0
は使いたくないのだから、1.0.0-alpha
はなおのこと使いたくないはずである。しかし現状の実装では以下の通りである。
これはSemantic Versioning 2.0.0の仕様上、
0.9.0 < 1.0.0-alpha < 1.0.0
であることに起因する。通常の大小比較とは異なる特例処理が必要になる。
The text was updated successfully, but these errors were encountered: