Sha256: 46754754c3a93f1ff4d07f2df5be7f95e83d7d687e15d44e7594380d689f7401

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 KB

Contents

<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->

## 0.3.0 2021-04-11


### 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](https://github.com/dry-rb/dry-events/compare/v0.2.0...v0.3.0)

## 0.2.0 2019-07-24


### Fixed

- Trying to subscribe to a non-existant event raises an exception (issue #3) (@GustavoCaso + @mensfeld)


[Compare v0.1.1...v0.2.0](https://github.com/dry-rb/dry-events/compare/v0.1.1...v0.2.0)

## 0.1.1 2019-03-22


### Added

- Subscription filters can be more complex: nested hash inclusion, array inclusion, and proc checks were added (flash-gordon)
  ```ruby
  # 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](https://github.com/dry-rb/dry-events/compare/v0.1.0...v0.1.1)

## 0.1.0 2018-01-02

First public release

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry-events-0.3.0 CHANGELOG.md