Skip to content

Releases: arangodb/arangojs

v6.0.0

27 Aug 22:53
1dc218d

Choose a tag to compare

Removed

  • Removed retryConnection config.

    It is not possible to reliably determine whether retrying a request
    is safe or not at the driver level. If you need automatic retry, you
    should implement your own logic, e.g. using the
    retry package.

  • Removed promise config.

    If you want to use an alternative promise implementation
    you need to overwrite the Promise global variable directly.

  • Asynchronous functions no longer support node-style callbacks.

    All asynchronous functions now return promises.

  • Removed support for credentials in url config.

    Use db.useBasicAuth or db.useBearerAuth to pass credentials instead.

  • Removed bower support.

    Use yarn/npm instead.

Changed

  • The url config can now also be an array of URLs.

    The behaviour depends on the load balancing strategy (see API docs).

  • The databaseName config has been replaced with isAbsolute.

    If you previously used databaseName: false, the same behaviour can now
    be achived using isAbsolute: true. If you want to use a specific
    database you can still switch databases with db.useDatabase at any time.

  • Browser: maximum number of parallel connections behaves differently.

    As keep-alive does not work reliably in the browser, the maximum number
    of parallel connections now matches agentOptions.maxSockets exactly.

  • TypeScript: ported arangojs to TypeScript.

    The generated typings are now included in the NPM release and should
    be more reliable than the community maintained typings included with
    earlier versions of arangojs.
    See also #480.

Added

  • Added ES Modules and browser build to NPM release.

    • ES Modules files live under lib/esm/
    • CommonJS files live under lib/cjs/
    • Precompiled browser build lives at lib/web.js
  • Added support for load balancing and failover.

    See API documentation for details.

  • Added acquireHostList method.

    See API documentation for details.

  • Added support for leader/follower failover.

    Connections to a follower responding with an endpoint redirect
    will now be transparently redirected to the indicated leader.

Fixed

  • Fixed #354

    Graph methods now only return the relevant part of the response body.

5.0.2

20 Jun 19:26
c29c0e9

Choose a tag to compare

Changes:

  • browser bundle now correctly exports an arangojs global variable via UMD.
  • some development dependencies have been updated to their latest versions.

5.0.1

17 Jun 13:10
ae26dd2

Choose a tag to compare

Changes:

  • when using db.collections with a callback the excludeSystem argument is now correctly treated as optional; omitting the argument would previously result in unexpected behaviour (#244).

5.0.0

15 Jun 18:22
7fc98ee

Choose a tag to compare

Changes:

  • default arangoVersion has been changed from 20300 (2.3.0) to 30000 (3.0.0)

This is a backwards-incompatible change as the driver will now run in 3.x mode by default. If you want to use versions 5.0.0 and beyond with ArangoDB 2.x you will have to specify the appropriate arangoVersion explicitly to run the driver in 2.x mode.

4.5.1

15 Jun 18:19
a5fd19e

Choose a tag to compare

Changes:

  • fixed some errors caused by micro-optimizations in 4.5.0

4.5.0

31 May 15:46
382ff8c

Choose a tag to compare

Changes:

  • various micro-optimizations
  • update aqlQuery implementation for parity with ArangoDB 3.0
  • the aqlQuery method has been renamed to aql (aqlQuery will still be supported as an alias until 5.0)

4.4.0

31 May 15:52
f8be4c6

Choose a tag to compare

Changes:

  • ArangoDB 3.0 support! (use arangoVersion to run arangojs in the appropriate mode)
  • ArangoError now uses the es6-error module
  • Code has been migrated to use the standard code style
  • Browser bundle is now generated with webpack instead of browserify
  • Various dependencies have been updated to their most recent versions
  • Various minor documentation changes

v4.3.0

27 Jan 17:00

Choose a tag to compare

Changes:

  • GraphVertexCollection#remove and GraphEdgeCollection#remove now use the Graph API instead of the Collection API
  • GraphVertexCollection and GraphEdgeCollection now handle non-key document handles correctly
  • GraphVertexCollection#save no longer sends an additional collection parameter

v4.2.1

01 Dec 13:42

Choose a tag to compare

Changes:

  • Improved documentation

v4.2.0

01 Dec 12:18

Choose a tag to compare

Changes:

  • replaced the dependency on extend with ES.next object spread syntax
  • removed some unused build dependencies from devDependencies
  • updated various build dependencies