Skip to content

Commit a277060

Browse files
authored
feat(dart_frog_cli): require dart_frog ^0.2.0 (#379)
1 parent 880e94e commit a277060

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

examples/counter/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ version: 1.0.0+1
44
publish_to: none
55

66
environment:
7-
sdk: ">=2.17.0 <3.0.0"
7+
sdk: ">=2.18.0 <3.0.0"
88

99
dependencies:
10-
dart_frog: ^0.1.0
10+
dart_frog: ^0.2.0
1111

1212
dev_dependencies:
1313
http: ^0.13.5

examples/echo/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ version: 1.0.0+1
44
publish_to: none
55

66
environment:
7-
sdk: ">=2.17.0 <3.0.0"
7+
sdk: ">=2.18.0 <3.0.0"
88

99
dependencies:
10-
dart_frog: ^0.1.0
10+
dart_frog: ^0.2.0
1111

1212
dev_dependencies:
1313
http: ^0.13.5

examples/hello_world/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ version: 1.0.0+1
44
publish_to: none
55

66
environment:
7-
sdk: ">=2.17.0 <3.0.0"
7+
sdk: ">=2.18.0 <3.0.0"
88

99
dependencies:
10-
dart_frog: ^0.1.0
10+
dart_frog: ^0.2.0
1111

1212
dev_dependencies:
1313
http: ^0.13.5

examples/todos/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ version: 1.0.0+1
44
publish_to: none
55

66
environment:
7-
sdk: ">=2.17.0 <3.0.0"
7+
sdk: ">=2.18.0 <3.0.0"
88

99
dependencies:
10-
dart_frog: ^0.1.0
10+
dart_frog: ^0.2.0
1111
in_memory_todos_data_source:
1212
path: packages/in_memory_todos_data_source
1313
todos_data_source:

packages/dart_frog_cli/lib/src/commands/create/templates/create_dart_frog_bundle.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dart_frog_cli/lib/src/runtime_compatibility.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DartFrogCompatibilityException implements Exception {
2121

2222
/// The version range of package:dart_frog
2323
/// supported by the current version of package:dart_frog_cli.
24-
const compatibleDartFrogVersion = '>=0.1.0 <0.2.0';
24+
const compatibleDartFrogVersion = '>=0.2.0 <0.3.0';
2525

2626
/// Whether current version of package:dart_frog_cli is compatible
2727
/// with the provided [version] of package:dart_frog.

packages/dart_frog_cli/test/src/runtime_compatibility_test.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ void main() {
2121
group('isCompatibleWithDartFrog', () {
2222
test('returns true when the dart_frog version is compatible', () {
2323
final compatibleVersions = [
24-
VersionConstraint.parse('0.1.0'),
25-
VersionConstraint.parse('^0.1.0'),
26-
VersionConstraint.parse('>=0.1.0 <0.2.0'),
24+
VersionConstraint.parse('0.2.0'),
25+
VersionConstraint.parse('^0.2.0'),
26+
VersionConstraint.parse('>=0.2.0 <0.3.0'),
2727
];
2828
for (final version in compatibleVersions) {
2929
expect(isCompatibleWithDartFrog(version), isTrue);
@@ -33,10 +33,11 @@ void main() {
3333
test('returns false when the dart_frog version is incompatible', () {
3434
final incompatibleVersions = [
3535
VersionConstraint.parse('any'),
36-
VersionConstraint.parse('0.2.0'),
37-
VersionConstraint.parse('^0.2.0'),
38-
VersionConstraint.parse('>=0.1.0 <=0.2.0'),
39-
VersionConstraint.parse('>=0.2.0 <0.3.0'),
36+
VersionConstraint.parse('0.1.0'),
37+
VersionConstraint.parse('^0.1.0'),
38+
VersionConstraint.parse('>=0.1.0 <0.2.0'),
39+
VersionConstraint.parse('>=0.2.0 <=0.3.0'),
40+
VersionConstraint.parse('>=1.0.0 <2.0.0'),
4041
];
4142
for (final version in incompatibleVersions) {
4243
expect(isCompatibleWithDartFrog(version), isFalse);

0 commit comments

Comments
 (0)