Skip to content

v0.3.0

Compare
Choose a tag to compare
@vladfaust vladfaust released this 16 Apr 14:18
· 2 commits to master since this release
v0.3.0

Overhaul! 💥

  • ⚠️ breaking Channel is an abstract class now, use Channel::Memory and Channel::Redis.
  • ⚠️ breaking No need to pass a subscribing object to Channel#subscribe anymore. It returns Channel::Subscription instance which has #unsubscribe method.
  • ⚠️ breaking Channel#subscribe accepts filter or consumer_id arguments. The former enables event filtering and the latter enables consuming instead of subscribing. Closes #3 and also closes #4.
  • ⚠️ breaking Channel#emit returns the events themselves.
  • Added Channel#await method, which closes #5.
  • Events have an #event_id getter with random UUID by default, which closes #6.
  • Added Subscriber and Consumer modules.
  • Fixed requiring logic of events when using Channel::Redis, the requiring order should not matter anymore.
  • Also added triggering dependant Travis CI builds.