Releases: gmpassos/reflection_factory
Releases · gmpassos/reflection_factory
v2.0.2
Merge v2.0.2 - `ClassReflection`: - `getBestConstructorsFor`, `createInstanceWithBestConstructor`, `getBestConstructorForMap`, `getBestConstructorsForMap`: - Added parameter `allowOptionalOnlyConstructors`. - `createInstanceFromMap`: - Improved constructor resolution. - `EnableReflection`, `ReflectionBridge`: - Added parameter `optimizeReflectionInstances = true`: - If `true` all generated `ClassReflection` and `EnumReflection` will have a `factory` constructor and an `Expando` to cache reflection instances. - `FunctionReflection`: - `methodInvocationFromMap`: optimize and clean code. - Added annotation `JsonConstructor`.
v2.0.1
v2.0.0
Merge v2.0.0 - `ClassReflection`: - `constructor`: - removed `<R>` type. - `field`: - Ggenerated implementation declares `T` of `FieldReflection<$class,T>` statically. - Optimized: - `allFields`, `allMethods`: object instances derived from cached `no-object` instances. - `construtor`, `staticField`, `field`, `method`: - Caching instances. - Object instances derived from cached `no-object` instances. - `FieldReflection`: - Added `setNullable`. - benchmark: ^0.3.0 - `benchmark/reflection_factory_benchmark.dart` - meta: ^1.9.0
v1.2.23
Merge v1.2.23 - `ReflectionBuilder` - New `sequencial` and `buildStepTimeout`. - Build now is sequencial by default: - Only one `BuildStep` is processed at a time. - Avoid `InconsistentAnalysisException` (`build` issue #2689). - Added `build.yaml` options (`verbose`,`sequential`, `timeout`). - Improved logging. - Added `ClassProxy` test using `libraryPath`. - `reflection_factory/build.yaml`: - `generate_for`: - Added `bin/*`
v1.2.21
v1.2.20
v1.2.19
v1.2.18
Merge v1.2.18 - `Reflection`: - Fix `castMap`: - Added `castMapKeys` and `castMapValues`. - Added getters: `asTypeReflection`, `typeInfo`, `listType`, `mapKeyType` and `mapValueType`. - `JsonCodec`: - Added field `mapCaster`. - `_JsonDecoder`: - Now supports `Map` casting when decoding an entity field. - Added `castMapType`. - `ReflectionBuilder`: - Optimize and reduce generated code. - build: ^2.3.1 - analyzer: ^4.7.0 - dart_style: ^2.2.4 - mime: ^1.0.3 - pub_semver: ^2.1.3 - path: ^1.8.3 - build_runner: ^2.3.3 - lints: ^2.0.1 - test: ^1.22.1 - coverage: ^1.6.1
v1.2.17
v1.2.16
- `ClassReflection`: - Added `fieldsWithJsonFieldHidden`, `fieldsWithJsonFieldVisible`, `hasJsonFieldHidden` and `hasJsonFieldVisible`. - Added `entityFields` and `entityFieldsNamesWhere`. - Added `getBestConstructorsFor`. - `getBestConstructorFor`: using multiple contructor candidates.