Skip to content

Releases: thiagokokada/hyprland-go

v0.4.0

03 Nov 16:23
45fad41
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.0...v0.4.0

Error handling improvements

12 Sep 09:56
fbd5013
Compare
Choose a tag to compare

This version brings multiple improvements to error handling.

There is a small breaking change though: hyprland.ValidationError is now hyprland.ErrorValidation, and it is not a custom error type anymore, instead being derived from errors.New. It means you can't cast to this error anymore, but now you can just use errors.Is or errors.As if you want to capture and treat this error in some special way.

What's Changed

Full Changelog: v0.2.0...v0.3.0

Some minor clean-ups

04 Sep 18:12
2636df5
Compare
Choose a tag to compare

This release has a small breaking change in RawRequest(), that will not automatically append /j anymore before the request. For those that doesn't know, /j is the way to request a JSON response from Hyprland IPC (equivalent of passing -j to hyprctl), so if for some reason you were relying on this behavior, you will need to change your scripts to append /j manually.

Also, this release drop supports for Go 1.20 so we can use cmp.Ordered and min/max.

What's Changed

Full Changelog: v0.1.1...v0.2.0

Bug fix

01 Sep 22:20
0db2154
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.0...v0.1.1

Revamped event API

01 Sep 18:47
0021720
Compare
Choose a tag to compare

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

Add initial support for events

31 Aug 14:28
ecee9b0
Compare
Choose a tag to compare

Events support is added and is basically a port from https://github.com/labi-le/hyprland-ipc-client in its own namespace and some small changes.

What's Changed

Full Changelog: v0.0.3...v0.0.4

[RETRACT] Add initial support for events

31 Aug 13:05
bf027a2
Compare
Choose a tag to compare

Events support is added and is basically a port from https://github.com/labi-le/hyprland-ipc-client in its own namespace and some small changes.

What's Changed

Full Changelog: v0.0.2...v0.0.3

Initial support for Hyprland 0.42

29 Aug 09:31
e3656b9
Compare
Choose a tag to compare

This release brings initial support for Hyprland 0.42, since at least one command (e.g.: Clients()) broke in the previous release.

Keep in mind that the support is initial though: I didn't go through the Hyprland 0.42 changelog yet to see if there is any missing commands. Open an issue if you want some specific missing command to be implemented.

What's Changed

Full Changelog: v0.0.1...v0.0.2

v0.0.1

25 Jul 21:06
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/thiagokokada/hyprland-go/commits/v0.0.1