Revamped event API
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 toevent.NewClient()
andevent.MustEventClient()
renamed toevent.MustClient()
to make the API more symmetric (e.g.: same as the requests API)event.Receive()
now receives actx
(context) parameter, that allows proper cancellation if neededevent.Subscribe()
is now a method ofEventClient
struct, and also receives a context
What's Changed
- Improve event testing by @thiagokokada in #18
- request_test: check the Hyprland version in NixOS test VM by @thiagokokada in #19
- event: create subscribeOnce to allow testing loop handling by @thiagokokada in #20
- Add event.Close() by @thiagokokada in #21
- Refactor event API by @thiagokokada in #22
- helpers: add GetSocket() by @thiagokokada in #23
- helpers/helpers_test: add test for when HYPRLAND_INSTANCE_SIGNATURE is unset by @thiagokokada in #24
- Refactor event API again by @thiagokokada in #25
- event/event_test: add TestSubscribe by @thiagokokada in #26
Full Changelog: v0.0.4...v0.1.0