Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.28 KB

CHANGELOG.md

File metadata and controls

31 lines (21 loc) · 1.28 KB

Changelog

This project adheres to Semantic Versioning.

Unreleased changes

0.0.2 - 2024-08-27

Bugfix

  • hasErrorResponse and hasProblemDetails now check of undefined and null, preventing runtime errors.

New Features

  • Node 22 is now supported

0.0.1 - 2024-07-03

New Features

  • InruptClientError: Superclass for all Inrupt client libraries runtime errors.
  • ClientHttpError, hasProblemDetails, hasErrorResponse: Class for runtime error thrown upon reception of an HTTP error response, i.e. 4xx and 5xx ranges. The two associated type guards are available to test for the presence of the specific properties exposed by the class.
  • BadRequestError, ConflictError, ForbiddenError, GoneError, InternalServerError, MethodNotAllowedError, NotAcceptableError, NotFoundError, PreconditionFailedError, TooManyRequestsError, UnauthorizedError, UnsupportedMediaTypeError: Specializations of the ClientHttpError to represent common HTTP error responses.
  • handleErrorResponse: a function to map the received HTTP error to the appropriate error class.