From f1283240fc2c74c93b3fdfa58944c2a2a9d7f68e Mon Sep 17 00:00:00 2001 From: Shuai Tseng Date: Mon, 13 Jul 2026 12:11:17 -0700 Subject: [PATCH 1/2] update changelog to 1.4.1 --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a524dc4..297629f 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.0]: 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 From 728c846d264dcdd3758c7cb9747570a5b849e458 Mon Sep 17 00:00:00 2001 From: Shuai Tseng <62573713+shuaitseng@users.noreply.github.com> Date: Mon, 13 Jul 2026 12:25:19 -0700 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 297629f..0a70b13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -145,7 +145,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release on npm [Unreleased]: https://github.com/onfleet/node-onfleet/compare/v1.4.1...HEAD -[1.4.0]: https://github.com/onfleet/node-onfleet/compare/v1.4.0...v1.4.1 +[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