|
| 1 | +## 2.1.5-wip |
| 2 | + |
| 3 | +- Require Dart `3.4.0`. |
| 4 | + |
| 5 | +## 2.1.4 |
| 6 | + |
| 7 | +- Added topics to `pubspec.yaml`. |
| 8 | + |
| 9 | +## 2.1.3 |
| 10 | + |
| 11 | +- Add type parameters to the signatures of the `Version.preRelease` and |
| 12 | + `Version.build` fields (`List` ==> `List<Object>`). |
| 13 | + [#74](https://github.com/dart-lang/pub_semver/pull/74). |
| 14 | +- Require Dart 2.17. |
| 15 | + |
| 16 | +## 2.1.2 |
| 17 | + |
| 18 | +- Add markdown badges to the readme. |
| 19 | + |
| 20 | +## 2.1.1 |
| 21 | + |
| 22 | +- Fixed the version parsing pattern to only accept dots between version |
| 23 | + components. |
| 24 | + |
| 25 | +## 2.1.0 |
| 26 | + |
| 27 | +- Added `Version.canonicalizedVersion` to help scrub leading zeros and highlight |
| 28 | + that `Version.toString()` preserves leading zeros. |
| 29 | +- Annotated `Version` with `@sealed` to discourage users from implementing the |
| 30 | + interface. |
| 31 | + |
| 32 | +## 2.0.0 |
| 33 | + |
| 34 | +- Stable null safety release. |
| 35 | +- `Version.primary` now throws `StateError` if the `versions` argument is empty. |
| 36 | + |
| 37 | +## 1.4.4 |
| 38 | + |
| 39 | +- Fix a bug of `VersionRange.union` where ranges bounded at infinity would get |
| 40 | + combined wrongly. |
| 41 | + |
| 42 | +# 1.4.3 |
| 43 | + |
| 44 | +- Update Dart SDK constraint to `>=2.0.0 <3.0.0`. |
| 45 | +- Update `package:collection` constraint to `^1.0.0`. |
| 46 | + |
| 47 | +## 1.4.2 |
| 48 | + |
| 49 | +* Set max SDK version to `<3.0.0`. |
| 50 | + |
| 51 | +## 1.4.1 |
| 52 | + |
| 53 | +* Fix a bug where there upper bound of a version range with a build identifier |
| 54 | + could accidentally be rewritten. |
| 55 | + |
| 56 | +## 1.4.0 |
| 57 | + |
| 58 | +* Add a `Version.firstPreRelease` getter that returns the first possible |
| 59 | + pre-release of a version. |
| 60 | + |
| 61 | +* Add a `Version.isFirstPreRelease` getter that returns whether a version is the |
| 62 | + first possible pre-release. |
| 63 | + |
| 64 | +* `new VersionRange()` with an exclusive maximum now replaces the maximum with |
| 65 | + its first pre-release version. This matches the existing semantics, where an |
| 66 | + exclusive maximum would exclude pre-release versions of that maximum. |
| 67 | + |
| 68 | + Explicitly representing this by changing the maximum version ensures that all |
| 69 | + operations behave correctly with respect to the special pre-release semantics. |
| 70 | + In particular, it fixes bugs where, for example, |
| 71 | + `(>=1.0.0 <2.0.0-dev).union(>=2.0.0-dev <2.0.0)` and |
| 72 | + `(>=1.0.0 <3.0.0).difference(^1.0.0)` wouldn't include `2.0.0-dev`. |
| 73 | + |
| 74 | +* Add an `alwaysIncludeMaxPreRelease` parameter to `new VersionRange()`, which |
| 75 | + disables the replacement described above and allows users to create ranges |
| 76 | + that do include the pre-release versions of an exclusive max version. |
| 77 | + |
| 78 | +## 1.3.7 |
| 79 | + |
| 80 | +* Fix more bugs with `VersionRange.intersect()`, `VersionRange.difference()`, |
| 81 | + and `VersionRange.union()` involving version ranges with pre-release maximums. |
| 82 | + |
| 83 | +## 1.3.6 |
| 84 | + |
| 85 | +* Fix a bug where constraints that only allowed pre-release versions would be |
| 86 | + parsed as empty constraints. |
| 87 | + |
| 88 | +## 1.3.5 |
| 89 | + |
| 90 | +* Fix a bug where `VersionRange.intersect()` would return incorrect results for |
| 91 | + pre-release versions with the same base version number as release versions. |
| 92 | + |
| 93 | +## 1.3.4 |
| 94 | + |
| 95 | +* Fix a bug where `VersionRange.allowsAll()`, `VersionRange.allowsAny()`, and |
| 96 | + `VersionRange.difference()` would return incorrect results for pre-release |
| 97 | + versions with the same base version number as release versions. |
| 98 | + |
| 99 | +## 1.3.3 |
| 100 | + |
| 101 | +* Fix a bug where `VersionRange.difference()` with a union constraint that |
| 102 | + covered the entire range would crash. |
| 103 | + |
| 104 | +## 1.3.2 |
| 105 | + |
| 106 | +* Fix a checked-mode error in `VersionRange.difference()`. |
| 107 | + |
| 108 | +## 1.3.1 |
| 109 | + |
| 110 | +* Fix a new strong mode error. |
| 111 | + |
| 112 | +## 1.3.0 |
| 113 | + |
| 114 | +* Make the `VersionUnion` class public. This was previously used internally to |
| 115 | + implement `new VersionConstraint.unionOf()` and `VersionConstraint.union()`. |
| 116 | + Now it's public so you can use it too. |
| 117 | + |
| 118 | +* Added `VersionConstraint.difference()`. This returns a constraint matching all |
| 119 | + versions matched by one constraint but not another. |
| 120 | + |
| 121 | +* Make `VersionRange` implement `Comparable<VersionRange>`. Ranges are ordered |
| 122 | + first by lower bound, then by upper bound. |
| 123 | + |
| 124 | +## 1.2.4 |
| 125 | + |
| 126 | +* Fix all remaining strong mode warnings. |
| 127 | + |
| 128 | +## 1.2.3 |
| 129 | + |
| 130 | +* Addressed three strong mode warnings. |
| 131 | + |
| 132 | +## 1.2.2 |
| 133 | + |
| 134 | +* Make the package analyze under strong mode and compile with the DDC (Dart Dev |
| 135 | + Compiler). Fix two issues with a private subclass of `VersionConstraint` |
| 136 | + having different types for overridden methods. |
| 137 | + |
| 138 | +## 1.2.1 |
| 139 | + |
| 140 | +* Allow version ranges like `>=1.2.3-dev.1 <1.2.3` to match pre-release versions |
| 141 | + of `1.2.3`. Previously, these didn't match, since the pre-release versions had |
| 142 | + the same major, minor, and patch numbers as the max; now an exception has been |
| 143 | + added if they also have the same major, minor, and patch numbers as the min |
| 144 | + *and* the min is also a pre-release version. |
| 145 | + |
| 146 | +## 1.2.0 |
| 147 | + |
| 148 | +* Add a `VersionConstraint.union()` method and a `new |
| 149 | + VersionConstraint.unionOf()` constructor. These each return a constraint that |
| 150 | + matches multiple existing constraints. |
| 151 | + |
| 152 | +* Add a `VersionConstraint.allowsAll()` method, which returns whether one |
| 153 | + constraint is a superset of another. |
| 154 | + |
| 155 | +* Add a `VersionConstraint.allowsAny()` method, which returns whether one |
| 156 | + constraint overlaps another. |
| 157 | + |
| 158 | +* `Version` now implements `VersionRange`. |
| 159 | + |
| 160 | +## 1.1.0 |
| 161 | + |
| 162 | +* Add support for the `^` operator for compatible versions according to pub's |
| 163 | + notion of compatibility. `^1.2.3` is equivalent to `>=1.2.3 <2.0.0`; `^0.1.2` |
| 164 | + is equivalent to `>=0.1.2 <0.2.0`. |
| 165 | + |
| 166 | +* Add `Version.nextBreaking`, which returns the next version that introduces |
| 167 | + breaking changes after a given version. |
| 168 | + |
| 169 | +* Add `new VersionConstraint.compatibleWith()`, which returns a range covering |
| 170 | + all versions compatible with a given version. |
| 171 | + |
| 172 | +* Add a custom `VersionRange.hashCode` to make it properly hashable. |
| 173 | + |
| 174 | +## 1.0.0 |
| 175 | + |
| 176 | +* Initial release. |
0 commit comments