eventstore v0.16.0 Release Notes

Release Date: 2019-01-23 // about 5 years ago
  • โœจ Enhancements

    • โž• Add :socket and :socket_dir config options (#132).
    • ๐Ÿ“‡ Rename uuid dependency to elixir_uuid (#135).
    • Subscription concurrency (#134).
    • Send :subscribed message to all subscribers connected to a subscription (#136).
    • โšก๏ธ Update to postgrex v0.14 (#143).

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿ“‡ Replace :poison with :jason for JSON event data & metadata serialization (#144).

    To support this change you will need to derive the Jason.Encoder protocol for all of your events.

    This can be done by adding @derive Jason.Encoder before defining the struct in every event module.

      defmodule Event1 do
        @derive Jason.Encoder
        defstruct [:id, :data]
      end
    

    Or using Protocol.derive/2 for each event, as shown below.

      require Protocol
    
      for event <- [Event1, Event2, Event3] do
        Protocol.derive(Jason.Encoder, event)
      end