platform/angel_serialize_generator/CHANGELOG.md

130 lines
3.4 KiB
Markdown
Raw Normal View History

# 2.5.0
* Support mutable models (again).
* Use `whereType()` instead of chaining `where()` and `cast()`.
2019-04-30 15:44:01 +00:00
# 2.4.4
* Remove unnecessary `new` and `const`.
2019-04-08 15:00:04 +00:00
# 2.4.3
* Generate `Codec` and `Converter` classes.
* Generate `toString` methods.
* Include original documentation comments from the model.
2019-04-04 21:40:36 +00:00
# 2.4.2
* Fix bug where enums didn't support default values.
* Stop emitting `@required` on items with default values.
* Create default `@SerializableField` for fields without them.
# 2.4.1+1
* Change `as Iterable<Map>` to `.cast<Map>`.
2019-01-09 19:25:05 +00:00
# 2.4.1
* Support `serializesTo`.
* Don't emit `@required` if there is a default value.
* Deprecate `autoIdAndDateFields`.
2019-01-07 01:38:04 +00:00
# 2.4.0
* Introduce `@SerializableField`, and say goodbye to annotation hell.
* Support custom (de)serializers.
* Allow passing of annotations to the generated class.
* Fixted TypeScript `ref` generator.
2018-12-31 01:19:45 +00:00
# 2.3.0
* Add `@DefaultValue` support.
2018-12-09 22:55:52 +00:00
# 2.2.2
* Split out TS def builder, to emit to source.
2018-12-08 22:29:06 +00:00
# 2.2.1
* Explicit changes for assisting `angel_orm_generator`.
2018-12-08 20:53:49 +00:00
# 2.2.0
* Build to `cache`.
* Only generate one `.g.dart` file.
* Support for `Uint8List`.
* Use `.cast()` for `List`s and `Map`s of *non-`Model`* types.
2018-11-29 19:38:34 +00:00
# 2.1.2
* Add `declare module` to generated TypeScript files.
2018-11-03 07:36:59 +00:00
# 2.1.1
* Generate `hashCode`.
2018-08-21 21:16:44 +00:00
# 2.1.0
* Removed dependency on `package:id`.
* Update dependencies for Dart2Stable.
* `jsonModelBuilder` now uses `SharedPartBuilder`, rather than
`PartBuilder`.
2018-08-21 21:16:44 +00:00
# 2.0.10
* Generate `XFields.allFields` constant.
* No longer breaks in cases where `dynamic` is present.
* Call `toJson` in `toMap` on nested models.
* Never generate named parameters from private fields.
* Use the new `@generatedSerializable` to *always* find generated
models.
2018-07-11 13:06:03 +00:00
# 2.0.9+4
* Remove `defaults` in `build.yaml`.
# 2.0.9+3
* Fix a cast error when self-referencing nested list expressions.
# 2.0.9+2
* Fix previously unseen cast errors with enums.
2018-06-29 15:30:47 +00:00
# 2.0.9+1
* Fix a cast error when deserializing nested model classes.
2018-06-29 04:11:57 +00:00
# 2.0.9
* Upgrade to `source_gen@^0.8.0`.
2018-06-28 01:58:42 +00:00
# 2.0.8+3
* Don't fail on `null` in `toMap`.
* Support self-referencing via `toJson()`.
2018-06-27 05:51:21 +00:00
# 2.0.8+2
* Better discern when custom methods disqualify classes
from `const` protection.
2018-06-27 05:45:46 +00:00
# 2.0.8+1
* Fix generation of `const` constructors with iterables.
2018-06-27 05:38:12 +00:00
# 2.0.8
2018-06-27 05:36:57 +00:00
* Now supports de/serialization of `enum` types.
* Generate `const` constructors when possible.
* Remove `whereType`, perform manual coercion.
2018-06-23 04:52:46 +00:00
* Generate a `fromMap` with typecasting, for Dart 2's sake.
2018-05-15 19:01:13 +00:00
# 2.0.7
* Create unmodifiable Lists and Maps.
2018-05-15 19:33:57 +00:00
* Support `@required` on fields.
* Affix an `@immutable` annotation to classes, if
`package:meta` is imported.
2018-05-15 19:51:23 +00:00
* Add `/// <reference path="..." />` to TypeScript models.
2018-05-15 19:01:13 +00:00
2018-05-13 16:50:59 +00:00
# 2.0.6
* Support for using `abstract` to create immutable model classes.
2018-05-13 17:23:40 +00:00
* Add support for custom constructor parameters.
2018-05-13 18:02:47 +00:00
* Closed [#21](https://github.com/angel-dart/serialize/issues/21) - better naming
of `Map` types.
* Added overridden `==` operators.
2018-05-13 16:50:59 +00:00
# 2.0.5
* Deserialization now supports un-serialized `DateTime`.
* Better support for regular typed Lists and Maps in TypeScript.
2018-03-30 04:16:04 +00:00
# 2.0.4
* Fields in TypeScript definitions are now nullable by default.
2018-03-29 19:58:36 +00:00
# 2.0.3
* Added a `TypeScriptDefinitionBuilder`.
2018-03-09 12:39:21 +00:00
# 2.0.2
* Generates an `XFields` class with the serialized names of
all fields in a model class `X`.
2018-03-09 12:45:03 +00:00
* Removed unnecessary named parameters from `XSerializer.fromMap`.
2018-03-09 12:39:21 +00:00
2018-03-05 06:18:46 +00:00
# 2.0.1
* Ensured that `List` is only transformed if
it generically references a `Model`.