|
7 | 7 |
|
8 | 8 | ## 3.1.1
|
9 | 9 |
|
10 |
| -- Avoid `null` values for `CheckedFromJsonException.message` by using |
| 10 | +- Avoid `null` values for `CheckedFromJsonException.message` by using |
11 | 11 | `toString()` with unrecognized error types.
|
12 | 12 | - Added a helpful `UnrecognizedKeysException.toString()`.
|
13 | 13 | - Fixed doc comments for `JsonSerializable.genericArgumentFactories`.
|
14 | 14 |
|
15 | 15 | ## 3.1.0
|
16 | 16 |
|
17 |
| -- Added `JsonSerializable.genericArgumentFactories` field. |
| 17 | +- Added `JsonSerializable.genericArgumentFactories` field. |
18 | 18 | - Require at least Dart `2.7.0`.
|
19 | 19 |
|
20 | 20 | ## 3.0.1
|
|
48 | 48 |
|
49 | 49 | ## 2.2.0
|
50 | 50 |
|
51 |
| -* Add an optional (named) `badKey` parameter and field to |
| 51 | +- Add an optional (named) `badKey` parameter and field to |
52 | 52 | `CheckedFromJsonException`.
|
53 | 53 |
|
54 | 54 | ## 2.1.0
|
55 | 55 |
|
56 |
| -* Require at least Dart `2.1.1`. |
| 56 | +- Require at least Dart `2.1.1`. |
57 | 57 |
|
58 |
| -* Added to `encodeEmptyCollection` to `JsonKey` and `JsonSerializable`. |
| 58 | +- Added to `encodeEmptyCollection` to `JsonKey` and `JsonSerializable`. |
59 | 59 |
|
60 |
| -* `JsonSerializable.fromJson` now throws `CheckedFromJsonException` on errors. |
61 |
| - This is potentially a breaking change. |
| 60 | +- `JsonSerializable.fromJson` now throws `CheckedFromJsonException` on errors. |
| 61 | + This is potentially a breaking change. |
62 | 62 |
|
63 |
| -* Added a more helpful `toString` to `CheckedFromJsonException`. |
| 63 | +- Added a more helpful `toString` to `CheckedFromJsonException`. |
64 | 64 |
|
65 | 65 | ## 2.0.0
|
66 | 66 |
|
67 |
| -* **Potentially Breaking** `JsonSerializable` no longer sets default values for |
| 67 | +- **Potentially Breaking** `JsonSerializable` no longer sets default values for |
68 | 68 | fields when constructor arguments are unset or `null`. This is not likely an
|
69 | 69 | issue for developers using this class as an annotation with a compatible
|
70 | 70 | version of `package:json_serializable`, but it may cause issues if class is
|
71 | 71 | used in other contexts.
|
72 | 72 |
|
73 |
| -* Support all `build.yaml` configuration options on classes by adding a number |
| 73 | +- Support all `build.yaml` configuration options on classes by adding a number |
74 | 74 | of fields to `JsonSerializable`: `anyMap`, `checked`, `explicitToJson`,
|
75 | 75 | `generateToJsonFunction`, and `useWrappers`.
|
76 | 76 |
|
77 | 77 | ## 1.2.0
|
78 | 78 |
|
79 |
| -* Added `JsonConverter` class to support custom conversion of types. |
| 79 | +- Added `JsonConverter` class to support custom conversion of types. |
80 | 80 |
|
81 | 81 | ## 1.1.0
|
82 | 82 |
|
83 |
| -* Added the `fieldRename` option to `JsonSerializable` and the associated |
| 83 | +- Added the `fieldRename` option to `JsonSerializable` and the associated |
84 | 84 | `FieldRename` enum.
|
85 | 85 |
|
86 | 86 | ## 1.0.0
|
87 | 87 |
|
88 |
| -* Added `JsonValue` class for annotating `enum` fields with a custom |
| 88 | +- Added `JsonValue` class for annotating `enum` fields with a custom |
89 | 89 | serialization value.
|
90 | 90 |
|
91 |
| -* Removed `$checkAllowedKeys`, `$enumDecode` and `$enumDecodeNullable` which are |
| 91 | +- Removed `$checkAllowedKeys`, `$enumDecode` and `$enumDecodeNullable` which are |
92 | 92 | no longer needed by the latest release of `package:json_serializable`.
|
93 | 93 |
|
94 | 94 | ## 0.2.9+1
|
95 | 95 |
|
96 |
| -* Support the Dart 2.0 stable release. |
| 96 | +- Support the Dart 2.0 stable release. |
97 | 97 |
|
98 | 98 | ## 0.2.9
|
99 | 99 |
|
100 |
| -* When `FormatException` is caught in "checked mode", use the `message` |
101 |
| - property when creating `CheckedFromJsonException`. |
| 100 | +- When `FormatException` is caught in "checked mode", use the `message` property |
| 101 | + when creating `CheckedFromJsonException`. |
102 | 102 |
|
103 | 103 | ## 0.2.8
|
104 | 104 |
|
105 |
| -* Added `$checkKeys` helper function and deprecated `$checkAllowedKeys`. |
| 105 | +- Added `$checkKeys` helper function and deprecated `$checkAllowedKeys`. |
106 | 106 | Upgrading to the latest `json_serializable` and re-running your build will
|
107 | 107 | eliminate any `@deprecated` hints you see.
|
108 | 108 |
|
109 |
| -* Added `BadKeyException` exception which is the abstract super class for |
| 109 | +- Added `BadKeyException` exception which is the abstract super class for |
110 | 110 | `MissingRequiredKeysException`, `UnrecognizedKeysException`, and
|
111 | 111 | `DisallowedNullValueException`.
|
112 | 112 |
|
113 |
| -* Added `JsonKey.required` field and an associated |
| 113 | +- Added `JsonKey.required` field and an associated |
114 | 114 | `MissingRequiredKeysException` that is thrown when `required` fields don't
|
115 | 115 | have corresponding keys in a source JSON map.
|
116 | 116 |
|
117 |
| -* Added `JsonKey.disallowNullValue` field and an associated |
| 117 | +- Added `JsonKey.disallowNullValue` field and an associated |
118 | 118 | `DisallowedNullValueException` that is thrown when corresponding keys exist in
|
119 | 119 | a source JSON map, but their values are `null`.
|
120 | 120 |
|
121 |
| -* Updated documentation of `JsonSerializable.createToJson` to include details |
122 |
| - of the new `generate_to_json_function` configuration option. |
| 121 | +- Updated documentation of `JsonSerializable.createToJson` to include details of |
| 122 | + the new `generate_to_json_function` configuration option. |
123 | 123 |
|
124 | 124 | ## 0.2.7+1
|
125 | 125 |
|
126 |
| -* Small improvement to `UnrecognizedKeysException.message` output and |
| 126 | +- Small improvement to `UnrecognizedKeysException.message` output and |
127 | 127 | documentation comments.
|
128 | 128 |
|
129 | 129 | ## 0.2.7
|
130 | 130 |
|
131 |
| -* Added `JsonSerializable.disallowUnrecognizedKeys`. |
132 |
| - * Added a helper function to support this option. This function starts with a |
| 131 | +- Added `JsonSerializable.disallowUnrecognizedKeys`. |
| 132 | + - Added a helper function to support this option. This function starts with a |
133 | 133 | `$` and should only be referenced by generated code. It is not meant for
|
134 | 134 | direct use.
|
135 |
| - * Added `UnrecognizedKeysException` for reporting errors. |
| 135 | + - Added `UnrecognizedKeysException` for reporting errors. |
136 | 136 |
|
137 | 137 | ## 0.2.6
|
138 | 138 |
|
139 |
| -* `CheckedFromJsonException` |
140 |
| - * Added a public constructor to support hand-written JSON decoding logic. |
141 |
| - * The `message` property is now `String` (instead of `Object`). |
| 139 | +- `CheckedFromJsonException` |
142 | 140 |
|
143 |
| -* Added `JsonKey.defaultValue`. |
| 141 | + - Added a public constructor to support hand-written JSON decoding logic. |
| 142 | + - The `message` property is now `String` (instead of `Object`). |
144 | 143 |
|
145 |
| -* Added helpers for deserialization of `enum` values. |
146 |
| - These functions starting with `$` are referenced by generated code. |
147 |
| - They are not meant for direct use. |
| 144 | +- Added `JsonKey.defaultValue`. |
| 145 | + |
| 146 | +- Added helpers for deserialization of `enum` values. These functions starting |
| 147 | + with `$` are referenced by generated code. They are not meant for direct use. |
148 | 148 |
|
149 | 149 | ## 0.2.5
|
150 | 150 |
|
151 |
| -* Added `CheckedFromJsonException` which is thrown by code generated when |
152 |
| - `checked` is enabled in `json_serializable`. |
| 151 | +- Added `CheckedFromJsonException` which is thrown by code generated when |
| 152 | + `checked` is enabled in `json_serializable`. |
153 | 153 |
|
154 |
| -* Added functions to support the `checked` generation option. |
155 |
| - These functions starting with `$` are referenced by generated code. |
156 |
| - They are not meant for direct use. |
| 154 | +- Added functions to support the `checked` generation option. These functions |
| 155 | + starting with `$` are referenced by generated code. They are not meant for |
| 156 | + direct use. |
157 | 157 |
|
158 | 158 | ## 0.2.4
|
159 | 159 |
|
160 |
| -* Added `fromJson` and `toJson` fields to `JsonKey` class. |
| 160 | +- Added `fromJson` and `toJson` fields to `JsonKey` class. |
161 | 161 |
|
162 | 162 | ## 0.2.3
|
163 | 163 |
|
164 |
| -* Added `ignore` field to `JsonKey` class annotation |
| 164 | +- Added `ignore` field to `JsonKey` class annotation |
165 | 165 |
|
166 | 166 | ## 0.2.2
|
167 | 167 |
|
168 |
| -* Added a helper class – `$JsonMapWrapper` – and helper functions – `$wrapMap`, |
169 |
| - `$wrapMapHandleNull`, `$wrapList`, and `$wrapListHandleNull` – to support |
170 |
| - the `useWrappers` option added to `JsonSerializableGenerator` in `v0.3.0` of |
| 168 | +- Added a helper class – `$JsonMapWrapper` – and helper functions – `$wrapMap`, |
| 169 | + `$wrapMapHandleNull`, `$wrapList`, and `$wrapListHandleNull` – to support the |
| 170 | + `useWrappers` option added to `JsonSerializableGenerator` in `v0.3.0` of |
171 | 171 | `package:json_serializable`.
|
172 | 172 |
|
173 | 173 | ## 0.2.1
|
174 | 174 |
|
175 |
| -* `JsonSerializable` class annotation |
176 |
| - * Added `nullable` field. |
177 |
| - * Fixed doc comment. |
| 175 | +- `JsonSerializable` class annotation |
| 176 | + - Added `nullable` field. |
| 177 | + - Fixed doc comment. |
178 | 178 |
|
179 | 179 | ## 0.2.0
|
180 | 180 |
|
181 |
| -* Moved annotation classes for `JsonSerializable` and `JsonLiteral`. |
| 181 | +- Moved annotation classes for `JsonSerializable` and `JsonLiteral`. |
0 commit comments