Skip to content

v10.0.0-alpha.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@pluma4345 pluma4345 released this 09 Dec 14:28
· 0 commits to main since this release
460cf2b

This 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 to DropCollectionOptions

  • Renamed CollectionTruncateOptions type to TruncateCollectionOptions

  • Renamed Config type to ConfigOptions

  • Renamed path option to pathname in RequestOptions type

    This affects the db.waitForPropagation and route.request methods.

  • Removed basePath option from RequestOptions type

    This affects the db.waitForPropagation and route.request methods.

  • Renamed route.path property to route.pathname

  • Changed error type constructor signatures

    The request property is now always positional and the options property
    is always optional.

  • Moved configuration related types to new config module

    The following types were moved: Config, LoadBalancingStrategy,
    BasicAuthCredentials and BearerAuthCredentials.

  • Moved ArangoErrorResponse type to connection module

    The type is now also no longer marked as internal.

  • Moved configuration related types to new configuration module

    The following types were moved: ConfigOptions, LoadBalancingStrategy,
    BasicAuthCredentials and BearerAuthCredentials.

  • Moved internal utility functions to new lib/util module

    These 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 custom undici
    agent if the undici library is installed.