v7.0.0-rc.0
Pre-releaseThis is a release candidate 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 or yarn add arangojs@next.
This is a major release and breaks backwards compatibility.
Removed
-
Removed
statusCodeproperties ofArangoErrorandHttpErrorBoth of these error types still expose the HTTP status code as the
code
property. ForArangoErrorthe true HTTP status code may be different and
can still be accessed using theresponse.statusCodeproperty. -
Removed
ArangoErrorre-exportThe type can still be imported directly from the
errormodule.
Changed
-
Renamed
cursor.nextBatchtocursor.batches.next -
Renamed
cursor.hasMoretocursor.batches.hasMore -
Renamed
db.createArangoSearchViewtodb.createView -
Renamed
transaction.runtotransaction.stepThis should hopefully make it more obvious that sequential calls to arangojs
methods should be split into separate calls of this method. -
Added support for
Viewinaqltemplates (#667)View(orArangoSearchView) objects can now be passed intoaqltemplates
likeArangoCollectionobjects. -
Graph methods now also accept
ArangoCollectioninstances instead of namesThis brings these methods behavior in line with that of the
beginTransaction
andexecuteTransactionmethods ofDatabaseobjects. -
Moved
collectionToStringhelper intocollectionmodule -
Moved
Dicttype intoconnectionmodule -
Moved
Patchtype intodocumentsmodule -
Removed
Errbacktype from public API -
Renamed
util/foxx-manifestmodule tofoxx-manifest -
Removed
Collectiontype from public APIAll public APIs reference
DocumentCollectionandEdgeCollectiondirectly.
Added
-
Added
precaptureStackTracesconfiguration option (#599)This option can be used to get more useful stack traces but results in a
performance hit on every request. -
Added
cursor.batchesto provide a batch-wise cursor API -
Added
beforeandafterto theagentOptionsconfiguration option (#585)These methods can be used to track performance metrics for outgoing requests.