From fdaf4d4d260ae1f3ea536e78d50be1e04c35f5ce Mon Sep 17 00:00:00 2001 From: rodrigojara-cko Date: Wed, 25 Nov 2026 18:27:02 +0100 Subject: [PATCH] Release 5.10.0 - Security hardening This release brings security hardening of the HTTP layer, with both HTTP clients. Some responses that were handled as a success now return an SDK error with their status code: check `http_code` of the error, or `body.status` of an `AuthenticationError`. The report file download keeps working. With axios, SDK requests use axios's built-in http/https transport, whatever the application's `transport` default. Connection errors keep their type and add a `cause` with the client's error name, message and code. - Security hardening of the HTTP client and access token handling. - Errors of the HTTP layer are SDK error types; connection errors carry a `cause`. - Type declarations: `getReportFile` returns `Promise`, and `ApiError` declares `cause`. --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b5d24f91..8adb1087 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "checkout-sdk-node", - "version": "5.9.1", + "version": "5.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "checkout-sdk-node", - "version": "5.9.1", + "version": "5.10.0", "license": "MIT", "dependencies": { "axios": "^1.21.1", diff --git a/package.json b/package.json index a7000c56..17f699bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "checkout-sdk-node", - "version": "5.9.1", + "version": "5.10.0", "description": "Official Node.js SDK for Checkout.com payment gateway - SDK with full API coverage with TypeScript support", "type": "module", "engines": {