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
forbiddenAccess
toauthorization
in error enums. - Update error enums docs.
- Fix
CqrsMiddleware
not being exported from the package. - Move
hasError
andhasErrorForProperty
fromCommandResponse
toCommandFailure
.
10.0.0 #
Retracted.
- Breaking: Fundamentaly change overall
Cqrs
API making it no-throw guarantee. - Breaking: Make
Cqrs.get
,Cqrs.run
andCqrs.perform
return result data in form ofQueryResult
,CommandResult
andOperationResult
respectively. - Add
logger
parameter (of typeLogger
fromlogging
package) toCqrs
default constructor. If provided, thelogger
will be used as a debug logging interface in execution of CQRS methods. - Add middleware mechanism in form of
CqrsMiddleware
intended to use in processing result from queries, commands and operations. - Breaking: Remove
CqrsException
. - Breaking: Rename previous
CommandResult
toCommandResponse
and make it package private. - Breaking: Mark the
CqrsMethod
assealed
. - Make
ValidationError
extendEquatable
fromequatable
package. - Add
equatable
(^2.0.5
) andlogging
(^1.2.0
) dependencies.
9.0.0 #
- Bumped
http
dependency 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
CQRS
and similar toCqrs
per Effective Dart. - Breaking: Remove
IRemoteQuery
andIRemoteCommand
. Use their equivalentsQuery
andCommand
respectively. - Add new transport type
Operation
which is aQuery
with side effects of aCommand
.
6.2.1 #
- Add human-readable
toString
method forCommandResult
.
6.2.0 #
- Export
CommandResult
from/contracts.dart
.
6.1.0 #
CommandResult
andValidationError
now 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
propertyName
field inValidationError
. - Breaking: Remove deprecated
success
parameter fromCommandResult
constructor.
5.0.0-nullsafety.1 #
- Add
propertyName
field inValidationError
.
5.0.0-nullsafety.0 #
- Breaking: Migrate to null-safety.
- Breaking: Bump minimum Dart version to 2.12 prerelease.
- Breaking: Remove deprecated
success
parameter fromCommandResult
constructor.
4.1.1 #
- Fix exception thrown when the query result is
null
.
4.1.0 #
- Add
success
andfailed
constructors inCommandResult
. - Add
failed
getter inCommandResult
. - Make
success
field inCommandResult
a getter. This is compatible with how the backend works. - Deprecate
success
param inCommandResult
constructor.
4.0.0+2 #
- Refresh pub listing.
4.0.0 #
- Complete rewrite of a library with breaking changes.
- Add
headers
parameter inrun
andget
methods. - Add
hasError
method inCommandResult
. - Pass HTTP client directly to
CQRS
constructor instead as a factory method. package:cqrs/contracts.dart
utility 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
toJsonMap
totoJson
- 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
CQRSException
implementsException
1.0.5 #
- Overload
toString()
onCQRSException
in case of treating it likedynamic
1.0.4 #
- Fix command result JSON validation.
1.0.3 #
- Query
resultFactory
only argumentdecodedJson
is now ofdynamic
type. 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.