Skip to content

Commit a086f2b

Browse files
authored
Fix deprecation in analyzer API (#764)
Update min versions of a number of packages
1 parent 6c9702e commit a086f2b

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ environment:
66
sdk: ^3.7.0
77

88
dependencies:
9-
analyzer: '>=6.9.0 <8.0.0'
9+
analyzer: ^7.4.0
1010
build: ^3.0.0-dev
1111
source_gen: any
1212

example_usage/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ dev_dependencies:
1313
build_runner: ^2.0.0
1414
build_verify: ^3.0.0
1515
dart_flutter_team_lints: ^3.1.0
16-
test: ^1.5.1
16+
test: ^1.25.9

source_gen/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
do resolution need to switch to the new API, see
55
https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/element_model_migration_guide.md.
66
For questions please use https://github.com/dart-lang/build/discussions.
7+
- Updated the minimum package versions for a number of dependencies.
78
- Require Dart 3.7.0
89

910
## 2.0.0

source_gen/lib/src/builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class _Builder extends Builder {
189189
log.severe(
190190
'''
191191
An error `${e.runtimeType}` occurred while formatting the generated source for
192-
`${library.identifier}`
192+
`${library.uri}`
193193
which was output to
194194
`${outputId.path}`.
195195
This may indicate an issue in the generator, the input source code, or in the

source_gen/pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ environment:
99
sdk: ^3.7.0
1010

1111
dependencies:
12-
analyzer: '>=6.9.0 <8.0.0'
13-
async: ^2.5.0
12+
analyzer: ^7.4.0
13+
async: ^2.10.0
1414
build: ^3.0.0-dev
15-
dart_style: '>=2.3.7 <4.0.0'
15+
dart_style: ^3.0.0
1616
glob: ^2.0.0
17-
path: ^1.8.0
17+
path: ^1.9.0
1818
pub_semver: ^2.1.4
1919
source_span: ^1.8.0
20-
yaml: ^3.0.0
20+
yaml: ^3.1.2
2121

2222
dev_dependencies:
2323
_test_annotations:
2424
path: ../_test_annotations
2525
build_test: ^3.3.0-dev
2626
dart_flutter_team_lints: ^3.1.0
27-
logging: ^1.0.0
27+
logging: ^1.2.0
2828
term_glyph: ^1.2.0
29-
test: ^1.16.0
29+
test: ^1.25.9

0 commit comments

Comments
 (0)