Skip to content

Version 2.0.0

Compare
Choose a tag to compare
@jg-rp jg-rp released this 26 Dec 12:48
· 17 commits to main since this release

Breaking changes

These API changes should only affect you if you're customizing the JSONPath parser, defining custom JSONPath selectors or inspecting JSONPath.selectors (now JSONPathQuery.segments). Otherwise query parsing and evaluation remains unchanged. See issue 11 for more information.

  • Renamed JSONPath to JSONPathQuery to match terminology from RFC 9535.
  • Refactored JSONPathQuery to be composed of JSONPathSegments, each of which is composed of one or more instances of JSONPathSelector.
  • Changed abstract method JSONPathSelector.resolve and JSONPathSelector.lazyResolve to accept a single node argument instead of an array or iterator of nodes. Both still return zero or more nodes.