Skip to content

Commit c6cdfcf

Browse files
authored
Update analyzer to latest, prepare v6.13.2 (#1571)
1 parent fba9479 commit c6cdfcf

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

analysis_options.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ linter:
2626
- prefer_final_locals
2727
- sort_child_properties_last
2828
- unnecessary_breaks
29-
- unnecessary_ignore
29+
# TODO: Add this back when the SDK on CI is at least 3.13.0-76.0.dev
30+
#- unnecessary_ignore
3031
- use_full_hex_values_for_flutter_colors
3132
- use_null_aware_elements
3233
- use_string_buffers

json_serializable/CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 6.13.2
2+
3+
- Require `analyzer: '>=10.0.0 <14.0.0'`
4+
15
## 6.13.1
26

37
- Improve error message when generating code for `Record` types with unsupported
@@ -11,9 +15,9 @@
1115

1216
## 6.13.0
1317

14-
- Fix schema generation for many different types of fields.
18+
- Fix schema generation for many different types of fields.
1519
([#1549](https://github.com/google/json_serializable.dart/issues/1549))
16-
- Support `JsonSerializable.dateTimeUtc` configuration option.
20+
- Support `JsonSerializable.dateTimeUtc` configuration option.
1721
([#1371](https://github.com/google/json_serializable.dart/issues/1371))
1822
- Remove `json_schema` from `dependencies` (it is only used in tests).
1923

@@ -78,7 +82,7 @@
7882

7983
## 6.9.3
8084

81-
- Error out if the target package does not have a language version of `3.0` or
85+
- Error out if the target package does not have a language version of `3.0` or
8286
greater.
8387

8488
## 6.9.2
@@ -101,7 +105,7 @@
101105
- Add type arguments to `Map` literals used for `Record` serialization.
102106
- Add support for `JsonSerializable(createJsonKeys: true)`.
103107
([#1401](https://github.com/google/json_serializable.dart/pull/1401))
104-
- Handle decoding an `int` value from a `double` literal.
108+
- Handle decoding an `int` value from a `double` literal.
105109
This now matches the behavior of `double` values being encoded as `int`.
106110

107111
## 6.7.1

json_serializable/lib/src/field_helpers.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ List<FieldElement> createSortedFieldSet(ClassElement element) {
8686
continue;
8787
}
8888

89-
if (v is GetterElement) {
90-
final variable = v.variable as FieldElement;
89+
if (v case GetterElement(variable: final FieldElement variable)) {
9190
assert(!inheritedFields.containsKey(variable.name));
9291
inheritedFields[variable.name!] = variable;
9392
}

json_serializable/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: json_serializable
2-
version: 6.13.1
2+
version: 6.13.2
33
description: >-
44
Automatically generate code for converting to and from JSON by annotating
55
Dart classes.
@@ -15,7 +15,7 @@ topics:
1515
resolution: workspace
1616

1717
dependencies:
18-
analyzer: '>=10.0.0 <13.0.0'
18+
analyzer: '>=10.0.0 <14.0.0'
1919
async: ^2.10.0
2020
build: ^4.0.4
2121
build_config: ^1.2.0

0 commit comments

Comments
 (0)