v10.0.0-alpha.1
Pre-releaseThis is a preview release which is not intended for use in production and has been published under the npm next
tag.
To install the latest preview release, run npm install arangojs@next
.
See the migration guide for detailed instructions
for upgrading your code to arangojs v10.
Changed
-
Renamed
CollectionDropOptions
type toDropCollectionOptions
-
Renamed
CollectionTruncateOptions
type toTruncateCollectionOptions
-
Renamed
Config
type toConfigOptions
-
Renamed
path
option topathname
inRequestOptions
typeThis affects the
db.waitForPropagation
androute.request
methods. -
Removed
basePath
option fromRequestOptions
typeThis affects the
db.waitForPropagation
androute.request
methods. -
Renamed
route.path
property toroute.pathname
-
Changed error type constructor signatures
The
request
property is now always positional and theoptions
property
is always optional. -
Moved configuration related types to new
config
moduleThe following types were moved:
Config
,LoadBalancingStrategy
,
BasicAuthCredentials
andBearerAuthCredentials
. -
Moved
ArangoErrorResponse
type toconnection
moduleThe type is now also no longer marked as internal.
-
Moved configuration related types to new
configuration
moduleThe following types were moved:
ConfigOptions
,LoadBalancingStrategy
,
BasicAuthCredentials
andBearerAuthCredentials
. -
Moved internal utility functions to new
lib/util
moduleThese methods are all still marked as internal and should not be used
directly. -
Closing a connection now closes all open requests
Previously in certain situations only the most recent request would be
closed per server. Note that this still merely aborts the requests but
does not guarantee the underlying connections are closed as these are
handled by Node.js or the browser natively.
Added
-
Restored support for Unix domain sockets
Using Unix domain sockets requires the
undici
library to be installed. -
Restored support for
config.agentOptions
The
config.agentOptions
option can now be used to create a customundici
agent if theundici
library is installed.