Skip to content

Releases: dry-rb/dry-events

v1.0.1

20 Nov 19:40
v1.0.1
5be9fc8
Compare
Choose a tag to compare

Fixed

Compare v1.0.0...v1.0.1

v1.0.0

04 Nov 13:19
v1.0.0
Compare
Choose a tag to compare

Changed

  • This version is compatible with recently released dry-rb dependencies (@flash-gordon)
  • Bumped version to 1.0.0 (@solnic)

Compare v0.4.0...v1.0.0

v0.4.0

15 Oct 06:46
v0.4.0
1339fef
Compare
Choose a tag to compare

Fixed

Changed

Compare v0.3.0...v0.4.0

v0.3.0

11 Apr 09:11
v0.3.0
Compare
Choose a tag to compare

Fixed

  • Trying to publish an unregistered event raises a meaningful error now (issue #13 fixed via #14) (@landongrindheim)

Changed

  • Dependency on dry-equalizer was changed to dry-core (@solnic)

Compare v0.2.0...v0.3.0

v0.2.0

24 Jul 12:01
v0.2.0
87d8d8e
Compare
Choose a tag to compare

Fixed

Compare v0.1.1...v0.2.0

v0.1.1

22 Mar 14:25
v0.1.1
509f11c
Compare
Choose a tag to compare

v0.1.1 2019-03-22

Added

  • Subscription filters can be more complex: nested hash inclusion, array inclusion, and proc checks were added (flash-gordon)
    # nested hash check
    subscribe(:event, logger: { level: :info })
    # pass
    trigger(:event, logger: { level: :info, output: :stdin })
    # filtered out
    trigger(:event, logger: { level: :debug })
    trigger(:event, something: :else)
    
    # array inclusion
    subscribe(:event, logger: { level: %i(info warn error) })
    # pass
    trigger(:event, logger: { level: :info })
    trigger(:event, logger: { level: :error })
    trigger(:event, logger: { level: :info, output: :stdin })
    # filtered out
    trigger(:event, logger: { level: :debug })
    
    # proc checks
    # here acts as array inclusion example
    subscribe(:event, logger: { level: -> level { %i(info warn error).include?(level) })

Compare v0.1.0...v0.1.1