Skip to content

Commit c201cc9

Browse files
authored
Expand Analyzer constraints to allow 8.x (#2518)
Ignore deprecated analyzer APIs to publish a cross-compatible version of the test packages before bumping to require the latest version.
1 parent 2be5ca0 commit c201cc9

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

pkgs/test/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.26.3
2+
3+
* Expand pub constraint to allow the latest `analyzer`.
4+
15
## 1.26.2
26

37
* Graduate native assets from experiment to preview.

pkgs/test/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
version: 1.26.2
2+
version: 1.26.3
33
description: >-
44
A full featured library for writing and running Dart tests across platforms.
55
repository: https://github.com/dart-lang/test/tree/master/pkgs/test
@@ -10,7 +10,7 @@ environment:
1010
sdk: ^3.5.0
1111

1212
dependencies:
13-
analyzer: '>=6.0.0 <8.0.0'
13+
analyzer: '>=6.0.0 <9.0.0'
1414
async: ^2.5.0
1515
boolean_selector: ^2.1.0
1616
collection: ^1.15.0
@@ -36,8 +36,8 @@ dependencies:
3636
stream_channel: ^2.1.0
3737

3838
# Use an exact version until the test_api and test_core package are stable.
39-
test_api: 0.7.6
40-
test_core: 0.6.11
39+
test_api: 0.7.7
40+
test_core: 0.6.12
4141

4242
typed_data: ^1.3.0
4343
web_socket_channel: '>=2.0.0 <4.0.0'

pkgs/test_api/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.7.7
2+
3+
* Expand pub constraint to allow the latest `analyzer`.
4+
15
## 0.7.6
26

37
* Fix an assertion failure when using `setUpAll` or `tearDownAll` and running

pkgs/test_api/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test_api
2-
version: 0.7.6
2+
version: 0.7.7
33
description: >-
44
The user facing API for structuring Dart tests and checking expectations.
55
repository: https://github.com/dart-lang/test/tree/master/pkgs/test_api
@@ -21,7 +21,7 @@ dependencies:
2121
term_glyph: ^1.2.0
2222

2323
dev_dependencies:
24-
analyzer: '>=6.0.0 <8.0.0'
24+
analyzer: '>=6.0.0 <9.0.0'
2525
fake_async: ^1.2.0
2626
glob: ^2.0.0
2727
graphs: ^2.0.0

pkgs/test_core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.12
2+
3+
* Expand pub constraint to allow the latest `analyzer`.
4+
15
## 0.6.11
26

37
* Graduate native assets from experiment to preview.

pkgs/test_core/lib/src/runner/parse_metadata.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ class _Parser {
214214
Object? skip;
215215
for (var expression in expressions) {
216216
if (expression is InstanceCreationExpression) {
217+
// Replace name2 with name when bumping min analyzer dependency
218+
// ignore: deprecated_member_use
217219
var className = expression.constructorName.type.name2.lexeme;
218220

219221
if (className == 'Timeout') {
@@ -348,6 +350,8 @@ class _Parser {
348350

349351
String? _findConstructorNameFromInstantiation(
350352
InstanceCreationExpression constructor, String className) {
353+
// Replace name2 with name when bumping min analyzer dependency
354+
// ignore: deprecated_member_use
351355
var actualClassName = constructor.constructorName.type.name2.lexeme;
352356
var constructorName = constructor.constructorName.name?.name;
353357

pkgs/test_core/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test_core
2-
version: 0.6.11
2+
version: 0.6.12
33
description: A basic library for writing tests and running them on the VM.
44
repository: https://github.com/dart-lang/test/tree/master/pkgs/test_core
55
issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest
@@ -9,7 +9,7 @@ environment:
99
sdk: ^3.5.0
1010

1111
dependencies:
12-
analyzer: '>=6.0.0 <8.0.0'
12+
analyzer: '>=6.0.0 <9.0.0'
1313
args: ^2.0.0
1414
async: ^2.5.0
1515
boolean_selector: ^2.1.0
@@ -28,7 +28,7 @@ dependencies:
2828
stack_trace: ^1.10.0
2929
stream_channel: ^2.1.0
3030
# Use an exact version until the test_api package is stable.
31-
test_api: 0.7.6
31+
test_api: 0.7.7
3232
vm_service: '>=6.0.0 <16.0.0'
3333
yaml: ^3.0.0
3434

0 commit comments

Comments
 (0)