Skip to content

v9.0.0

Compare
Choose a tag to compare
@pluma4345 pluma4345 released this 31 Jul 08:27
· 3 commits to main since this release
23032a2

This is a major release and breaks backwards compatibility.

See the migration guide for detailed instructions
for upgrading your code to arangojs v9.

Removed

  • Removed Node.js 14 and Node.js 16 support

    With Node.js 14 and 16 having reached their end of life, arangojs will no
    longer support these versions of Node.js going forward.

    For more information, see the Node.js release schedule.

  • Removed Params and Headers types

    These can mostly be replaced with the native URLSearchParams and Headers
    types but most public methods still accept the equivalent Record types for
    convenience.

  • Removed deprecated FulltextIndex and related types

    Fulltext indexes have been deprecated in ArangoDB 3.10 and should be replaced
    with ArangoSearch.

  • Removed browser build

    The browser build has been removed from the repository and will no longer be
    published to npm. The npm package can still be used in the browser by using
    common frontend tooling like webpack or rollup.

  • Removed Collection methods for simple queries: list, all, any,
    byExample, firstExample, removeByExample, replaceByExample,
    updateByExample, lookupByKeys, removeByKeys, fulltext

    Simple queries were deprecated in ArangoDB 3.4 and can be replicated with AQL.

Changed

  • Replaced request logic with native fetch API (#788, DE-578, DE-758)

    The node-specific request logic using the http and https modules has been
    replaced with all-new logic using the web standard fetch API, which should
    work in Node.js, browsers and other conformant environments.

  • Unicode names are now no longer automatically NFC normalized (DE-65)

    This change affects all database, collection, graph, view and analyzer names
    using unicode characters. Starting with arangojs v7.7.0 these names were
    automatically NFC normalized. This behavior has now been reverted to match
    the behavior of other ArangoDB drivers and help detect normalization issues
    in user code.

  • Changed return type of aql and the AQL join helper function to AqlQuery

    Previously the internal GeneratedAqlQuery type was exposed as the return
    type of these functions, leading to complexity when handling generic type
    arguments.

  • Removed dependency on Node path module or its browserify equivalent

    This change should be backwards-compatible but may produce different results
    when using non-normalized paths and base-paths in custom routes. This
    should help support more environments and reduce the size of the browser
    bundle.

  • Inlined x3-linkedlist dependency

    Inlining this dependency should help make arangojs more portable.

  • Split the Collection type parameter into result and input types (#807)

    It is now possible to specify a separate type for the data passed when
    creating or modifying documents in addition to the type of the data returned
    when fetching documents. This allows excluding computed properties from
    the input type while still including them in the result type.

Added

  • Added ESM support (DE-236)

    The driver now supports being imported as an ES module or CommonJS module
    and provides exports for both types of environments. This change should be
    backwards-compatible.

  • Added support for withHidden option in collection.indexes

    This option was introduced in ArangoDB 3.10.13 and 3.11.7 and allows
    fetching the progress information of indexes that are in the building phase.

  • Added support for withStats option in collection.indexes

    This method now takes an object with withStats and withHidden options
    instead of a boolean flag.

  • Added readonly Job#id property

    This property was not previously exposed.

  • Added skipFastLockRound option for streaming transactions

    This option was introduced in 3.12.1 and allows skipping the fast lock round.

  • Added non-specific EnsureIndexOptions type and ensureIndex method
    signature (#778)

    This allows creating indexes without narrowing the index type.