Main Page » Changelog
Changelog
The following features have been added, updated, or removed in BaseX 12:
Startup
- Updated:
Switched to Java 17
Database Server
- Updated:
An initial admin password is generated and written to the logs.
Web Application
- Updated:
BaseX is now based on Jetty 12. - Updated:
An initial admin password is generated and written to the logs.
Command-Line Options
- Added:
-Oto set an option (standalone, client).
Options
- Added:
LOGEXCLUDE,LOGCUT: Filter and preprocess log entries. - Added:
LOGMASKIP: Anonymize IP addresses. - Added:
DTDVALIDATION,XSDVALIDATION: Perform DTD or XSD validation. - Updated:
LOG: Support for different log targets. - Updated:
XINCLUDE: New default:false. - Updated:
LOGMSGMAXLEN: Increased from 1000 to 5000
XQuery 4.0
- Added:
Map Order: The insertion order is preserved when creating maps. - Added:
Pipeline Operator: Example: (1 to 5) -> count(.). - Added:
Type declarations. Example: declare type person as element(person). - Added:
Record types. Example: { 'a': 1 } instance of record(a). - Added:
Record declarations. Example: declare record coord(x, y). - Added:
While clause. Example: for $i in 1 to 5 while ($i * $i) < 10 return $i. - Added:
Map and array filter. Example: [ 1, 2, 3 ]?[. != 2]. - Added:
Methods: functions belonging to maps. - Added:
Retrieval of stack trace in errors. Example: $err:stack-trace. - Added:
Finally block: The try/catch expression has a new finallyclause. - Added:
QName Literals: Example: error(#err:UNEXPECTED). - Updated:
Multiple node tests can be supplied with an axis. Example: child::(element()|text()). - Updated:
Document node tests with name of root node. Example: $node instance of document-node(root). - Updated:
QName literals in node constructors: element #div {}.
Invisible XML
- Updated:
Argument $grammarcan alternatively be passed in XML representation.
Array Functions
- Added:
array:items,array:members. - Updated:
array:get: Default parameter added. - Updated:
array:join
CSV Functions
- Added:
Options: row-delimiter,quote-character,trim-whitespace,trim-rows,strict-quoting,select-columnsoptions. - Updated:
W3 Conversion Format: Revised (old name: xquery): Renamed, more options, header represented as sequence. - Updated:
Options: separatorrenamed tofield-delimiter.
Database Functions
- Added:
db:option-map,db:property-map. - Updated:
error code db:openchanged todb:get.
HTML Functions
- Added:
support for using Validator.nu
Job Functions
- Added:
job:execute
JSON Functions
- Updated:
W3 Conversion Format: Renamed (old name: xquery), w3-xml: Renamed (old name:basic).
Map Functions
- Added:
map:items,map:of-pairs,map:pairs. - Updated:
map:merge,map:buildandmap:of-pairsunified. - Updated:
map:get: Default parameter added.
Process Functions
- Updated:
proc:system:environmentoption added.
Profiling Functions
- Added:
prof:shrink: Reduces the memory consumption of the specified value. - Updated:
prof:variables: Result contains all currently declared variables. - Updated:
prof:runtime: Argument has become optional. - Updated:
prof:memory,prof:time: Aggregate parameter added. - Updated:
prof:type: String output revised, label parameter added.
Request Functions
- Added:
request:parameter-map,request:header-map,request:cookie-map,request:attribute-map.
Standard Functions
- Added:
fn:civil-timezone,fn:collation,fn:collation-available,fn:csv-doc,fn:csv-to-arrays,fn:csv-to-xml,fn:divide-decimals,fn:function-identity,fn:html-doc,fn:load-xquery-module,fn:parse-csv,fn:parse-html,fn:parse-uri,fn:partial-apply,fn:siblings,fn:sort-by,fn:type-of,fn:unparsed-binary. - Updated:
fn:apply,fn:function-annotations,fn:hash,fn:doc,fn:doc-available,fn:path,fn:parse-json,fn:parse-xml,fn:parse-xml-fragment,fn:replace,fn:round,fn:sequence-join.
Utility Functions
- Added:
util:map-key-at,util:map-value-at,util:values-except(mostly utilized by internal optimizations).
XQuery Extensions
- Deleted:
Stack trace output with $err:additional; replaced with$err:stack-trace.
Developer Section
- Deleted:
WebDAV implementation, due to outdated Milton library and compromising dependencies.
RESTXQ
- Added:
HTTP Methods: Support for PATCHmethod added.
Permissions
- Added:
Checking Permissions: Direct access to HTTP request headers and query parameters.
Parsers
- Added:
HTMLPARSER option method=nu.
⚡Generated with XQuery