|
10 | 10 |
|
11 | 11 | ## 6.0.0
|
12 | 12 |
|
13 |
| -- Added support for `JsonSerializable.constructor` to allow specifying an |
| 13 | +- Added support for `JsonSerializable.constructor` to allow specifying an |
14 | 14 | alternative constructor to invoke when creating a `fromJson` helper.
|
15 | 15 | - Support the new `@JsonEnum` annotation in `package:json_annotation`.
|
16 | 16 | - Support `JsonKey.nullForUndefinedEnumValue` as a value for
|
17 | 17 | `JsonKey.unknownEnumValue` when you want to use `null` as the unknown value.
|
18 | 18 | - Use the new `$enumDecodeNullable` and `$enumDecode` in `json_annotation'
|
19 |
| - instead of generating these for each library. |
20 |
| - **NOTE**: This is a potential breaking change if any user code relies on |
21 |
| - the previously generated private functions. |
| 19 | + instead of generating these for each library. **NOTE**: This is a potential |
| 20 | + breaking change if any user code relies on the previously generated private |
| 21 | + functions. |
22 | 22 | - The builder now checks to make sure there is a correctly constrained
|
23 | 23 | dependency on `package:json_annotation`.
|
24 | 24 | - Require Dart SDK `>=2.14.0`.
|
25 | 25 | - Require `json_annotation` `'>=4.3.0 <4.4.0'`.
|
26 | 26 |
|
27 | 27 | ## 5.0.2
|
28 | 28 |
|
29 |
| -- Include type arguments when invoking `fromJson` on custom types. |
30 |
| - This fixes an edge case where the generic arguments could not be inferred. |
| 29 | +- Include type arguments when invoking `fromJson` on custom types. This fixes an |
| 30 | + edge case where the generic arguments could not be inferred. |
31 | 31 |
|
32 | 32 | ## 5.0.1
|
33 | 33 |
|
|
182 | 182 |
|
183 | 183 | ## 3.2.3
|
184 | 184 |
|
185 |
| -- Bug fix for analyzer 0.38.5. |
| 185 | +- Fixed bug related to `package:analyzer` 0.38.5. |
186 | 186 |
|
187 | 187 | ## 3.2.2
|
188 | 188 |
|
@@ -271,12 +271,12 @@ future feature work.
|
271 | 271 | ## 2.0.3
|
272 | 272 |
|
273 | 273 | - When invoking a `fromJson` constructor on a field type, generate a conversion
|
274 |
| - expression derived from the the constructor parameter type. |
| 274 | + expression derived from the constructor parameter type. |
275 | 275 |
|
276 | 276 | - Be more strict about the supported `List`, `Set`, or `Map` types. This may
|
277 |
| - causes errors to be raised in cases where invalid code was generated before. |
278 |
| - It also allows implementations of these types to add a `fromJson` constructor |
279 |
| - to support custom decoding. |
| 277 | + cause errors to be raised in cases where invalid code was generated before. It |
| 278 | + also allows implementations of these types to add a `fromJson` constructor to |
| 279 | + support custom decoding. |
280 | 280 |
|
281 | 281 | - Small change to the whitespace around converted maps to improve a very slow
|
282 | 282 | path when formatting generated code.
|
@@ -319,8 +319,7 @@ future feature work.
|
319 | 319 |
|
320 | 320 | - **BREAKING** `JsonSerializableGenerator` now exposes a `config` property of
|
321 | 321 | type `JsonSerializable` instead of individual properties for `checked`,
|
322 |
| - `anyMay`, etc. This will affect anyone creating or using this class via |
323 |
| - code. |
| 322 | + `anyMay`, etc. This will affect creating or using this class via code. |
324 | 323 |
|
325 | 324 | - `type_helper.dart`
|
326 | 325 |
|
@@ -451,7 +450,7 @@ future feature work.
|
451 | 450 | - Added `JsonKey.disallowNullValue`.
|
452 | 451 |
|
453 | 452 | - When `true`, generated code throws a `DisallowedNullValueException` if the
|
454 |
| - corresponding keys exist in in the JSON map, but it's value is null. |
| 453 | + corresponding keys exist in the JSON map, but its value is `null`. |
455 | 454 | - Will be captured and wrapped in a `CheckedFromJsonException` if `checked` is
|
456 | 455 | enabled in `json_serializable`.
|
457 | 456 |
|
@@ -641,7 +640,7 @@ future feature work.
|
641 | 640 | - Moved the annotations in `annotations.dart` to `package:json_annotations`.
|
642 | 641 |
|
643 | 642 | - Allows package authors to release code that has the corresponding
|
644 |
| - annotations without requiring package users to inherit all of the transitive |
| 643 | + annotations without requiring package users to inherit all the transitive |
645 | 644 | dependencies.
|
646 | 645 |
|
647 | 646 | - Deprecated `annotations.dart`.
|
@@ -687,7 +686,7 @@ future feature work.
|
687 | 686 | and related helpers which allow custom generation for specific types.
|
688 | 687 |
|
689 | 688 | - **BREAKING** Generation fails for types that are not a JSON primitive or that
|
690 |
| - do not explicitly supports JSON serialization. |
| 689 | + do not explicitly support JSON serialization. |
691 | 690 |
|
692 | 691 | - **BREAKING** `TypeHelper`:
|
693 | 692 |
|
|
0 commit comments