All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
-
Extended
db.transaction
arguments (@f5io in #494)It's now possible to pass additional transaction options.
-
Fixed a typo (@lodestone in #506)
-
Fixed
graphEdgeCollection.edge
return value (@Hunter21007 in #501)
-
Removed ES modules build
This should solve compatibility problems with
es6-error
. The cjs build now should also work with emulated ES module imports.
-
Use
cpy-cli
for build processShould help with cross-platform compatibility.
-
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
-
Use
rimraf
for build processShould help with cross-platform compatibility.
-
Fixed some imports broken during the TypeScript rewrite
If you were previously seeing errors involving a
default
property, this should make those go away.
-
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
ordb.useBearerAuth
to pass credentials instead. -
Removed bower support.
Use yarn/npm instead.
-
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 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.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 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
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 #354
Graph methods now only return the relevant part of the response body.