Main Page » Changelog

Changelog

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

Command-Line Options

  • Added: -O to set an option (standalone, client).

Options

  • Updated: LOG: Support for different log targets.
  • Added: LOGEXCLUDE: Filter out log entries.
  • Added: LOGCUT: Remove substrings from log messages.

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: Lookup arrow expression. Example: $vector-map =?> product().
  • Added: Multiple node tests can be specified after the axis specifier. Example: $node/child::(element()|text()).
  • Added: Retrieval of stack trace in errors. Example: $err:stack-trace.

Array Functions

  • Added: array:items.
  • Updated: array:join

CSV Functions

  • Added: Options: row-delimiter, quote-character, trim-whitespace, trim-rows, strict-quoting, select-columns options.
  • Updated: W3 Conversion Format: Revised (old name: xquery): Renamed, more options, header represented as sequence.
  • Updated: Options: separator renamed to field-delimiter.

Database Functions

  • Added: db:option-map, db:property-map.

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

  • Updated: map:merge, map:build and map:of-pairs unified.
  • Added: map:items, map:of-pairs, map:pairs.

Process Functions

  • Updated: proc:system: environment option 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-to-arrays, fn:csv-to-xml, fn:divide-decimals, fn:parse-csv, fn:parse-html, fn:siblings, fn:type-of.
  • Updated: fn:hash, fn:path, fn:round, fn:sequence-join.

XQuery Extensions

RESTXQ

  • Added: HTTP Methods: Support for PATCH method added.

Permissions

  • Added: Checking Permissions: Direct access to HTTP request headers and query parameters.

Parsers

  • Added: HTMLPARSER option method=nu.

⚡Generated with XQuery