Skip to content

v0.28.0

Choose a tag to compare

@freywaid freywaid released this 16 Feb 01:16
· 303 commits to master since this release

Add value guard syntax (key=value, [slot]=value) and remove wildcard-on-primitive special case.

New

  • Value guard syntax: key=value, key!=value, [slot]=value, [slot]!=value for direct value comparison at the path level
  • Supports all value types: numbers, None, True/False, strings, regex, wildcard

Breaking changes

  • [*=value] on primitive lists now returns [] — use [*]=value instead
  • [!*=value] on primitive lists — use [*]!=value instead
  • *&*=value no longer matches primitives — use *=value instead
  • Existing [*=value] on dicts is unchanged