Skip to content

Revamped event API

Compare
Choose a tag to compare
@thiagokokada thiagokokada released this 01 Sep 18:47
· 45 commits to main since this release
0021720

This is the first release that is doing breaking changes, so I think it is appropriate to bump the mid version for the first time. There are no breaking changes in request API though.

For the breaking changes:

  • event.NewEventClient() renamed to event.NewClient() and event.MustEventClient() renamed to event.MustClient() to make the API more symmetric (e.g.: same as the requests API)
  • event.Receive() now receives a ctx (context) parameter, that allows proper cancellation if needed
  • event.Subscribe() is now a method of EventClient struct, and also receives a context

What's Changed

Full Changelog: v0.0.4...v0.1.0