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