Skip to content

Commit

Permalink
Support latest analyzer and dart_style, prepare v2 release (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Dec 17, 2024
1 parent 49a96d8 commit 947a0e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions source_gen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 2.0.0-wip
## 2.0.0

- **Breaking Change**: Change `formatOutput` function to accept a language
version parameter.
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions source_gen/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -9,10 +9,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
Expand Down

0 comments on commit 947a0e2

Please sign in to comment.