Skip to content

Releases: gmpassos/reflection_factory

v1.0.18

09 Nov 22:04
Compare
Choose a tag to compare
- `EnumReflection`: added `enumName` to extension.
- Fix `siblingEnumReflectionFor` and `siblingEnumReflectionFor`.

v1.0.17

09 Nov 07:39
Compare
Choose a tag to compare
- JSON
  - Better JSON handling and reflection integration.
  - Encoding/decoding to/from bytes (`Uint8List`).
  - `@JsonField`: to hide a field or to force it as a json field.
- Added support for enums: `EnumReflection`
- `ClassReflection`:
  - Support for supper classes.
  - Added `createInstanceWithNoRequiredArgsConstructor` as another way to create an instance without arguments.
  - Added `getBestConstructorFor`, that selects the constructor capable to create an instance with provided parameters.
  - Added `fromJson` and `fromJsonEncoded`.
  - Added `createInstanceWithBestConstructor` and `createInstanceFromMap`.
  - Added `declaringType`.
- Generating `ClassFoo$fromJson` and `ClassFoo$fromJsonEncoded`.
- Optimized some operations.
- Fixed `TypeReflection` for `Function`.
- mime: ^1.0.1
- base_codecs: ^1.0.1

v1.0.16

16 Oct 01:09
Compare
Choose a tag to compare
- `ClassReflection`:
  - `withoutObjectInstance`: now always returns the same instance.
  - Added `reflectionFactoryVersion`.

v1.0.15

16 Oct 00:14
Compare
Choose a tag to compare
- `ClassReflection`: added `callCasted`.
- `ReflectionInspector`: now checks if a generated file version is the same of the `reflection_factory` package.

v1.0.14

15 Oct 10:17
Compare
Choose a tag to compare
- `ClassReflection`:
  - Added `siblingsClassReflection` and `withoutObjectInstance`.
  - `register` now triggers registration of all sibling `ClassReflection`.
- Using standard Dart coverage.
- coverage: ^1.0.3

v1.0.13

06 Oct 01:52
Compare
Choose a tag to compare
- Allow call to `field` without an object. Useful to get the field type before instantiate an object.

v1.0.12

05 Oct 22:45
Compare
Choose a tag to compare
- `FieldReflection`: added `hasSetter`.

v1.0.11

28 Sep 19:46
Compare
Choose a tag to compare
- Added support to default values of optional and named parameters.

v1.0.10

27 Sep 22:42
Compare
Choose a tag to compare
- Removed `BUILD TIME` comment in generated files to avoid unnecessary generate file modification/change.

v1.0.9

26 Sep 19:08
Compare
Choose a tag to compare
- Added `ReflectionInspector`.
- Generated files now have the package version in the header comments.
- `toJsonEncodable`: fixed handling of `DateTime`.
- Improved tests.