Skip to content

5.10.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 09:40
f2bf871

Release 5.10.0 - Security hardening (#485)

This release brings security hardening of the HTTP layer, with both HTTP
clients. Some responses that were handled as a success now return an SDK
error with their status code: check http_code of the error, or
body.status of an AuthenticationError. The report file download keeps
working. With axios, SDK requests use axios's built-in http/https
transport, whatever the application's transport default. Connection
errors keep their type and add a cause with the client's error name,
message and code.

  • Security hardening of the HTTP client and access token handling.
  • Errors of the HTTP layer are SDK error types; connection errors carry a
    cause.
  • Type declarations: getReportFile returns Promise<Buffer>, and
    ApiError declares cause.