dry-transaction v0.9.0 Release Notes

Release Date: 2016-12-18 // over 7 years ago
  • โž• Added

    • Procs (or any callable objects) can be passed as a step's with: option instead of a container identifier string (AMHOL in #44)

      Dry.Transaction(container: MyContainer) do
        step :some_step, with: "operations.some_thing"
        step :another, with: -> input {
          # your code here
        }
      end
      
    • ๐Ÿ‘Œ Support for passing blocks to step adapters (am-kantox in #36)

      Dry.Transaction(container: MyContainer) do
        my_custom_step :some_step do
          # this code is captured as a block and passed to the step adapter
        end
      end
      

    ๐Ÿ”„ Changed

    • Whole step object is passed to StepFailure upon failure, which provides more information to custom matchers (mrbongiolo in #35)
    • #call argument order for step operations is now #call(input, *args), not #call(*args, input) (timriley in #48)
    • Dry::Transaction::Sequence renamed to Dry::Transaction (timriley in #49)

    Compare v0.8.0...v0.9.0