Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: README.md

Issue 1149543002: Change the pre-release range semantics. (Closed) Base URL: git@github.com:dart-lang/pub_semver@master
Patch Set: Code review changes Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/version_range.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
diff --git a/README.md b/README.md
index 3f9558f422d69bcf75009ee3270f36096ccf883f..b359754077e6f5d8f0480e5f23c61da0523bc8a0 100644
--- a/README.md
+++ b/README.md
@@ -33,10 +33,12 @@ spec. It differs from semver in a few corner cases:
unstable versions of `2.0.0`'s API, which is what pre-release versions
represent.
- To handle that, `<` version ranges to not allow pre-release versions of the
- maximum unless the max is itself a pre-release. In other words, a `<2.0.0`
- constraint will prohibit not just `2.0.0` but any pre-release of `2.0.0`.
- However, `<2.0.0-beta` will exclude `2.0.0-beta` but allow `2.0.0-alpha`.
+ To handle that, `<` version ranges don't allow pre-release versions of the
+ maximum unless the max is itself a pre-release, or the min is a pre-release
+ of the same version. In other words, a `<2.0.0` constraint will prohibit not
+ just `2.0.0` but any pre-release of `2.0.0`. However, `<2.0.0-beta` will
+ exclude `2.0.0-beta` but allow `2.0.0-alpha`. Likewise, `>2.0.0-alpha
+ <2.0.0` will exclude `2.0.0-alpha` but allow `2.0.0-beta`.
* **Pre-release versions are avoided when possible.** The above case
handles pre-release versions at the top of the range, but what about in
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/version_range.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698