Skip to content

Release v0.3.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 28 Dec 23:31
v0.3.0
e86c33a

⚡ Improvements

  • Added SelectLocated. It works just like Select, but returns LocatedNodes that pair the selected nodes with RFC 9535-defined NormalizedPaths that uniquely identify their locations within the JSON query argument.
  • Added LocatedNodeList, the return value from SelectLocated. It contains methods for working with the selected nodes, including iterators for its nodes & NormalizedPaths, deduplication, sorting, and cloning.
  • Added Compare to NormalizedPath, which enables the sorting of LocatedNodeLists.

📔 Notes

  • Requires Go 1.23 to take advantage of its iterator support.
  • Changed the return value of Select from []any to NodeList, which is an alias for []any. Done to pair with LocatedNodeList, the return value of SelectLocated. Features an All 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, and LocatedNodeList examples to the Go docs.

🆚 For more detail compare changes since v0.2.1 .