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
Fate
constructor bug wherefate.data
was not set to providedinit.data
when the value evaluated to falsy. - Added
fate.ok()
method which returns the Fate's currentboolean
success or fail. Unlikesuccess(...)
it does not accept any arguments and will shorten status checks.
0.6.8 - 2023-06-16
- Fixed serialization bug where
errorCode
andsuccess
were 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
isSuccess
andisFailure
methods. complete
method will try to set the state to failure or successerrors
method returns a boolean for whether the ActionResult has failederror
method 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+