Skip to content

Releases: gmpassos/reflection_factory

v1.2.14

27 Sep 22:45
55a0495
Compare
Choose a tag to compare
Merge v1.2.14

- `FunctionReflection.methodInvocation`:
  - Function `parameterProvider`:
    - Add `parameterIndex` to indicate the order of the parameter in the method.

v1.2.13

22 Sep 14:23
77475a2
Compare
Choose a tag to compare
Merge v1.2.13

- Json:
  - Add parameter `TypeInfo` as an alternative to the parameter `Type`.
  - Improve collections casting.
- `TypeInfo`:
  - Added constructors: `TypeInfo.fromListType`, `TypeInfo.fromSetType`, `TypeInfo.fromMapType`.
  - Added `toListType`, `toSetType`, `toIterableType`, `toMapValueType` and `toMapKeyType`.
  - Added `castList`, `castSet`, `castIterable` and `castMap`.

v1.2.12

20 Sep 23:38
ac06cdd
Compare
Choose a tag to compare
Merge v1.2.12

- `ClassReflection` added field `className`.
- `EnumReflection` added field `enumName`.

v1.2.11

17 Sep 02:00
Compare
Choose a tag to compare
- `ClassProxy`:
  - Optimize `@ClassProxy` classes resolution speed.
  - Added `ClassProxy` test with `libraryPath` parameter.
- `README.md`:
  - Added `part` directive description.
  - Added `@ClassProxy` example.
- Added tests for `JsonEntityCacheSimple`.

v1.2.10

16 Sep 21:12
Compare
Choose a tag to compare
Add test: `ClassProxy` with `libraryPath` parameter.

v1.2.9

01 Sep 17:33
Compare
Choose a tag to compare
- `ReflectionFactory`:
  - Added `getRegisterClassReflectionByName` and `getRegisterEnumReflectionByName`.
- `JsonTypeDecoder`: added parameter `jsonDecoder`.

v1.2.8

30 Aug 23:04
ee88635
Compare
Choose a tag to compare
Merge v1.2.8

- `FunctionReflection.methodInvocationFromMap` and `FunctionReflection.methodInvocation`:
  - Better handling of unresolved parameters values.
    Attempts to resolve 2 times, to allow entities references through cache.
- `Reflection`:
  - `castList`, `castSet`, `castIterable`, `castMap`, `castCollection`:
    - Added parameter `nullable`.

v1.2.7

28 Aug 06:51
d0c203d
Compare
Choose a tag to compare
v1.2.7 - Merge `typeinfo-generics`

- `TypeInfo`:
  - Added `T` generic type.
  - Added `callCasted` to pass the `T` to a `Function<T>()`.
  - Improved internal representation og `arguments`.
- `ReflectionBuilder`:
  - Declare reflected types using `TypeInfo<T>` generics.
- Improved tests coverage.

v1.2.6

17 Aug 14:39
Compare
Choose a tag to compare
- Add `coverage:ignore-file` to generated files.
- analyzer: ^4.6.0

v1.2.5

07 Aug 04:24
Compare
Choose a tag to compare
- `Json`:
  - `toJson`: fix casting bug when the resulting JSON value is `null`.
- Removed unused analyzer helper code.
- Adjusted for analyzer 4.4.0.
- sdk: '>=2.17.0 <3.0.0'
- analyzer: ^4.4.0