cqrs 10.0.1
cqrs: ^10.0.1 copied to clipboard
A library for convenient communication with CQRS-compatible backends, using queries and commands.
10.0.1 #
- Breaking: Rename
forbiddenAccesstoauthorizationin error enums. - Update error enums docs.
- Fix
CqrsMiddlewarenot being exported from the package. - Move
hasErrorandhasErrorForPropertyfromCommandResponsetoCommandFailure.
10.0.0 #
Retracted.
- Breaking: Fundamentaly change overall
CqrsAPI making it no-throw guarantee. - Breaking: Make
Cqrs.get,Cqrs.runandCqrs.performreturn result data in form ofQueryResult,CommandResultandOperationResultrespectively. - Add
loggerparameter (of typeLoggerfromloggingpackage) toCqrsdefault constructor. If provided, theloggerwill be used as a debug logging interface in execution of CQRS methods. - Add middleware mechanism in form of
CqrsMiddlewareintended to use in processing result from queries, commands and operations. - Breaking: Remove
CqrsException. - Breaking: Rename previous
CommandResulttoCommandResponseand make it package private. - Breaking: Mark the
CqrsMethodassealed. - Make
ValidationErrorextendEquatablefromequatablepackage. - Add
equatable(^2.0.5) andlogging(^1.2.0) dependencies.
9.0.0 #
- Bumped
httpdependency to1.0.0. (#105) - Breaking: Bump minimum Dart version to 3.0. (#105)
- Mark the following as
abstract interface:CqrsMethod,Query,Command,Operation. (#107)- To migrate simply implement them rather than extending.
8.0.0+1 #
- Fix build badge in README.
8.0.0 #
- Breaking: Bump minimum Dart version to 2.17.
7.0.0 #
- Breaking: Rename
CQRSand similar toCqrsper Effective Dart. - Breaking: Remove
IRemoteQueryandIRemoteCommand. Use their equivalentsQueryandCommandrespectively. - Add new transport type
Operationwhich is aQuerywith side effects of aCommand.
6.2.1 #
- Add human-readable
toStringmethod forCommandResult.
6.2.0 #
- Export
CommandResultfrom/contracts.dart.
6.1.0 #
CommandResultandValidationErrornow implement thetoJson()method.
6.0.0 #
- Stable null-safe release.
- Breaking: Bump minimum Dart version to 2.12.
5.0.0 #
- Revert to 4.1.1
- Breaking: Add
propertyNamefield inValidationError. - Breaking: Remove deprecated
successparameter fromCommandResultconstructor.
5.0.0-nullsafety.1 #
- Add
propertyNamefield inValidationError.
5.0.0-nullsafety.0 #
- Breaking: Migrate to null-safety.
- Breaking: Bump minimum Dart version to 2.12 prerelease.
- Breaking: Remove deprecated
successparameter fromCommandResultconstructor.
4.1.1 #
- Fix exception thrown when the query result is
null.
4.1.0 #
- Add
successandfailedconstructors inCommandResult. - Add
failedgetter inCommandResult. - Make
successfield inCommandResulta getter. This is compatible with how the backend works. - Deprecate
successparam inCommandResultconstructor.
4.0.0+2 #
- Refresh pub listing.
4.0.0 #
- Complete rewrite of a library with breaking changes.
- Add
headersparameter inrunandgetmethods. - Add
hasErrormethod inCommandResult. - Pass HTTP client directly to
CQRSconstructor instead as a factory method. package:cqrs/contracts.dartutility library to use in contracts.
3.0.2 #
- Add possibility to add custom headers
3.0.1 #
- Fix the returned null value directly from query
3.0.0 #
- Remove deprecated @virtual annotations
- Rename
toJsonMaptotoJson - Fix readme
2.0.1+1 #
- Update readme
2.0.1 #
- Fix validation errors
2.0.0 #
- Remove normalizeDate function
- Add @virtual annotations
1.0.6 #
- From now
CQRSExceptionimplementsException
1.0.5 #
- Overload
toString()onCQRSExceptionin case of treating it likedynamic
1.0.4 #
- Fix command result JSON validation.
1.0.3 #
- Query
resultFactoryonly argumentdecodedJsonis now ofdynamictype. It's due to a fact, that it can be more than a map, i.e. an array of maps.
1.0.2 #
- Removed useless oauth dependency. Now this package depends only on http.