diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 6a92438d..b0e39913 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -6,7 +6,7 @@ environment: sdk: ^3.6.0 dependencies: - analyzer: '>=5.2.0 <7.0.0' + analyzer: '>=6.9.0 <8.0.0' build: ^2.0.0 source_gen: any diff --git a/source_gen/CHANGELOG.md b/source_gen/CHANGELOG.md index 14b39d41..f299d63a 100644 --- a/source_gen/CHANGELOG.md +++ b/source_gen/CHANGELOG.md @@ -1,4 +1,4 @@ -## 2.0.0-wip +## 2.0.0 - **Breaking Change**: Change `formatOutput` function to accept a language version parameter. @@ -8,13 +8,14 @@ - Document deduplication behavior for the output of `GeneratorForAnnotation.generateForAnnotatedElement`. - Support all the glob quotes. -- Require `analyzer: ^6.9.0` -- Require Dart 3.6.0 +- Require `analyzer: '>=6.9.0 <8.0.0'` +- Support the latest `package:dart_style` - `LibraryBuilder`, `PartBuilder`, and `SharedPartBuilder` now take an optional `writeDescriptions` boolean. When set to `false`, headers and generator descriptions for the files will not be included in the builder output. - Include `//dart format width=80` comments in files generated by a `LibraryBuilder` or `PartBuilder` and formatted with the default callback. +- Require Dart 3.6.0 ## 1.5.0 diff --git a/source_gen/pubspec.yaml b/source_gen/pubspec.yaml index 0487df05..c24723e5 100644 --- a/source_gen/pubspec.yaml +++ b/source_gen/pubspec.yaml @@ -1,5 +1,5 @@ name: source_gen -version: 2.0.0-wip +version: 2.0.0 description: >- Source code generation builders and utilities for the Dart build system repository: https://github.com/dart-lang/source_gen/tree/master/source_gen @@ -10,10 +10,10 @@ environment: sdk: ^3.6.0 dependencies: - analyzer: ^6.9.0 + analyzer: '>=6.9.0 <8.0.0' async: ^2.5.0 build: ^2.1.0 - dart_style: ^2.3.7 + dart_style: '>=2.3.7 <4.0.0' glob: ^2.0.0 path: ^1.8.0 pub_semver: ^2.1.4