reflection_factory 1.2.0
reflection_factory: ^1.2.0 copied to clipboard
Allows Dart reflection with an easy approach, even for third-party classes, using code generation portable for all Dart platforms.
1.2.0 #
- sdk: '>=2.15.0 <3.0.0'
- analyzer: ^4.1.0
- meta: ^1.8.0
- path: ^1.8.2
- build_runner: ^2.1.11
- lints: ^2.0.0
- pubspec: ^2.2.0
- test: ^1.21.2
- coverage: ^1.3.2
1.1.2 #
ClassProxy.- Allow type parameters in generated proxy methods.
1.1.1 #
TypeInfo:- Fix
fromJsonwhen decoding a list with a graph containing duplicated entities (referenced by ID). - Added support for
FutureOr.
- Fix
JsonCoder/JsonEncoder/JsonDecoder:- Allow override of
autoResetEntityCachewhile encoding or decoding.
- Allow override of
- Improved GitHub CI: added browser tests (chrome).
- mime: ^1.0.2
- analyzer: ^3.4.1
- dart_style: ^2.2.3
1.1.0 #
- Changed possible generated reflection file path. Now it can generate:
- Inside the directory:
reflection/{{file}}.g.dart - Or as a sibling file
{{file}}.reflection.g.dart
- Inside the directory:
- Added warning of absent
partdirective for the generated reflection file.
1.0.29 #
ClassReflection:- Add parameter
duplicatedEntitiesAsIDto JSON related methods.
- Add parameter
1.0.28 #
- Fix
createInstanceFromMapwhen there's no constructor without arguments. - New annotation
JsonFieldAlias.
1.0.27 #
- Fix JSON
DateTimeparsing when encoded as anint. - JSON encoder/decoder can reference already encoded entities by ID through
JsonEntityCache.
1.0.26 #
- Fix
ClassProxy.ignoreParametersTypes.
1.0.25 #
ClassProxy: addedignoreParametersTypes.
1.0.24 #
ClassProxy:- Fix proxy generation for methods that returns
FutureOr.
- Fix proxy generation for methods that returns
ClassReflection:- Optimize
createInstanceWithBestConstructorandgetBestConstructorForMap.
- Optimize
- source_span: ^1.8.2
- path: ^1.8.1
- collection: ^1.16.0
- build: ^2.2.1
- analyzer: ^3.3.1
- dart_style: ^2.2.1
1.0.23 #
ClassProxy:- Fix target class resolution issue. Added
libraryPath. - Added extra configuration:
alwaysReturnFuture,traverseReturnTypes,ignoreMethods.
- Fix target class resolution issue. Added
- Improve
JsonEncoderandJsonDecoder:- Added
registerTypeToEncodableandregisterTypeDecoder.
- Added
1.0.22 #
- Added
ClassProxy:- Allows generation of a class proxy without directly depending on the target class.
1.0.21 #
- Improve JSON codec customization.
- Improve
createInstanceWithBestConstructor.
1.0.20 #
- Added
TypeInfoto perform type checking and handle otherTypeoperations needed for reflection use. - Improved
TypeReflectionforFunctiontypes. - Fixed constructors with nullable named parameters.
- Fixed constructors with
requirednamed parameters. - Fixed fields/parameters with
Functiontypedefalias.
1.0.19 #
- Fix small bug at
createInstanceFromMapfor field resolution.
1.0.18 #
EnumReflection: addedenumNameto extension.- Fix
siblingEnumReflectionForandsiblingEnumReflectionFor.
1.0.17 #
- 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
createInstanceWithNoRequiredArgsConstructoras another way to create an instance without arguments. - Added
getBestConstructorFor, that selects the constructor capable to create an instance with provided parameters. - Added
fromJsonandfromJsonEncoded. - Added
createInstanceWithBestConstructorandcreateInstanceFromMap. - Added
declaringType.
- Generating
ClassFoo$fromJsonandClassFoo$fromJsonEncoded. - Optimized some operations.
- Fixed
TypeReflectionforFunction. - mime: ^1.0.1
- base_codecs: ^1.0.1
1.0.16 #
ClassReflection:withoutObjectInstance: now always returns the same instance.- Added
reflectionFactoryVersion.
1.0.15 #
ClassReflection: addedcallCasted.ReflectionInspector: now checks if a generated file version is the same of thereflection_factorypackage.
1.0.14 #
ClassReflection:- Added
siblingsClassReflectionandwithoutObjectInstance. registernow triggers registration of all siblingClassReflection.
- Added
- Using standard Dart coverage.
- coverage: ^1.0.3
1.0.13 #
- Allow call to
fieldwithout an object. Useful to get the field type before instantiate an object.
1.0.12 #
FieldReflection: addedhasSetter.
1.0.11 #
- Added support to default values of optional and named parameters.
1.0.10 #
- Removed
BUILD TIMEcomment in generated files to avoid unnecessary generate file modification/change.
1.0.9 #
- Added
ReflectionInspector. - Generated files now have the package version in the header comments.
toJsonEncodable: fixed handling ofDateTime.- Improved tests.
1.0.8 #
- Improve tests.
- Fix issue with genetic types.
1.0.7 #
TypeReflection:- Added
isOfType.
- Added
FunctionReflection(MethodReflection,ConstructorReflection):methodInvocation(parametersProvider)now accepts aParameterReflection, not only aStringwith the parameter name.
1.0.6 #
ClassReflection:- Added:
fieldsWhere,staticFieldsWhere,methodsWhere,staticMethodsWhere.
- Added:
TypeReflection:- Added:
isPrimitiveType,isCollectionType,isMapType,isIterableType,isNumericType,isIntType,isDoubleType,isBoolType,isStringType.
1.0.5 #
- Added support for class constructors.
- Added
TypeReflection:- Allows handling of Type generics/arguments.
- Added extensions:
IterableTypeReflectionExtension,IterableParameterReflectionExtension,IterableFieldReflectionExtension.
1.0.4 #
- Added
ElementResolver: ClassReflection:- Added resolvers:
fieldResolver,staticFieldResolver,methodResolver,staticMethodResolver. - Optimized
toJsonto resolve fasterMethodReflectionofobj.toJson.
- Added resolvers:
- Changed
FieldReflectionto allowwithObject. - Changed
MethodReflectionto allowwithObject. - Added
ReflectionFactory.toJsonEncodable. - Improve API Documentation.
- Fix issue with operator overloading.
1.0.3 #
- Annotation reflection:
- Support for classes, fields, methods and method parameters.
1.0.2 #
ClassReflection:- Added:
allMethods,allStaticMethods
- Added:
MethodReflection:- Methods parameters now are defined with
ParameterReflection. returnType: fixed forvoid.method: exposed, not private anymore.- Added:
equalsNormalParametersTypes,equalsOptionalParametersTypes,equalsNamedParametersTypes.methodInvocation,methodInvocationFromMap.
- Methods parameters now are defined with
MethodInvocation: class to represent an invocation.- Builder:
- Now generates documentation of generated extension methods.
- Better handling of parameters and fields with
ParameterReflection.- Now knows if a parameter is
required.
- Now knows if a parameter is
- Improved API documentation.
- Improved tests.
- collection: ^1.15.0
1.0.1 #
- @EnableReflection:
- Added
reflectionClassName,reflectionExtensionName.
- Added
- @ReflectionBridge:
- Added
bridgeExtensionName,reflectionClassNames,reflectionExtensionNames.
- Added
- Builder:
MethodReflection:- Added method parameters names to normal and optional parameters.
- Optimize generated code.
- Improved console output and verbose mode.
- Improved tests.
1.0.0 #
- Support for Class reflection:
- FieldReflection
- MethodReflection
- Initial version.