Skip to content

v7.4.0

Choose a tag to compare

@pluma pluma released this 09 Apr 14:38
· 374 commits to main since this release
26c8f41

Added

  • Implemented toJSON methods for ArangoError and HttpError (#632)

    This prevents an error where JSON.stringify would 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, ArangoError instances and HTTP
    errors also receive improved error stack traces when this option is enabled.

  • Improved performance for precaptureStackTraces when no errors occur

    The 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.edges and 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.