Skip to content

Latest commit

 

History

History
61 lines (53 loc) · 2.59 KB

CHANGELOG.md

File metadata and controls

61 lines (53 loc) · 2.59 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.

Unreleased (master)


0.3.0

Added

  • Drop Support to Ruby 2.6 and 2.7
  • Add Support to Ruby 3.2 and 3.3
  • Changed and_error to use a matcher instead of equality comparation #51

0.3.0

Added

  • Added Rspec Helper #mock_service #41;
  • Added Rspec Matcher #have_succeed_with and #have_failed_with #41;
  • Added Success(), Failure(), Check(), Try() now can be multipe types #41;
  • Changed Depreacate Result#type method #41;
  • Changed Deprecate method #then for Success and Failure classes #40
  • Added RSpec support for mock and match results #35
  • Deprecate method #then for Success and Failure classes #40;
  • Removed deprecated method #on #33
  • Changed Capture just one callback per result #30;

0.2.0

Added

  • Add and_then as alias for then (partially fix #23).
  • Add catch to Failure and Success. It acts as an inverted then and has a or_else alias.
  • Add support to custom data property to be passed when calling Base#Check.
  • Add support to multiple type checks on Result#on_success and Result#on_failure hooks.
  • Yields result type on blocks (then, on_success and on_failure).
  • Add type check on Result#on_success and Result#on_failure hooks.
  • Add method Base#Try. It wraps exceptions in Failures.
  • Add method Base#Check. It converts booleans to Results.
  • Add methods #Success(type, data:) and #Failure(type, data:) on FService::Base. These methods allow defining the type and value of the Result object.
  • Allow adding types on Results.
  • Add #on_success and #on_failure hooks on Result objects.
  • Link to Changelog on gemspec.

Changed

  • [Deprecation] Mark Base#result as deprecated. They will be removed on the next release. Use the Base#Check instead.
  • [Deprecation] Mark Base#success and Base#failure as deprecated. They will be removed on the next release. Use the Base#Success and Base#Failure instead.
  • [Deprecation] Mark Result#on as deprecated. It will be removed on the next release. Use theResult#on_success and/or Result#on_failure hooks instead.

0.1.1

Added

First usable version with:

  • Result based services
  • Type check on results
  • Pattern matching with #callables
  • Safe chaining calls with #then

0.1.0

  • Yanked