platform/packages/serialize/angel_serialize_generator/CHANGELOG.md

264 lines
5.6 KiB
Markdown
Raw Normal View History

2021-07-25 10:47:41 +00:00
# Change Log
2023-05-26 23:59:53 +00:00
## 8.0.0
* Require Dart >= 3.0
2023-04-21 06:25:54 +00:00
## 7.2.0-beta.1
* Require Dart >= 2.19
* Fixed `topMap` incorrect return
2022-11-18 17:59:34 +00:00
## 7.1.0
2023-04-21 06:25:54 +00:00
* Require Dart >= 2.18
2022-11-18 17:59:34 +00:00
* Upgraded to `analyzer` 5.x.x
* Replaced deprecated `element2` with `element`
2022-08-16 11:19:04 +00:00
## 7.0.0
* Require Dart >= 2.17
2022-08-27 06:01:27 +00:00
* Fixed enum test cases
* Resolved deprecated methods
2022-08-16 11:19:04 +00:00
2022-06-04 01:50:58 +00:00
## 6.1.1
* Fixed issue #68: Support for non-nullable type
2022-05-27 17:09:09 +00:00
## 6.1.0
* Updated to `analyzer` 4.x.x
2022-02-27 04:16:31 +00:00
## 6.0.0
2022-08-16 11:19:04 +00:00
* Require Dart >= 2.16
2022-02-27 04:16:31 +00:00
* Updated to `analyzer` 3.x.x
* Fixed default value for `List` and `Enum`
2022-02-07 12:42:32 +00:00
## 5.0.0
2022-02-27 04:16:31 +00:00
* Skipped release
2022-02-07 12:42:32 +00:00
2021-09-25 06:32:32 +00:00
## 4.3.0
* Updated to use `package:belatuk_code_buffer`
2021-09-11 06:37:53 +00:00
## 4.2.0
* Fixed `toMap` method generation for non nullable Map
* Fixed `fromMap` method generation for non nullable Map
2021-09-25 06:32:32 +00:00
* Updated linter to `package:lints`
2021-09-11 06:37:53 +00:00
2021-08-15 08:04:21 +00:00
## 4.1.2
2021-08-17 04:52:08 +00:00
* Fixed `toMap` method generation
* Fixed `fromMape` method generation
2021-08-17 07:29:10 +00:00
* Fixed `TypescriptBuilder`
2021-08-17 04:52:08 +00:00
* Updated generator to add `const []` to `List` type args in the contructor
* Updated generator to product non nullable aware code
* Refactored away nullable code
* Added logging to facilitate tracing the code generation via `-verbose` flag
2021-08-17 07:29:10 +00:00
* Removed redudant null checking in the generated code
2021-08-15 08:04:21 +00:00
2021-08-14 03:52:31 +00:00
## 4.1.1
* Fixed `SerializerGenerator` to recognize nullable class
2021-08-12 03:10:35 +00:00
## 4.1.0
2021-08-14 03:52:31 +00:00
* Upgraded to support `analyzer` 2.0.0 major release
2021-08-12 03:10:35 +00:00
2021-08-08 03:10:35 +00:00
## 4.0.3
* Added `useNullSafetySyntax: true` to DartEmitter
* Fixed `JsonModelGenerator` class to produce correct NNBD code
* Replaced `@required` with `required`
* Fixed all none nullable field to be `required` in the constructor
* Fixed generated methods to return the correct type
* Fixed generated methods to be annnotated with `override` where applicable
* Removed redundant null checking in the generated code
2021-07-25 10:47:41 +00:00
## 4.0.2
* Fixed `build.yaml` to use `angel3` packages
* Updated README
## 4.0.1
2021-05-18 11:32:47 +00:00
* Resolved static analysis warnings
2021-07-25 10:47:41 +00:00
## 4.0.0
2022-08-16 11:19:04 +00:00
* Migrated to support Dart >= 2.12 NNBD
2021-08-17 04:52:08 +00:00
* Importing `Optional` package is required for the ORM model
2021-05-02 05:23:44 +00:00
2021-07-25 10:47:41 +00:00
## 3.0.0
2022-08-16 11:19:04 +00:00
* Migrated to work with Dart >= 2.12 Non NNBD
2021-05-02 05:23:44 +00:00
2021-07-25 10:47:41 +00:00
## 2.5.0
* Support mutable models (again).
* Use `whereType()` instead of chaining `where()` and `cast()`.
2019-07-04 18:30:45 +00:00
* Support pulling fields from parent classes and interfaces.
* Only generate `const` constructors if *all*
fields lack a setter.
2019-07-04 18:36:39 +00:00
* Don't type-annotate initializing formals.
2021-07-25 10:47:41 +00:00
## 2.4.4
2019-04-30 15:44:01 +00:00
* Remove unnecessary `new` and `const`.
2021-07-25 10:47:41 +00:00
## 2.4.3
2019-04-08 15:00:04 +00:00
* Generate `Codec` and `Converter` classes.
* Generate `toString` methods.
* Include original documentation comments from the model.
2021-07-25 10:47:41 +00:00
## 2.4.2
2019-04-04 21:40:36 +00:00
* Fix bug where enums didn't support default values.
* Stop emitting `@required` on items with default values.
* Create default `@SerializableField` for fields without them.
2021-07-25 10:47:41 +00:00
## 2.4.1+1
* Change `as Iterable<Map>` to `.cast<Map>`.
2021-07-25 10:47:41 +00:00
## 2.4.1
2019-01-09 19:25:05 +00:00
* Support `serializesTo`.
* Don't emit `@required` if there is a default value.
* Deprecate `autoIdAndDateFields`.
2021-07-25 10:47:41 +00:00
## 2.4.0
2019-01-07 01:38:04 +00:00
* Introduce `@SerializableField`, and say goodbye to annotation hell.
* Support custom (de)serializers.
* Allow passing of annotations to the generated class.
* Fixted TypeScript `ref` generator.
2021-07-25 10:47:41 +00:00
## 2.3.0
2018-12-31 01:19:45 +00:00
* Add `@DefaultValue` support.
2021-07-25 10:47:41 +00:00
## 2.2.2
2018-12-09 22:55:52 +00:00
* Split out TS def builder, to emit to source.
2021-07-25 10:47:41 +00:00
## 2.2.1
2018-12-08 22:29:06 +00:00
* Explicit changes for assisting `angel_orm_generator`.
2021-07-25 10:47:41 +00:00
## 2.2.0
2018-12-08 20:53:49 +00:00
* Build to `cache`.
* Only generate one `.g.dart` file.
* Support for `Uint8List`.
* Use `.cast()` for `List`s and `Map`s of *non-`Model`* types.
2021-07-25 10:47:41 +00:00
## 2.1.2
2018-11-29 19:38:34 +00:00
* Add `declare module` to generated TypeScript files.
2021-07-25 10:47:41 +00:00
## 2.1.1
2018-11-03 07:36:59 +00:00
* Generate `hashCode`.
2021-07-25 10:47:41 +00:00
## 2.1.0
2018-08-21 21:16:44 +00:00
* Removed dependency on `package:id`.
* Update dependencies for Dart2Stable.
* `jsonModelBuilder` now uses `SharedPartBuilder`, rather than
`PartBuilder`.
2018-08-21 21:16:44 +00:00
2021-07-25 10:47:41 +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.
2021-07-25 10:47:41 +00:00
## 2.0.9+4
2018-07-11 13:06:03 +00:00
* Remove `defaults` in `build.yaml`.
2021-07-25 10:47:41 +00:00
## 2.0.9+3
2018-07-11 13:06:03 +00:00
* Fix a cast error when self-referencing nested list expressions.
2021-07-25 10:47:41 +00:00
## 2.0.9+2
2018-07-11 13:06:03 +00:00
* Fix previously unseen cast errors with enums.
2021-07-25 10:47:41 +00:00
## 2.0.9+1
2018-06-29 15:30:47 +00:00
* Fix a cast error when deserializing nested model classes.
2021-07-25 10:47:41 +00:00
## 2.0.9
2018-06-29 04:11:57 +00:00
* Upgrade to `source_gen@^0.8.0`.
2021-07-25 10:47:41 +00:00
## 2.0.8+3
2018-06-28 01:58:42 +00:00
* Don't fail on `null` in `toMap`.
* Support self-referencing via `toJson()`.
2021-07-25 10:47:41 +00:00
## 2.0.8+2
2018-06-27 05:51:21 +00:00
* Better discern when custom methods disqualify classes
from `const` protection.
2021-07-25 10:47:41 +00:00
## 2.0.8+1
2018-06-27 05:45:46 +00:00
* Fix generation of `const` constructors with iterables.
2021-07-25 10:47:41 +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.
2021-07-25 10:47:41 +00:00
## 2.0.7
2018-05-15 19:01:13 +00:00
* 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
2021-07-25 10:47:41 +00:00
## 2.0.6
2018-05-13 16:50:59 +00:00
* Support for using `abstract` to create immutable model classes.
2018-05-13 17:23:40 +00:00
* Add support for custom constructor parameters.
2021-07-25 10:47:41 +00:00
* Closed [##21](https://github.com/angel-dart/serialize/issues/21) - better naming
2018-05-13 18:02:47 +00:00
of `Map` types.
* Added overridden `==` operators.
2018-05-13 16:50:59 +00:00
2021-07-25 10:47:41 +00:00
## 2.0.5
* Deserialization now supports un-serialized `DateTime`.
* Better support for regular typed Lists and Maps in TypeScript.
2021-07-25 10:47:41 +00:00
## 2.0.4
2018-03-30 04:16:04 +00:00
* Fields in TypeScript definitions are now nullable by default.
2021-07-25 10:47:41 +00:00
## 2.0.3
2018-03-29 19:58:36 +00:00
* Added a `TypeScriptDefinitionBuilder`.
2021-07-25 10:47:41 +00:00
## 2.0.2
2018-03-09 12:39:21 +00:00
* 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
2021-07-25 10:47:41 +00:00
## 2.0.1
2018-03-05 06:18:46 +00:00
* Ensured that `List` is only transformed if
2021-07-25 10:47:41 +00:00
it generically references a `Model`.