Version 1.3.4
Fixes
- Fixed decoding of JSONPath escape sequences (those found in name selectors and string literals). Previously we were relying on
JSON.parse()
to unescape strings, now we have our ownunescapeString()
function that rejects invalid code points and surrogate pairs. See jsonpath-compliance-test-suite #87. - Fixed default minimum integer boundary for JSONPath indexes and slice steps. We were off by one.
- Fixed parsing of JSONPath integer literals with an exponent and an upper case 'e'. We now allow 'e' to be upper case.
- Fixed handling of trailing commas in JSONPath bracketed segments. We now raise a syntax error.
- Fixed handling of invalid JSONPath integer and float literals with extra minus signs, leading zeros or too many zeros. We now raise a syntax error in such cases.