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

  • 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.

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 finally clause.
  • Updated: Multiple node tests can be specified after the axis specifier. Example: $node/child::(element()|text()).
  • Updated: Document node tests can contain name of root element. Example: $node instance of document(root).

Invisible XML

  • Updated: Argument $grammar can alternatively be passed in XML representation.

Array Functions

  • Added: array:items.
  • Updated: array:get: Default parameter added.
  • 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

  • Added: map:items, map:of-pairs, map:pairs.
  • Updated: map:merge, map:build and map:of-pairs unified.
  • Updated: map:get: Default parameter added.

Process Functions

  • Updated: proc:system: environment option added.

Profiling Functions

  • 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-to-arrays, fn:csv-to-xml, fn:divide-decimals, fn:function-identity, fn:html-doc, fn:parse-csv, fn:parse-html, fn:partial-apply, fn:siblings, fn:type-of.
  • Updated: fn:apply, fn:hash, fn:path, fn:parse-xml, fn:parse-xml-fragment, fn:round, fn:sequence-join.

Utility Functions

  • Added: util:map-key-at, util:map-value-at, util:values-except

XQuery Extensions

Developer Section

  • Deleted: WebDAV implementation.

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