diff --git a/packages/serialize/angel_serialize/AUTHORS.md b/packages/serialize/angel_serialize/AUTHORS.md new file mode 100644 index 00000000..2a973de6 --- /dev/null +++ b/packages/serialize/angel_serialize/AUTHORS.md @@ -0,0 +1,2 @@ +Tobe O +Thomas Hii \ No newline at end of file diff --git a/packages/serialize/angel_serialize/CHANGELOG.md b/packages/serialize/angel_serialize/CHANGELOG.md index 5e53a5a7..906f3e46 100644 --- a/packages/serialize/angel_serialize/CHANGELOG.md +++ b/packages/serialize/angel_serialize/CHANGELOG.md @@ -1,3 +1,10 @@ +# 4.0.0 +* Migrated to support Dart SDK 2.12.x NNBD +* Migrateed quiver_hashcode to quiver + +# 3.0.0 +* Migrated to work with Dart SDK 2.12.x Non NNBD + # 2.2.3+3 * Add `exclude: true` to `super` call in `Exclude` constructor. diff --git a/packages/serialize/angel_serialize/example/main.dart b/packages/serialize/angel_serialize/example/main.dart index c1131cdc..d67c05c2 100644 --- a/packages/serialize/angel_serialize/example/main.dart +++ b/packages/serialize/angel_serialize/example/main.dart @@ -3,6 +3,6 @@ import 'package:angel_serialize/angel_serialize.dart'; @serializable class _Todo { - String text; - bool completed; + String? text; + bool? completed; } diff --git a/packages/serialize/angel_serialize/lib/angel_serialize.dart b/packages/serialize/angel_serialize/lib/angel_serialize.dart index 284c08f8..281645a8 100644 --- a/packages/serialize/angel_serialize/lib/angel_serialize.dart +++ b/packages/serialize/angel_serialize/lib/angel_serialize.dart @@ -2,7 +2,7 @@ export 'dart:convert' show json, Codec, Converter; export 'package:angel_model/angel_model.dart'; export 'package:collection/collection.dart'; export 'package:meta/meta.dart' show required, Required; -export 'package:quiver_hashcode/hashcode.dart' show hashObjects; +export 'package:quiver/core.dart' show hashObjects; /// Excludes a field from being excluded. class Exclude extends SerializableField { @@ -35,19 +35,19 @@ class HasAlias extends SerializableField { /// Attaches options to a field. class SerializableField { /// An alternative name for this field. - final String alias; + final String? alias; /// A default for this field. final defaultValue; /// A custom serializer for this field. - final Symbol serializer; + final Symbol? serializer; /// A custom serializer for this field. - final Symbol deserializer; + final Symbol? deserializer; /// An error message to be printed when the provided value is invalid. - final String errorMessage; + final String? errorMessage; /// Whether this field can be set to `null`. final bool isNullable; @@ -67,7 +67,7 @@ class SerializableField { /// /// Ex. If you have a field that serializes to a JSON string, /// specify `serializesTo: String`. - final Type serializesTo; + final Type? serializesTo; const SerializableField( {this.alias, diff --git a/packages/serialize/angel_serialize/pubspec.yaml b/packages/serialize/angel_serialize/pubspec.yaml index bf057ce1..6c754ae0 100644 --- a/packages/serialize/angel_serialize/pubspec.yaml +++ b/packages/serialize/angel_serialize/pubspec.yaml @@ -1,18 +1,17 @@ name: angel_serialize -version: 3.0.0 +version: 4.0.0 description: Static annotations powering Angel model serialization. Combine with angel_serialize_generator for flexible modeling. -author: Tobe O -homepage: https://github.com/angel-dart/serialize +homepage: https://github.com/dukefirehawk/angel publish_to: none environment: - sdk: '>=2.10.0 <3.0.0' + sdk: '>=2.12.0 <3.0.0' dependencies: - angel_model: #^1.0.0 + angel_model: git: url: https://github.com/dukefirehawk/angel.git - ref: sdk-2.12.x + ref: sdk-2.12.x_nnbd path: packages/model collection: ^1.15.0 meta: ^1.3.0 pedantic: ^1.11.0 - quiver_hashcode: ^2.0.0 + quiver: ^3.0.1 diff --git a/packages/serialize/angel_serialize_generator/AUTHORS.md b/packages/serialize/angel_serialize_generator/AUTHORS.md new file mode 100644 index 00000000..2a973de6 --- /dev/null +++ b/packages/serialize/angel_serialize_generator/AUTHORS.md @@ -0,0 +1,2 @@ +Tobe O +Thomas Hii \ No newline at end of file diff --git a/packages/serialize/angel_serialize_generator/CHANGELOG.md b/packages/serialize/angel_serialize_generator/CHANGELOG.md index ab2bd968..81248792 100644 --- a/packages/serialize/angel_serialize_generator/CHANGELOG.md +++ b/packages/serialize/angel_serialize_generator/CHANGELOG.md @@ -1,3 +1,9 @@ +# 4.0.0 +* Migrated to support Dart SDK 2.12.x NNBD + +# 3.0.0 +* Migrated to work with Dart SDK 2.12.x Non NNBD + # 2.5.0 * Support mutable models (again). * Use `whereType()` instead of chaining `where()` and `cast()`. diff --git a/packages/serialize/angel_serialize_generator/pubspec.yaml b/packages/serialize/angel_serialize_generator/pubspec.yaml index d2d83f8c..b8829177 100644 --- a/packages/serialize/angel_serialize_generator/pubspec.yaml +++ b/packages/serialize/angel_serialize_generator/pubspec.yaml @@ -1,8 +1,7 @@ name: angel_serialize_generator -version: 3.0.0 +version: 4.0.0 description: Model serialization generators, designed for use with Angel. Combine with angel_serialize for flexible modeling. -author: Tobe O -homepage: https://github.com/angel-dart/serialize +homepage: https://github.com/dukefirehawk/angel publish_to: none environment: sdk: '>=2.7.0 <3.0.0'