Releases: theory/jsonpath
Releases · theory/jsonpath
Release v0.3.0
⚡ Improvements
- Added
SelectLocated
. It works just likeSelect
, but returnsLocatedNode
s that pair the selected nodes with RFC 9535-definedNormalizedPath
s that uniquely identify their locations within the JSON query argument. - Added
LocatedNodeList
, the return value fromSelectLocated
. It contains methods for working with the selected nodes, including iterators for its nodes &NormalizedPath
s, deduplication, sorting, and cloning. - Added
Compare
toNormalizedPath
, which enables the sorting ofLocatedNodeList
s.
📔 Notes
- Requires Go 1.23 to take advantage of its iterator support.
- Changed the return value of
Select
from[]any
toNodeList
, which is an alias for[]any
. Done to pair withLocatedNodeList
, the return value ofSelectLocated
. Features anAll
method, which returns an iterator over all the nodes in the list. It may gain additional methods in the future.
📚 Documentation
- Added
Select
,SelectLocated
,NodeList
, andLocatedNodeList
examples to the Go docs.
🆚 For more detail compare changes since v0.2.1 .