Skip to content

Commit

Permalink
Bump min SDK to 2.4.0 for bug in for-loop elements
Browse files Browse the repository at this point in the history
Close #1141

Bump min SDK in all packages for safety. Restore use of for-loop
elements in a top level variable since they work in this SDK.
  • Loading branch information
natebosch committed Jan 19, 2020
1 parent 7fdb196 commit 1066df8
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 13 deletions.
4 changes: 4 additions & 0 deletions pkgs/test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.11.2-dev

* Bump minimum SDK to `2.4.0` for safer usage of for-loop elements.

## 1.11.1

* Allow `test_api` `0.2.13` to work around a bug in the SDK version `2.3.0`.
Expand Down
8 changes: 4 additions & 4 deletions pkgs/test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: test
version: 1.11.1
version: 1.11.2-dev
description: A full featured library for writing and running Dart tests.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test

environment:
sdk: '>=2.3.0 <3.0.0'
sdk: '>=2.4.0 <3.0.0'

dependencies:
analyzer: ">=0.36.0 <0.40.0"
Expand All @@ -30,8 +30,8 @@ dependencies:
web_socket_channel: ^1.0.0
yaml: ^2.0.0
# Use an exact version until the test_api and test_core package are stable.
test_api: 0.2.13
test_core: 0.2.18
test_api: 0.2.14
test_core: 0.2.19

dev_dependencies:
fake_async: ^1.0.0
Expand Down
5 changes: 5 additions & 0 deletions pkgs/test_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.2.14

* Bump minimum SDK to `2.4.0` for safer usage of for-loop elements.


## 0.2.13

* Work around a bug in the `2.3.0` SDK by avoiding for-loop elements at the top
Expand Down
8 changes: 4 additions & 4 deletions pkgs/test_api/lib/src/backend/platform_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ final _universalValidVariables = {
'browser',
'js',
'blink',
'google'
}
..addAll(Runtime.builtIn.map((r) => r.identifier))
..addAll(OperatingSystem.all.map((os) => os.identifier));
'google',
for (var runtime in Runtime.builtIn) runtime.identifier,
for (var os in OperatingSystem.all) os.identifier,
};

/// An expression for selecting certain platforms, including operating systems
/// and browsers.
Expand Down
4 changes: 2 additions & 2 deletions pkgs/test_api/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: test_api
version: 0.2.13
version: 0.2.14-dev
description: A library for writing Dart tests.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_api

environment:
sdk: ">=2.3.0 <3.0.0"
sdk: ">=2.4.0 <3.0.0"

dependencies:
async: ^2.0.0
Expand Down
4 changes: 4 additions & 0 deletions pkgs/test_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.19-dev

* Bump minimum SDK to `2.4.0` for safer usage of for-loop elements.

## 0.2.18

* Allow `test_api` `0.2.13` to work around a bug in the SDK version `2.3.0`.
Expand Down
6 changes: 3 additions & 3 deletions pkgs/test_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: test_core
version: 0.2.18
version: 0.2.19-dev
description: A basic library for writing tests and running them on the VM.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_core

environment:
sdk: ">=2.3.0 <3.0.0"
sdk: ">=2.4.0 <3.0.0"

dependencies:
analyzer: ">=0.36.0 <0.40.0"
Expand All @@ -31,7 +31,7 @@ dependencies:
# properly constrains all features it provides.
matcher: ">=0.12.6 <0.12.7"
# Use an exact version until the test_api package is stable.
test_api: 0.2.13
test_api: 0.2.14

dependency_overrides:
test_api:
Expand Down

0 comments on commit 1066df8

Please sign in to comment.