Skip to content

Releases: FontoXML/fontoxpath

3.30.3

07 Feb 10:09
Compare
Choose a tag to compare

What's Changed

  • Print and rethrow errors thrown during parsing in registerXQueryModule

Full Changelog: 3.30.2...3.30.3

3.30.2

11 Oct 12:13
Compare
Choose a tag to compare

Fixed issues

  • Errors in functions now show the function name in stack traces, and more small improvements

Full Changelog: 3.30.1...3.30.2

3.30.1

07 Sep 08:20
Compare
Choose a tag to compare

Fixed issues

Fix intersecting buckets in strange path expressions
The bucket for the getNextSibling call in DomFacade for following-sibling::node()[1][self::xxx] is
not the same as the bucket in the following-sibling::node()[self::xxx][1] query

3.30.0

24 Aug 13:35
Compare
Choose a tag to compare

New features:

  • We now support more locales for format-integer: Greek, Hebrew and Arab are now supported! Thanks @drex04 for the work!

Fixed issues

  • Do not parse prefixes as reserved function names
  • Set attributes using the localname and namespace instead of nodename when using XQUF
  • Remove recursions from array:flatten function
  • Allow map operator to be evaluated statically, preventing a crash later on
  • Fix text() not selecting CDATA sections

Full Changelog: 3.29.1...3.30.0

3.29.0

14 Feb 09:47
Compare
Choose a tag to compare

New features

  • XQuery modules can now contain circular references: a module can depend on (functions of) other modules that may not be registered when that first module is registered.
  • fn:random-number-generator supports a pre-set seed, to make random numbers predictable

Other improvements

  • Parse errors are improved: the parser can localize the error better
  • (dev)dependencies are updated

3.28.1

21 Oct 12:52
Compare
Choose a tag to compare

Fixed issues

  • Fix several issues introduced by the codegen changes in 3.28.0 by @bwrrp in #551

Full Changelog: 3.28.0...3.28.1

3.28.0

21 Oct 12:50
Compare
Choose a tag to compare

Fixed issues

  • Improve alignment of error squiggle when query contains tabs by @bwrrp in #543
  • Fix fn:name function not returning empty string when given an empty sequence as its argument

Other improvements

Full Changelog: 3.27.1...3.28.0

3.27.1

13 Sep 09:12
Compare
Choose a tag to compare

Fixed issues

  • fn:format-integer now returns the correct result for empty inputs and negative inputs
  • The descendant axis retrieves child elements if the selector looks like self::*, which allows further bucket-style optimization. Used in Fonto to minimize dependencies for certain queries.

3.27.0

18 Aug 13:32
Compare
Choose a tag to compare

Fixed issues

  • PathExpressions ending with a map lookup no longer annotate themselves as a map lookup. This fixes a rare static typing error that was unjustified.
  • Traces from compiled scripts give a correct position again

New features

  • Thanks to @rebp, we now have a minimal implementation of format-number! For now, only the A/a/I/i picture strings are supported!
  • Trace messages with elements in them now output the element's XML, assuming the serializer argument is passed.

3.26.2

22 Jul 09:57
Compare
Choose a tag to compare

Fixed issues

  • Fixed fn:random-number-generator?permute to work like the spec describes it
  • Make fn:serialize output a single string instead of an array

Other improvements

  • Simplify types in postFixExprWithStep, thanks to @HectorPeeters
  • Add type annotations for single item sequences, again thanks to @HectorPeeters
  • Remove slimdom-sax-parser from the dependencies, use the built-in parser from slimdom instead