Skip to content

Releases

v1.3.9

Choose a tag to compare

@zhengchun zhengchun released this 05 Oct 05:37

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 operands in comparison operator by @zhengchun in #145 (security report, CWE-476)
  • Round substring() positions with XPath round() by @SashaMIT in #147
  • Clip substring() to the window after start, not to the whole string by @youdie006 in #138
  • Return false from matches() when the node-set argument selects nothing by @youdie006 in #141
  • Convert number/boolean arguments with asString in 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() and translate() count characters by @youdie006 in #139
    • All three index by character per XPath 1.0 §4.2 instead of by byte: string-length("日本語") is now 3, substring("日本語abc", 2, 2) returns "本語", and translate() no longer produces mojibake.

Performance & behavior

  • Skip Filter flag 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 substring function 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

Choose a tag to compare

@zhengchun zhengchun released this 23 Jul 08:03

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

Choose a tag to compare

@zhengchun zhengchun released this 17 Jul 12:06

v1.3.6

Choose a tag to compare

@zhengchun zhengchun released this 23 Feb 07:10

Merged PR:

  • #120(@mislav) - Fix last() predicate on grouped expr.

Fixed:

Release v1.3.5

Choose a tag to compare

@zhengchun zhengchun released this 18 Aug 07:27

Merged PR:

  • #117(@mislav)- fix ancestor:: axes with position predicate.

Fixed:

  • #113 - (fix string() function)

v1.3.4

Choose a tag to compare

@zhengchun zhengchun released this 05 Apr 12:57

Merged PR:

  • #107(@Mrflatt) - supports Regexp feature in replace() function
  • #111(@wjc4) - Improve getHashCode performance

Fixed:

v1.3.3

Choose a tag to compare

@zhengchun zhengchun released this 16 Dec 16:08

fix non-English predicate query #106

v1.3.2

Choose a tag to compare

@zhengchun zhengchun released this 05 Oct 12:54

New Features:

  • Supports Unicode chars for Non-English (PR #100)

Bug Fixed:

v1.3.1

Choose a tag to compare

@zhengchun zhengchun released this 24 Jun 02:57
  • Merged PR #97.
  • Allows node-set numeric operator +, -, mod().4b4638b
  • #98, Remove the duplicate element filter 5481aef

v1.3.0

Choose a tag to compare

@zhengchun zhengchun released this 04 Apr 11:23

New features:

  • #94,Remove the duplicate element on the query result
  • new lower-case() function