diff --git a/CHANGELOG.md b/CHANGELOG.md index 6154322..ffa3ba5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.10.0](https://github.com/Coaktion/client-core/compare/v1.9.1...v1.10.0) (2024-11-19) + + +### Features + +* enhance retryCondition to handle undefined errors and improve status checks ([247e36b](https://github.com/Coaktion/client-core/commit/247e36b50c6e9c2a6f279a57da6b12019e581985)) +* enhance retryDelay method to improve error handling and support rate limit delays ([197fac8](https://github.com/Coaktion/client-core/commit/197fac82ee51b55e065028c437b8db4398be3ded)) + + +### Bug Fixes + +* improve error handling in retryDelay method to support optional chaining ([42db061](https://github.com/Coaktion/client-core/commit/42db061a690346dc239a62dc60dbacc7ef33b17d)) + ### [1.9.1](https://github.com/Coaktion/client-core/compare/v1.9.0...v1.9.1) (2024-11-18) diff --git a/package-lock.json b/package-lock.json index b2c6ef5..e7183a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@coaktion/client-core", - "version": "1.9.1", + "version": "1.10.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@coaktion/client-core", - "version": "1.9.1", + "version": "1.10.0", "license": "MIT", "dependencies": { "axios": "^1.6.0" diff --git a/package.json b/package.json index 2df5266..b1a78ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coaktion/client-core", - "version": "1.9.1", + "version": "1.10.0", "description": "Library helping you to create a client RestFul API", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/tests/axios.test.ts b/tests/axios.test.ts index c581634..9a7edad 100644 --- a/tests/axios.test.ts +++ b/tests/axios.test.ts @@ -182,7 +182,7 @@ describe('AxiosClient', () => { url: '/users' }); } catch (error) { - expect(error.status).toEqual(500); + expect(error.response.status).toEqual(500); } }); });