Skip to content

Commit d67cd00

Browse files
authored
[pub_semver] Remove dependency on package:meta (#2021)
1 parent 04667d7 commit d67cd00

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

pkgs/pub_semver/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
## 2.1.6
1+
## 2.2.0
22

3+
- Remove dependency on `package:meta`.
4+
- Mark `Version` class as `final` instead of with `@sealed`.
35
- Clarify that the lists returned by
46
the `preRelease` and `build` properties of `Version` and
57
the `ranges` property of `VersionUnion` should not be modified.

pkgs/pub_semver/lib/src/version.dart

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import 'dart:math' as math;
66

77
import 'package:collection/collection.dart';
8-
import 'package:meta/meta.dart' show sealed;
98

109
import 'patterns.dart';
1110
import 'version_constraint.dart';
@@ -15,8 +14,7 @@ import 'version_range.dart';
1514
const _equality = IterableEquality<Object>();
1615

1716
/// A parsed semantic version number.
18-
@sealed
19-
class Version implements VersionConstraint, VersionRange {
17+
final class Version implements VersionConstraint, VersionRange {
2018
/// No released version: i.e. "0.0.0".
2119
static Version get none => Version(0, 0, 0);
2220

pkgs/pub_semver/pubspec.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: pub_semver
2-
version: 2.1.6
2+
version: 2.2.0
33
description: >-
44
Versions and version constraints implementing pub's versioning policy. This
55
is very similar to vanilla semver, with a few corner cases.
@@ -15,7 +15,6 @@ environment:
1515

1616
dependencies:
1717
collection: ^1.15.0
18-
meta: ^1.3.0
1918

2019
dev_dependencies:
2120
dart_flutter_team_lints: ^3.0.0

0 commit comments

Comments
 (0)