Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.54 KB

CHANGELOG.md

File metadata and controls

33 lines (23 loc) · 1.54 KB

Changelog

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.

[0.7.0] - 2024-02-08

  • Fixed Fate constructor bug where fate.data was not set to provided init.data when the value evaluated to falsy.
  • Added fate.ok() method which returns the Fate's current boolean success or fail. Unlike success(...) it does not accept any arguments and will shorten status checks.

0.6.8 - 2023-06-16

  • Fixed serialization bug where errorCode and success 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 and isFailure methods.
  • complete method will try to set the state to failure or success
  • errors method returns a boolean for whether the ActionResult has failed
  • error 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

Added

  • Initial early release. Project API is not stable until v1.0.0+