Skip to content

Latest commit

 

History

History
96 lines (56 loc) · 2.64 KB

CHANGES.md

File metadata and controls

96 lines (56 loc) · 2.64 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.6.0 - 2024-12-15

Added

  • Support Ruby-3.4.X.
  • Add Success#inspect and Failure#inspect methods.
  • Support default value literal in Failure#value_or.

Changed

  • (BREAKING) Success#value_or requries default value or block to keep it consistent with Failure#value_or.

0.5.2 - 2024-08-30

Changed

  • i18n now looks for keys without amazing_activist prefix as well; Lookup order now goes like: amazing_activist.activities.[activity].failures, activities.[activity].failures, amazing_activist.failures, activities.failures, with fallback to hardcoded "<[activity]> failed - [code]".

0.5.1 - 2024-04-26

Changed

  • Optimize Failure#deconstruct_keys to avoid message generation if requested keys are present and do not include it.

0.5.0 - 2024-03-13

Changed

  • (BREAKING) i18n does not remove _activity suffix from keys anymore, e.g. for Foo::BarActivity expected i18n key will be foo/bar_activity, not foo/bar as it was before.

0.4.0 - 2024-02-19

Added

  • Base.on_broken_outcome allows registering custom handler for the broken outcome contract (when #call returns neither Success nor Failure)
  • Base.rescue_from allows registering unhandled exception handlers.

0.3.0 - 2024-02-19

Added

  • UnwrapError#cause respects failure's #exception.

Changed

  • (BREAKING) Base#failure context must be given as keyword argument.
  • (BREAKING) Failure#message is no longer part of its #context.
  • (BREAKING) Failure#exception is no longer part of its #context.

0.2.0 - 2024-01-28

Added

  • Generate default failure messages with i18n.

0.1.0 - 2024-01-27

Added

  • Initial release.