eventstore v0.16.0 Release Notes

Release Date: 2019-01-23 // about 1 year 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