Skip to content

Version 1.3.0

Latest
Compare
Choose a tag to compare
@jg-rp jg-rp released this 04 Feb 08:41
· 1 commit to main since this release

Fixes

  • Fixed jsonpath.JSONPathMatch.path. It is now a "normalized path" following section 2.7 of RFC 9535.
  • Fixed normalized slice indexes. We were failing to normalize some indexes given a negative step.

Other changes

  • jsonpath.match.NodeList is now re-exported as jsonpath.NodeList.
  • Added jsonpath.NodeList.paths(), which returns a list of normalized paths, one for each node in the list.
  • Serialization of compiled JSONPath queries (instances of jsonpath.JSONPath) has changed. String literals inside filter selectors are now serialized using the canonical format, as described in section 2.7 of RFC 9535, and parentheses in filter selectors are kept to a minimum.