Skip to content

Commit 75201f6

Browse files
committed
Release 6.10.0.
1 parent 57e04de commit 75201f6

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

json_serializable/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
## 6.10.0-wip
1+
## 6.10.0
22

33
- 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
48

59
## 6.10.0-dev
610

json_serializable/lib/src/json_enum_generator.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class JsonEnumGenerator extends GeneratorForAnnotation<JsonEnum> {
1818
ConstantReader annotation,
1919
BuildStep buildStep,
2020
) {
21+
print('running 2 on $element');
2122
if (element is! EnumElement2) {
2223
throw InvalidGenerationSourceError(
2324
'`@JsonEnum` can only be used on enum elements.',

json_serializable/lib/src/json_literal_generator.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class JsonLiteralGenerator extends GeneratorForAnnotation<JsonLiteral> {
2121
ConstantReader annotation,
2222
BuildStep buildStep,
2323
) async {
24+
print('running on $element');
2425
if (p.isAbsolute(annotation.read('path').stringValue)) {
2526
throw ArgumentError(
2627
'`annotation.path` must be relative path to the source file.',

json_serializable/lib/src/json_serializable_generator.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class JsonSerializableGenerator
5858
ConstantReader annotation,
5959
BuildStep buildStep,
6060
) {
61+
print('running 3 on $element');
6162
if (element is! ClassElement2 || element is EnumElement2) {
6263
throw InvalidGenerationSourceError(
6364
'`@JsonSerializable` can only be used on classes.',

json_serializable/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: json_serializable
2-
version: 6.10.0-wip
2+
version: 6.10.0
33
description: >-
44
Automatically generate code for converting to and from JSON by annotating
55
Dart classes.
@@ -17,7 +17,7 @@ resolution: workspace
1717
dependencies:
1818
analyzer: ^7.4.0
1919
async: ^2.10.0
20-
build: ^3.0.0-dev
20+
build: ^3.0.0
2121
build_config: ^1.1.0
2222
dart_style: '>=2.3.7 <4.0.0'
2323

@@ -28,7 +28,7 @@ dependencies:
2828
path: ^1.9.0
2929
pub_semver: ^2.1.4
3030
pubspec_parse: ^1.0.0
31-
source_gen: ^3.0.0-dev
31+
source_gen: ^3.0.0
3232
source_helper: ^1.3.4
3333

3434
dev_dependencies:
@@ -38,7 +38,7 @@ dev_dependencies:
3838
build_verify: ^3.0.0
3939
collection: ^1.17.0
4040
logging: ^1.0.0
41-
source_gen_test: ^1.3.0-dev
41+
source_gen_test: ^1.3.0
4242
test: ^1.24.4
4343
test_descriptor: ^2.0.0
4444
test_process: ^2.0.0

0 commit comments

Comments
 (0)