Releases: FontoXML/fontoxpath
Releases · FontoXML/fontoxpath
3.30.3
3.30.2
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
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
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
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
3.28.0
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
- Remove Node 12 and add Node 18 to the CI by @DrRataplan in #548
- Improvements to experimental codegen by @bwrrp in #549
Full Changelog: 3.27.1...3.28.0
3.27.1
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
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
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 fromslimdom
instead