Repository navigation
Releases
Releases · antchfx/xpath
v1.3.9
What's Changed
Bug fixes
- Fix chained predicates on a filter expression by @dastrobu in #143
- Fix
following::axis in predicates by @zhengchun in #146 - Fix panic on
boolean operandsin comparison operator by @zhengchun in #145 (security report, CWE-476) - Round
substring()positions with XPathround()by @SashaMIT in #147 - Clip
substring()to the window afterstart, not to the whole string by @youdie006 in #138 - Return
falsefrommatches()when the node-set argument selects nothing by @youdie006 in #141 - Convert number/boolean arguments with
asStringin four string functions by @youdie006 in #144 - Keep boolean XPath results out of node selection by @rupayon123 in (#142, fixes #133)
Unicode
- Make
string-length(),substring()andtranslate()count characters by @youdie006 in #139- All three index by character per XPath 1.0 §4.2 instead of by byte:
string-length("日本語")is now3,substring("日本語abc", 2, 2)returns"本語", andtranslate()no longer produces mojibake.
- All three index by character per XPath 1.0 §4.2 instead of by byte:
Performance & behavior
- Skip
Filterflag for non-positional predicates by @thunderkatz in #140- Optimize expression tree building by avoiding Filter node overhead for non-positional predicates during XPath compiling.
Tests
- Add unit tests for core node and conversion functions [#137] by @escholtz
- Add unit tests for
substringfunction edge cases and non-matching inputs [#136] by @escholtz - Add tests for fractional number literals without leading zero [#135] by @escholtz
- Add tests for invalid XPath expressions and function arguments [#134] by @escholtz
v1.3.8
What's Changed
- Format numbers per the XPath 1.0 string() rules by @gaoflow in #125
- Fix remaining XPath comparison coercion edge cases by @floze-the-genius in #127
- fix: round() and mod follow the XPath 1.0 numeric spec by @gaoflow in #128
- Reject undeclared variables nested in an expression by @AruneshDwivedi in #129
- parse: '' is not a name character (§3.7) — fix nameexpr lexing (#126) by @alonsoalpizar in #130
v1.3.7
Merged PR: