All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fixed
Fateconstructor bug wherefate.datawas not set to providedinit.datawhen the value evaluated to falsy. - Added
fate.ok()method which returns the Fate's currentbooleansuccess or fail. Unlikesuccess(...)it does not accept any arguments and will shorten status checks.
0.6.8 - 2023-06-16
- Fixed serialization bug where
errorCodeandsuccesswere not included during serialization, but were included when deserializing.
- Defaults to fail on 1 or more errors but cann't succeed if payload is not set.
- Added
isSuccessandisFailuremethods. completemethod will try to set the state to failure or successerrorsmethod returns a boolean for whether the ActionResult has failederrormethod and message method accept any type and convert- New getData method return the payload or a list of errors if failure has occurred
- payload can be set during instantiation
- Initial early release. Project API is not stable until v1.0.0+