Main Page » Changelog
BaseX 14 · This is the documentation of an upcoming version. Current version →

Changelog

The following features have been added, updated, or removed in BaseX 14:

XQuery 4.0

  • Added: Arithmetic Mode: Decimal arithmetic. Example: declare option arithmetic-mode 'decimal';.
  • Updated: JNodes: Item nodes precede the children of their parent; node constructors use the values of JNodes.
  • Added: Regular Expressions: Unicode scripts and script extensions. Example: \p{Script=Greek}.
  • Updated: Typeswitch: The default case of braced switch and typeswitch expressions is optional.
  • Updated: Error Map: $err:map includes all properties and is an fn:error-details-record.

Standard Functions

  • Added: fn:generate, fn:update.
  • Updated: fn:hash: algorithm CRC-32C added.
  • Updated: fn:jvalue: any item is accepted.
  • Updated: fn:load-xquery-module: modules in EXPath packages are found; all databases are locked.

Admin Functions

  • Added: admin:close-sessions.

Archive Functions

  • Updated: archive:options: returns a record; algorithm is empty if the archive contains no file entries.

Bit Functions

  • Added: New module.

Cryptographic Functions

  • Added: crypto:sign, crypto:verify, crypto:generate-key, crypto:export-key, crypto:thumbprint, crypto:derive, crypto:hash-password, crypto:verify-password, crypto:random-bytes, crypto:equal.
  • Updated: crypto:encrypt, crypto:decrypt: Keys can be supplied as JWK maps and X.509 certificates; algorithms of the Web Cryptography API (AES-CBC, AES-GCM, RSA-OAEP) with explicit IVs, additional data and tag lengths.
  • Updated: crypto:decrypt: New $options parameter for binary results.

Inspection Functions

  • Updated: inspect:functions: no permissions required without $source; only the databases of the returned functions are locked.

Mail Functions

  • Updated: mail:send: Based on Jakarta Mail; stricter SSL/TLS and authentication checks. Options html, headers, bounce and timeout added. Attachments can be supplied as data and as file URIs. Sending is aborted when the query is stopped.
  • Updated: Conventions: Errors are assigned to the module namespace.

Profiling Functions

  • Updated: prof:track: returns a record; disabled results are empty.

SFTP Functions

  • Added: sftp:pwd, sftp:entries, sftp:create-dir, sftp:exists, sftp:chmod, sftp:get-xml, sftp:append-text, sftp:append-binary.
  • Updated: Conventions: Errors are assigned to the module namespace.
  • Updated: sftp:connect: Options Timeout, IdentityFile, Passphrase and KnownHosts added for key-based authentication; open sessions are closed after query evaluation, or when the query is stopped.
  • Updated: sftp:list: The entries . and .. are no longer returned.
  • Updated: sftp:attributes: Symbolic links are followed. New entries last-accessed, link, permissions, uid and gid.
  • Updated: sftp:get-text, sftp:put-text: Parameter $encoding added; sftp:get-text rejects invalid XML characters.
  • Updated: sftp:logs: Only messages of the current query are returned.

XSLT Functions

  • Updated: xslt:transform-report: returns a record; error is always present.

XQuery Optimizations

  • Updated: Pre-Evaluation: Errors are only raised if the expression is evaluated at runtime.

Java Bindings

  • Updated: Integration: the queryContext and staticContext variables of QueryModule have been replaced with the methods queryContext() and staticContext().

⚡Generated with XQuery