diff --git a/pkgs/pub_semver/CHANGELOG.md b/pkgs/pub_semver/CHANGELOG.md index 4f6fc26fa0..8689e4acd7 100644 --- a/pkgs/pub_semver/CHANGELOG.md +++ b/pkgs/pub_semver/CHANGELOG.md @@ -1,5 +1,7 @@ -## 2.1.6 +## 2.2.0 +- Remove dependency on `package:meta`. +- Mark `Version` class as `final` instead of with `@sealed`. - Clarify that the lists returned by the `preRelease` and `build` properties of `Version` and the `ranges` property of `VersionUnion` should not be modified. diff --git a/pkgs/pub_semver/lib/src/version.dart b/pkgs/pub_semver/lib/src/version.dart index 732aea0bb5..1c0de26734 100644 --- a/pkgs/pub_semver/lib/src/version.dart +++ b/pkgs/pub_semver/lib/src/version.dart @@ -5,7 +5,6 @@ import 'dart:math' as math; import 'package:collection/collection.dart'; -import 'package:meta/meta.dart' show sealed; import 'patterns.dart'; import 'version_constraint.dart'; @@ -15,8 +14,7 @@ import 'version_range.dart'; const _equality = IterableEquality(); /// A parsed semantic version number. -@sealed -class Version implements VersionConstraint, VersionRange { +final class Version implements VersionConstraint, VersionRange { /// No released version: i.e. "0.0.0". static Version get none => Version(0, 0, 0); diff --git a/pkgs/pub_semver/pubspec.yaml b/pkgs/pub_semver/pubspec.yaml index ac0aca7be0..438671d86d 100644 --- a/pkgs/pub_semver/pubspec.yaml +++ b/pkgs/pub_semver/pubspec.yaml @@ -1,5 +1,5 @@ name: pub_semver -version: 2.1.6 +version: 2.2.0 description: >- Versions and version constraints implementing pub's versioning policy. This is very similar to vanilla semver, with a few corner cases. @@ -15,7 +15,6 @@ environment: dependencies: collection: ^1.15.0 - meta: ^1.3.0 dev_dependencies: dart_flutter_team_lints: ^3.0.0