Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 28902dd

Browse files
committed
1 parent 4e29ab5 commit 28902dd

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.2.3
2+
3+
* Addressed three strong mode warnings.
4+
15
# 1.2.2
26

37
* Make the package analyze under strong mode and compile with the DDC (Dart Dev

lib/src/version_constraint.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ abstract class VersionConstraint {
114114
var compatibleWith = matchCompatibleWith();
115115
if (compatibleWith != null) return compatibleWith;
116116

117-
var constraints = [];
117+
var constraints = <VersionConstraint>[];
118118

119119
while (true) {
120120
skipWhitespace();

lib/src/version_union.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class VersionUnion implements VersionConstraint {
5959

6060
(flattened as List).sort(compareMax);
6161

62-
var merged = [];
62+
var merged = <VersionRange>[];
6363
for (var constraint in flattened) {
6464
// Merge this constraint with the previous one, but only if they touch.
6565
if (merged.isEmpty ||
@@ -132,7 +132,7 @@ class VersionUnion implements VersionConstraint {
132132

133133
// Because both lists of constraints are ordered by minimum version, we can
134134
// safely move through them linearly here.
135-
var newConstraints = [];
135+
var newConstraints = <VersionRange>[];
136136
ourConstraints.moveNext();
137137
theirConstraints.moveNext();
138138
while (ourConstraints.current != null && theirConstraints.current != null) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: pub_semver
2-
version: 1.2.2
2+
version: 1.2.3
33
author: Dart Team <[email protected]>
44
description: >
55
Versions and version constraints implementing pub's versioning policy. This

0 commit comments

Comments
 (0)