# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.6] - 2024-05-02

### Added

- Add options `requestTimeoutMs` and `retries` to PupRestClient constructor

## [1.0.5] - 2024-05-02

### Added

- Add and export Error type `RestAPIConnectionError`
- Add timeout

### Changed

- Export Error type `RestAPIError`

## [1.0.4] - 2024-04-30

### Added

- Replace Websocketstream with regular websockets through `npm:ws` for broader
  runtime compatibility

## [1.0.3] - 2024-04-30

### Added

- Add method `sendIpc` for inter-process communication

## [1.0.2] - 2024-04-29

- Adds support for periodic refresh of tokens through the metod
  .refreshApiToken().

## [1.0.1] - 2024-04-25

### Added

- Add optional constructor parameter `eventStream` defaulting to false. Add
  `.on()` and `.off()` for subscribing to pup events through WebSocketStreams if
  eventStream is enabled.

## [1.0.0] - 2024-04-23

### Added

- Initial release of @pup/api-client

### Changed

Nothing.

### Removed

Nothing.
