v7.4.0
Added
-
Implemented
toJSONmethods forArangoErrorandHttpError(#632)This prevents an error where
JSON.stringifywould reliably throw if passed
an instance of either of these error types generated by arangojs. Note that
you may still want to implement your own JSON representation logic as system
errors (e.g.ECONNREFUSED) are not wrapped by arangojs and thrown as-is.
Fixed
-
Stack traces are now improved for most errors when using
precaptureStackTraces(#722)Previously this option would only affect network errors, making it far less
useful than intended. Now parsing errors,ArangoErrorinstances and HTTP
errors also receive improved error stack traces when this option is enabled. -
Improved performance for
precaptureStackTraceswhen no errors occurThe generated stack is now only accessed on demand, allowing the runtime to
delay generation of the stack trace string. Previously the stack would always
be accessed prior to the request being sent, causing a noticeable delay even
when no error occurs. -
Fixed document selector validation in
collection.edgesand its variants (#704)These methods previously only permitted start vertices that are documents
within the edge collection itself. This behavior has now been corrected to
permit start vertices outside the collection, as expected.