v6.0.0
Removed
-
Removed
retryConnectionconfig.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
promiseconfig.If you want to use an alternative promise implementation
you need to overwrite thePromiseglobal variable directly. -
Asynchronous functions no longer support node-style callbacks.
All asynchronous functions now return promises.
-
Removed support for credentials in
urlconfig.Use
db.useBasicAuthordb.useBearerAuthto pass credentials instead. -
Removed bower support.
Use yarn/npm instead.
Changed
-
The
urlconfig can now also be an array of URLs.The behaviour depends on the load balancing strategy (see API docs).
-
The
databaseNameconfig has been replaced withisAbsolute.If you previously used
databaseName: false, the same behaviour can now
be achived usingisAbsolute: true. If you want to use a specific
database you can still switch databases withdb.useDatabaseat 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 matchesagentOptions.maxSocketsexactly. -
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
- ES Modules files live under
-
Added support for load balancing and failover.
See API documentation for details.
-
Added
acquireHostListmethod.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.