All Versions
46
Latest Version
2.1
Avg Release Cycle
65 days
Latest Release
-

Changelog History
Page 3

  • v2.0.0.rc2

    • It's now Contract::Persist( name: "params" ) instead of ( name: "contract.params" ).
  • v2.0.0.rc1

    • ๐Ÿšš consider got removed since step now evaluates the step's result and deviates (or not).
  • v2.0.0.beta3

    • ๐Ÿ†• New, very slick keyword arguments for steps.
  • v2.0.0.beta2

    • โœ‚ Removed Operation::Controller.
    • ๐Ÿ“‡ Renamed Persist to Contract::Persist.
    • Simplify inheritance by introducing Operation::override.
    • Contract paths are now consistent.
  • v2.0.0.beta1

    • Still undefined self.~.
  • v1.1.2

    • Stricter uber dependency.
  • v1.1.1

    • ๐Ÿ“‡ Rename Operation::Representer::ClassMethods to Operation::Representer::DSL and allow to use DSL and Rendering without Deserialization so you can use two different representers.
    • Policy::Guard::policy now also accepts a Callable object.
    • โž• Add Operation#model=.
  • v1.1.0

    • 0๏ธโƒฃ Representer#represented defaults to model now, not to contract anymore.
    • The only way to let Trailblazer pass a document to the operation is via is_document: true. There is no guessing anymore based on whether or not Representer is mixed into the operation or not.
    • โž• Add Operation#params! that works exactly like #model!: return another params hash here if you want to change the params structure while avoiding modifying the original one.
    • โž• Add Controller#params! that works exactly like Operation#params! and allows returning an arbitrary params object in the controller. Thanks to @davidpelaez for inspiration.
    • ๐Ÿ—„ Deprecate Dispatch in favor of Callback. In operations, please include Operation::Callback. Also, introduced Operation#callback! which aliases to #dispatch!. Goal is having to think less, and now all naming is in line.

    ๐Ÿ›  Fixes

    • Representer#to_json now allows passing options.
    • ๐Ÿ›  The :params key never got propagated to prepopulate! when using Controller#form. This is now fixed.
  • v1.0.4

    • ๐Ÿ›  Fix Controller#run, which now returns the operation instance instead of the Else object.
  • v1.0.3

    • โœ‚ Remove unprofessional puts, @smathy.