Skip to content

Version 0.6.0

Compare
Choose a tag to compare
@jg-rp jg-rp released this 02 May 07:18
· 213 commits to main since this release

Breaking changes

  • The "extra filter context" identifier now defaults to _. Previously it defaulted to #, but it has been decided that # is better suited as a current key/property or index identifier.

Features

  • Added a non-standard keys/properties selector (docs, source).
  • Added a non-standard typeof() filter function. type() is an alias for typeof() (docs, source).
  • Added a non-standard isinstance() filter function. is() is an alias for isinstance() (docs, source).
  • Added a current key/property or index identifier. When filtering a mapping, # will hold key associated with the current node (@). When filtering a sequence, # will hold the current index. See docs.

IETF JSONPath Draft compliance

  • Don't allow leading zeros in index selectors. We now raise a JSONPathSyntaxError.
  • Validate the built-in count() function's argument is array-like.