v0.5.0
[0.5.0] - 2023-06-14
Thanks for the contributions to @zwerdlds, who delivered the index selector support for this release!
Features
- Rename bin to
rq
and lib torsonpath
. The crate names rename the same, just the output artifacts are different. - Parser support for array index selector. (#60)
- Parser now recognizes the array index selector with positive index values conforming to the I-JSON specification.
- Index selector engine support (#132). (#132#132)
- The automaton transition model has been changed to incorporate index-labelled transitions.
- Both engines now support queries with the index selector.
- New
Input
API. (#23#23)- A more abstract API to access the underlying byte stream replacing the reliance of the engines on a direct
&[u8]
slice access, to allow adding buffered input streams (#23) in the future. Two types were added,OwnedBytes
andBorrowedBytes
, to support the current easy scenario of having the bytes already in memory.
- A more abstract API to access the underlying byte stream replacing the reliance of the engines on a direct
- Add long version to CLI.
- Mmap support. (#23)
- Added
MmapInput
which maps a file into memory on unix and windows.
- Added
- The CLI app now automatically decides which input to use, favoring mmap in most cases. This can be overridden with
--force-input
.
Library
- Rename
Label
toJsonString
(#139). (#139#131)query::Label
is nowquery::JsonString
- The
unique-labels
feature is nowunique-members
EngineError:MalformedLabelQuotes
renamed toEngineError:MalformedStringQuotes
Reliability
- Proptests for parsing array indices queries. (#51)
Dependencies
- Bump clap from 4.1.11 to 4.3.4.
- Bump log from 0.4.17 to 0.4.19.
- Bump proptest from 1.1.0 to 1.2.0.
- Bump simple_logger from 4.1.0 to 4.2.0.