Skip to content

v0.7.1

Latest

Choose a tag to compare

@BlueManCZ BlueManCZ released this 31 Jul 05:42
742f2e2

Fixed

  • choice options now validate against their names and their indices. validate() ran the numeric bounds check and the enum-name check on every choice value, so both forms Hyprland accepts were rejected: the integer Hyprland actually stores (general:resize_corner = 2) failed the name check, and the name ("top_right") failed the numeric check. Choices are now checked as name-or-index, where the index is the value's position in enum_values. BlueManCZ/hyprland-state#4
  • load() accepts the version with or without the v prefix. Bundled versions, snapshot filenames and the GitHub fetch URL are all keyed on the git tag (v0.55.4), but hyprctl reports the bare number (0.55.4), so callers passing it through — as hyprland-state does — missed every bundled version, spent a doomed network round-trip on a tag that does not exist, and ended up on whatever the caller's fallback was. Both spellings now resolve to the same schema, and Schema.version always reports the tag spelling.