target_annotation_processor 0.12.0+1
target_annotation_processor: ^0.12.0+1 copied to clipboard
Functional domain modeling in Dart.
0.12.0+1 #
Fixes:
- Revert to deprecated
Element2foranalyzercompatibility.
0.12.0 #
Breaking Changes:
- Moved
target_extensionpackage into core, removed some extensions. - Removed concrete
ValueObjectimplementations. - Broader version ranges for
target_annotion_processordependencies.
0.11.1 #
Fixes:
- Typing for
EitherandOptionfunctions. - Added
Pairtype.
0.11.0 #
Breaking Changes:
- Removed dependency on
dartzin favor of own lite fp type implementations:Either,Option, andUnit. - Cleaned up DSL for a more idiomatic feel:
- Removed
List.traverseEither(). - Removed
Raise.ensureNotNull(). - Removed
Either.bindTo().
- Removed
Before:
void foo() {
either((r) {
final result = r.ensureNotNull(
repository
.findByQuery()
.leftMap(FooRepositoryFailure.new)
.bindTo(r),
() => const FooNotFound()
);
});
}
After:
void foo() {
either((r) {
final result = repository
.findByQuery()
.getOrElse((it) => r.raise(FooRepositoryFailure(it)))
?? r.raise(const FooNotFound());
});
}
0.10.0 #
Breaking Changes:
- Support Element2 API.
0.9.1 #
Fixes:
- Upgrade
analyzerdependency to>=7.0.0 <8.0.0.
0.9.0 #
Breaking Changes:
- Require Dart SDK
>=3.6.0 <4.0.0. - Upgrade
source_gendependency to 2.0.0.
0.8.1 #
Fixes:
- Nested model typing.
0.8.0 #
Breaking Changes:
- New
target_annotation_processorparadigm centered around theValidatableannotation.- Removed dependency on
freezed. - Validation function, named
_$of, is generated based on unnamed constructor arguments.
- Removed dependency on
Before:
@ModelTemplate("Some")
abstract class SomeModel {
// ...fields...
}
After:
@validatable
class Some {
const Some(/* fields */);
static const of = _$of;
}
Freezed data classes still work:
@freezed
@validatable
class Some
with _$Some {
const factory Some(/* fields */) = _Some;
static const of = _$of;
}
0.7.1 #
Fixes:
- Downgrade
analyzerdependency to 6.2.0.
0.7.0 #
Features:
- Upgrade
analyzerdependency to 6.3.0.
0.6.1 #
Fixes:
- Typing for
Either.bindTo. - Typing for
Future<Either>.thenBind.
0.6.0 #
Features:
- Upgrade to Dart 3.2.
- Add
Either.bindTo. - Add
Future<Either>.thenBind.
0.5.0 #
Features:
- Add
Either.mapAsync. - Add
NonEmptyList.foldWithHead. - Rename
Either.orNulltoEither.getOrNull. - Rename
Either.taptoEither.onRight. - Rename
Either.tapLefttoEither.onLeft. - Remove
NonEmptyList.fromList.
0.4.4 #
Fixes:
- Implement
GenericValueFailureequality.
0.4.3 #
Fixes:
- Downgrade
analyzerdependency to 5.13.0.
0.4.2 #
Fixes:
- Remove unnecessary parentheses.
- Add
constwhere applicable.
0.4.1 #
Fixes:
- Pass
BuilderOptionstoPartBuilder.
0.4.0 #
Features:
- Upgrade
analyzerdependency to^6.2.0.
0.3.0 #
Features:
- Add arrow-kt nullable dsl in the form of
nullable()andnullableAsync().
0.2.0 #
Features:
- Add arrow-kt raise dsl in the form of
either()andeitherAsync().
Maintenance:
- Upgrade to Dart 3.
- Add
finalandinterfaceclass modifiers. - Remove explicit
freezeddependency fromtarget_annotation_processor.
0.1.2 #
Features:
- Add support for enum value objects in
target_annotation_processor.
0.1.0 #
Initial implementation:
- A basic implementation of functional value objects.