File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
- ## 6.10.0-wip
1
+ ## 6.10.0
2
2
3
3
- Required ` analyzer: ^7.4.0 ` .
4
+ - Switch to analyzer element2 model and ` build: ^3.0.0-dev ` .
5
+ - Move ` package:collection ` to a dev dependency.
6
+ - Use new ` null-aware element ` feature in generated code.
7
+ - Require Dart 3.8
4
8
5
9
## 6.10.0-dev
6
10
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class JsonEnumGenerator extends GeneratorForAnnotation<JsonEnum> {
18
18
ConstantReader annotation,
19
19
BuildStep buildStep,
20
20
) {
21
+ print ('running 2 on $element ' );
21
22
if (element is ! EnumElement2 ) {
22
23
throw InvalidGenerationSourceError (
23
24
'`@JsonEnum` can only be used on enum elements.' ,
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class JsonLiteralGenerator extends GeneratorForAnnotation<JsonLiteral> {
21
21
ConstantReader annotation,
22
22
BuildStep buildStep,
23
23
) async {
24
+ print ('running on $element ' );
24
25
if (p.isAbsolute (annotation.read ('path' ).stringValue)) {
25
26
throw ArgumentError (
26
27
'`annotation.path` must be relative path to the source file.' ,
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class JsonSerializableGenerator
58
58
ConstantReader annotation,
59
59
BuildStep buildStep,
60
60
) {
61
+ print ('running 3 on $element ' );
61
62
if (element is ! ClassElement2 || element is EnumElement2 ) {
62
63
throw InvalidGenerationSourceError (
63
64
'`@JsonSerializable` can only be used on classes.' ,
Original file line number Diff line number Diff line change 1
1
name : json_serializable
2
- version : 6.10.0-wip
2
+ version : 6.10.0
3
3
description : >-
4
4
Automatically generate code for converting to and from JSON by annotating
5
5
Dart classes.
@@ -17,7 +17,7 @@ resolution: workspace
17
17
dependencies :
18
18
analyzer : ^7.4.0
19
19
async : ^2.10.0
20
- build : ^3.0.0-dev
20
+ build : ^3.0.0
21
21
build_config : ^1.1.0
22
22
dart_style : ' >=2.3.7 <4.0.0'
23
23
@@ -28,7 +28,7 @@ dependencies:
28
28
path : ^1.9.0
29
29
pub_semver : ^2.1.4
30
30
pubspec_parse : ^1.0.0
31
- source_gen : ^3.0.0-dev
31
+ source_gen : ^3.0.0
32
32
source_helper : ^1.3.4
33
33
34
34
dev_dependencies :
@@ -38,7 +38,7 @@ dev_dependencies:
38
38
build_verify : ^3.0.0
39
39
collection : ^1.17.0
40
40
logging : ^1.0.0
41
- source_gen_test : ^1.3.0-dev
41
+ source_gen_test : ^1.3.0
42
42
test : ^1.24.4
43
43
test_descriptor : ^2.0.0
44
44
test_process : ^2.0.0
You can’t perform that action at this time.
0 commit comments