From 1e1d62593e2e1b29917558c1bd8061a2440e91c2 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Thu, 19 Jan 2023 11:26:44 -0800 Subject: [PATCH 1/2] Prepare to release pkg:json_annotation v4.8.0 --- json_annotation/CHANGELOG.md | 2 +- json_annotation/pubspec.yaml | 2 +- json_serializable/CHANGELOG.md | 3 ++- json_serializable/pubspec.yaml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/json_annotation/CHANGELOG.md b/json_annotation/CHANGELOG.md index 5697f95a2..d784ddeed 100644 --- a/json_annotation/CHANGELOG.md +++ b/json_annotation/CHANGELOG.md @@ -1,4 +1,4 @@ -## 4.8.0-dev +## 4.8.0 - DEPRECATED `JsonKey.ignore`. Replaced by... - Added `JsonKey.includeFromJson` and `JsonKey.includeToJson` to allow diff --git a/json_annotation/pubspec.yaml b/json_annotation/pubspec.yaml index f80c93b77..68397aea3 100644 --- a/json_annotation/pubspec.yaml +++ b/json_annotation/pubspec.yaml @@ -1,5 +1,5 @@ name: json_annotation -version: 4.8.0-dev +version: 4.8.0 description: >- Classes and helper functions that support JSON code generation via the `json_serializable` package. diff --git a/json_serializable/CHANGELOG.md b/json_serializable/CHANGELOG.md index d42ed892f..0fd1ed5e5 100644 --- a/json_serializable/CHANGELOG.md +++ b/json_serializable/CHANGELOG.md @@ -1,7 +1,8 @@ -## 6.6.0-dev +## 6.6.0 - Support for `JsonKey.includeFromJson` and `JsonKey.includeToJson`. - Support `JsonEnum.valueField` being set with `'index'`. +- Support `JsonSerializable.createPerFieldToJson`. - Require Dart SDK `>=2.18.0`. - Require `analyzer: ^5.2.0` - Require `json_annotation: '>=4.8.0 <4.9.0'` diff --git a/json_serializable/pubspec.yaml b/json_serializable/pubspec.yaml index c0eece955..a41b8b2cc 100644 --- a/json_serializable/pubspec.yaml +++ b/json_serializable/pubspec.yaml @@ -1,5 +1,5 @@ name: json_serializable -version: 6.6.0-dev +version: 6.6.0 description: >- Automatically generate code for converting to and from JSON by annotating Dart classes. From 9f273d083903b960797353eea2c373790abf775b Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Thu, 19 Jan 2023 11:41:15 -0800 Subject: [PATCH 2/2] nits --- json_serializable/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/json_serializable/README.md b/json_serializable/README.md index deb8a86a7..d11f294b3 100644 --- a/json_serializable/README.md +++ b/json_serializable/README.md @@ -300,15 +300,15 @@ targets: [`Enum`]: https://api.dart.dev/stable/dart-core/Enum-class.html [`int`]: https://api.dart.dev/stable/dart-core/int-class.html [`Iterable`]: https://api.dart.dev/stable/dart-core/Iterable-class.html -[`JsonConverter`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonConverter-class.html -[`JsonEnum.valueField`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonEnum/valueField.html -[`JsonEnum`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonEnum-class.html -[`JsonKey.fromJson`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/fromJson.html -[`JsonKey.toJson`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/toJson.html -[`JsonKey`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey-class.html -[`JsonLiteral`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonLiteral-class.html -[`JsonSerializable`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonSerializable-class.html -[`JsonValue`]: https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonValue-class.html +[`JsonConverter`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonConverter-class.html +[`JsonEnum.valueField`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonEnum/valueField.html +[`JsonEnum`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonEnum-class.html +[`JsonKey.fromJson`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonKey/fromJson.html +[`JsonKey.toJson`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonKey/toJson.html +[`JsonKey`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonKey-class.html +[`JsonLiteral`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonLiteral-class.html +[`JsonSerializable`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonSerializable-class.html +[`JsonValue`]: https://pub.dev/documentation/json_annotation/4.8.0/json_annotation/JsonValue-class.html [`List`]: https://api.dart.dev/stable/dart-core/List-class.html [`Map`]: https://api.dart.dev/stable/dart-core/Map-class.html [`num`]: https://api.dart.dev/stable/dart-core/num-class.html