Releases: arangodb/arangojs
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.
5.0.2
5.0.1
5.0.0
Changes:
- default
arangoVersionhas been changed from20300(2.3.0) to30000(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
4.5.0
4.4.0
Changes:
- ArangoDB 3.0 support! (use
arangoVersionto run arangojs in the appropriate mode) ArangoErrornow 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
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
collectionparameter