Skip to content

Releases: arangodb/arangojs

v6.5.0

27 Aug 22:50
1f69c27

Choose a tag to compare

Changed

  • Requests that fail because a server can not be reached are now automatically
    retried if other servers are available

    This behavior can be controlled using the maxRetries option.

  • Renamed EdgeCollection#edge to EdgeCollection#document

    EdgeCollection#edge is now an alias for the document method.

  • Renamed GraphEdgeCollection#edge to GraphEdgeCollection#document

    GraphEdgeCollection#edge is now an alias for the document method.

  • Renamed GraphVertexCollection#vertex to GraphVertexCollection#document

    GraphVertexCollection#vertex is now an alias for the document method.

Added

  • Added maxRetries option to configuration to control retry behavior

  • Added collection.documentExists method

  • Added graceful option to collection.document

v6.4.0

27 Aug 22:51
d1486aa

Choose a tag to compare

Changed

  • Added TypeScript validation for opts in DocumentCollection#save

Added

  • Added ArangoError and CollectionType to public exports

  • Added database.close method

  • Added opts parameter to EdgeCollection#save

v6.3.0

27 Aug 22:51
e31737d

Choose a tag to compare

Added

  • Added database.version method

  • Added database.login method

  • Added database.exists method

  • Added collection.exists method

  • Added graph.exists method

  • Added aql.literal function

  • Exposed typings for collections and graphs (@samrg472 in #538)

Fixed

  • Fixed synchronous errors during request creation not being handled

    Internal errors thrown while a request is created (e.g. malformed URIs) would
    result in unhandled errors, which could result in termination of the process
    or promises never being rejected. These errors are now handled normally and
    will result in async rejections as expected.

v6.2.4

27 Aug 22:51
eb36150

Choose a tag to compare

Fixed

  • Ensure res.body is an empty string instead of null in the browser version

v6.2.3

27 Aug 22:52
93a2bcf

Choose a tag to compare

Fixed

  • Fixed collection.update(documentHandle, newValue, opts) missing return value

  • Fixed collection.removeByKeys(keys, options) missing return value

  • Fixed collection.replaceByExample(example, newValue, opts) missing return value

  • Fixed collection.updateByExample(example, newValue, opts) missing return value

v6.2.2

27 Aug 22:52
44396f4

Choose a tag to compare

Fixed

  • Replaced Object.values use to improve Node version compatibility

    This allows using arangojs in Node.js 6 LTS without a polyfill.

v6.2.1

27 Aug 22:52
fcef192

Choose a tag to compare

Changed

  • Moved most documentation out of the README (#123)

    This is a necessary step to integrate arangojs with the Drivers book in the official ArangoDB documentation.

  • Replaced internal use of async functions with callbacks

    This removes some unnecessary layers of indirection, which should increase overall performance.

Fixed

  • Increased test coverage (#34).

v6.2.0

27 Aug 22:52
1a31b1c

Choose a tag to compare

Changed

  • Extended db.transaction arguments (@f5io in #494)

    It's now possible to pass additional transaction options.

Fixed

v6.1.0

27 Aug 22:53
83b4112

Choose a tag to compare

Removed

  • Removed ES modules build

    This should solve compatibility problems with es6-error. The cjs
    build now should also work with emulated ES module imports.

Changed

  • Use cpy-cli for build process

    Should help with cross-platform compatibility.

Fixed

  • Fixed db.uninstallService(mount, opts) opts default value

  • Fixed db.getServiceConfiguration(mount, minimal) minimal representation

  • Fixed db.getServiceDependencies(mount, minimal) minimal representation

  • Fixed db.updateServiceConfiguration(mount, cfg, minimal) non-minimal representation

  • Fixed db.replaceServiceConfiguration(mount, cfg, minimal) non-minimal representation

  • Fixed db.updateServiceDependencies(mount, cfg, minimal) non-minimal representation

  • Fixed db.replaceServiceDependencies(mount, cfg, minimal) non-minimal representation

  • Fixed handling of non-json responses

v6.0.1

27 Aug 22:53
afa7009

Choose a tag to compare

Changed

  • Use rimraf for build process

    Should help with cross-platform compatibility.

Fixed

  • Fixed some imports broken during the TypeScript rewrite

    If you were previously seeing errors involving a default property,
    this should make those go away.