diff --git a/CHANGELOG.md b/CHANGELOG.md index a524dc4..0a70b13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [1.4.1] - 2026-07-13 +### Added +- Regression tests covering all five error branches (RateLimitError, PermissionError, ServiceError x2, HttpError, and the ValidationError path in the Onfleet constructor), none of which had prior test coverage. + +### Changed +- lib/error.js: ValidationError, PermissionError, HttpError, RateLimitError, and ServiceError changed from arrow functions to `function` declarations. + +### Fixed +- Fixed `TypeError: X is not a constructor` thrown whenever the Onfleet API returned a non-2xx response, which masked the real API error details (rate limiting, permission errors, service errors, generic HTTP errors) and the missing-API-key validation error. ## [1.4.0] - 2025-08-08 ### Added @@ -135,7 +144,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial release on npm -[Unreleased]: https://github.com/onfleet/node-onfleet/compare/v1.4.0...HEAD +[Unreleased]: https://github.com/onfleet/node-onfleet/compare/v1.4.1...HEAD +[1.4.1]: https://github.com/onfleet/node-onfleet/compare/v1.4.0...v1.4.1 [1.4.0]: https://github.com/onfleet/node-onfleet/compare/v1.3.8...v1.4.0 [1.3.7]: https://github.com/onfleet/node-onfleet/compare/v1.3.7...v1.3.8 [1.3.6]: https://github.com/onfleet/node-onfleet/compare/v1.3.4...v1.3.7