Skip to content

Version 0.5.0

Choose a tag to compare

@jg-rp jg-rp released this 10 Apr 15:22
· 327 commits to main since this release

Features

  • Added the built-in match filter function.
  • Added the built-in search filter function.
  • Added the built-in value filter function.
  • We now pass the current environment to filter function validation.
  • Added support for the wildcard selector in selector segment lists.
  • We now allow nested filters.

Fixes

  • Fixed a bug where the current object selector (@) would evaluate to undefined when a filter is applied to an array of strings.
  • Compound paths that have a trailing | or & now raise a JSONPathSyntaxError.

IETF JSONPath Draft compliance

  • Removed support for dotted index selectors.
  • Raise a JSONPathSyntaxError for unescaped whitespace and control characters.
  • Raise a JSONPathSyntaxError for empty selector segments.
  • Raise a JSONPathIndexError if an index selector is out of range.
  • Raise a JSONPathSyntaxError for too many colons in a slice selector.
  • Raise a JSONPathIndexError if a slice selector argument is out of range.