Skip to content

Commit 947a0e2

Browse files
authored
Support latest analyzer and dart_style, prepare v2 release (#736)
1 parent 49a96d8 commit 947a0e2

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ environment:
66
sdk: ^3.6.0
77

88
dependencies:
9-
analyzer: '>=5.2.0 <7.0.0'
9+
analyzer: '>=6.9.0 <8.0.0'
1010
build: ^2.0.0
1111
source_gen: any
1212

source_gen/CHANGELOG.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 2.0.0-wip
1+
## 2.0.0
22

33
- **Breaking Change**: Change `formatOutput` function to accept a language
44
version parameter.
@@ -8,13 +8,14 @@
88
- Document deduplication behavior for the output of
99
`GeneratorForAnnotation.generateForAnnotatedElement`.
1010
- Support all the glob quotes.
11-
- Require `analyzer: ^6.9.0`
12-
- Require Dart 3.6.0
11+
- Require `analyzer: '>=6.9.0 <8.0.0'`
12+
- Support the latest `package:dart_style`
1313
- `LibraryBuilder`, `PartBuilder`, and `SharedPartBuilder` now take an optional
1414
`writeDescriptions` boolean. When set to `false`, headers and generator
1515
descriptions for the files will not be included in the builder output.
1616
- Include `//dart format width=80` comments in files generated by a
1717
`LibraryBuilder` or `PartBuilder` and formatted with the default callback.
18+
- Require Dart 3.6.0
1819

1920
## 1.5.0
2021

source_gen/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: source_gen
2-
version: 2.0.0-wip
2+
version: 2.0.0
33
description: >-
44
Source code generation builders and utilities for the Dart build system
55
repository: https://github.com/dart-lang/source_gen/tree/master/source_gen
@@ -9,10 +9,10 @@ environment:
99
sdk: ^3.6.0
1010

1111
dependencies:
12-
analyzer: ^6.9.0
12+
analyzer: '>=6.9.0 <8.0.0'
1313
async: ^2.5.0
1414
build: ^2.1.0
15-
dart_style: ^2.3.7
15+
dart_style: '>=2.3.7 <4.0.0'
1616
glob: ^2.0.0
1717
path: ^1.8.0
1818
pub_semver: ^2.1.4

0 commit comments

Comments
 (0)