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 switchandtypeswitchexpressions is optional. - Updated:
Error Map: $err:mapincludes all properties and is anfn:error-details-record.
Standard Functions
- Added:
fn:generate,fn:update. - Updated:
fn:hash: algorithmCRC-32Cadded. - 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;algorithmis 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$optionsparameter 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. Optionshtml,headers,bounceandtimeoutadded. 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: OptionsTimeout,IdentityFile,PassphraseandKnownHostsadded 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 entrieslast-accessed,link,permissions,uidandgid. - Updated:
sftp:get-text,sftp:put-text: Parameter$encodingadded;sftp:get-textrejects invalid XML characters. - Updated:
sftp:logs: Only messages of the current query are returned.
XSLT Functions
- Updated:
xslt:transform-report: returns a record;erroris always present.
XQuery Optimizations
- Updated:
Pre-Evaluation: Errors are only raised if the expression is evaluated at runtime.
Java Bindings
- Updated:
Integration: the queryContextandstaticContextvariables ofQueryModulehave been replaced with the methodsqueryContext()andstaticContext().
⚡Generated with XQuery