Repository navigation
v1.9.0
Added
- Support Python 3.15.
- Add a
py.typedmarker. - Support negation of relative existence queries in extended filter expressions (e.g.
$[?(!@.field)]).
Fixed
-
Ignore non-mapping values when updating named fields instead of raising
TypeError(#104). -
Return no matches for negative array indices beyond the start of an array,
matching the behavior of out-of-range positive indices (#203). -
Fix extended filter equality against an integer literal truncating float values,
so[?(@.v = 0)]no longer matches an element withv = 0.6(#227). -
update()with an in-place callback returningNoneno longer overwrites the field withNone(#163) -
Fix an
AttributeErrorthat occurs when anIndexinstance is hashed. (#224) -
Index.findno longer raisesKeyErrorwhen applied to a dict
(e.g.$.*[0], where*matched a dict value).
It now matches nothing, as the docstring promises. (#93) -
Fix extended parser handling of field names that start with
trueorfalse. -
Stop serializing
Childpaths with surrounding parentheses. (#215) -
Avoid mutating dictionaries while evaluating extended filter expressions.
-
str()of anIndexwith comma-separated indices (e.g.[0,1]) no longer raisesTypeError. -
Fix broken
Sliceserialization behavior.Previously, a slice like
[0:]would serialize to[],
and a slice like[::2]would serialize to[:2].
Removed
- Drop support for Python 3.10.