Skip to content

Releases: checkout/checkout-sdk-node

3.3.0

11 May 10:23
43b9d87

Choose a tag to compare

Release 3.3.0 (#430)

This release improves multipart form-data handling in HTTP requests, specifically ensuring that FormData is properly serialized and sent in API calls. The changes fix a bug where the form-data instance was previously string-coerced (resulting in an invalid request body), and add comprehensive regression tests to prevent this issue from recurring.

HTTP request handling improvements:

  • Added a formDataToBuffer utility to serialize FormData streams into a buffer, ensuring multipart bodies are transmitted correctly in HTTP requests.
  • Updated the HTTP request logic to use the new buffer serialization for FormData, preventing accidental string coercion and ensuring the correct Content-Type and body format.
  • Enhanced header generation to merge headers from FormData instances when present, ensuring the multipart boundary is set correctly.
  • Imported Node's Writable stream to support the new buffer serialization logic.

Testing and regression coverage:

  • Improved and expanded tests in test/files/files.js to verify that multipart requests include the correct fields and headers, and added a regression test for issue #418 to ensure the bug does not reoccur. [1] [2]

3.2.1

22 Apr 16:28
6111b9e

Choose a tag to compare

Release 3.2.1 (#428)

  • fix(build): restore ESM output broken since v3.1.0 (#427)

3.2.0

31 Mar 11:22
9958802

Choose a tag to compare

Release 3.2.0 (#426)

New Features

  • Account Updater API: New client for managing card account updates
  • Identities API: Complete client with 6 submodules (AML screenings, applicants, face authentications, ID document verifications, identity verifications, delegation)
  • Issuing API: Expanded with 10 new submodules (access, cardholders, cards, control groups, control profiles, controls, digital cards, disputes, simulate, transactions)
  • Network Tokens API: New client for network token management
  • Payment Methods API: New client for payment method operations

Improvements

  • Error Handling: Enhanced error propagation for 401/403/404 responses with detailed error.body
  • Code Organization: Refactored core modules (Checkout.js, Platforms, HTTP service) for better maintainability
  • Test Suite: Reorganized 51+ test files with better separation between unit and integration tests
  • Documentation: Improved JSDoc annotations with @memberof tags, updated README with new architecture examples

Technical Details

  • Reduced Checkout.js from ~200 lines to ~46 lines through modularization
  • Split Platforms API into focused submodules (subentity, files, payment-instruments, payout-schedules, reserve-rules)
  • Enhanced HTTP client with better response processing and error context
  • Added TypeScript definitions for all new API clients
  • Test coverage: 97.89% (818 tests passing)

All changes maintain backward compatibility.

3.1.0

30 Jan 11:30
c69473d

Choose a tag to compare

Version 3.1.0 - New payments/setups client + merchant-specific DNS names Support for access (#422)

3.0.3

25 Sep 17:16
6c84a0e

Choose a tag to compare

Release 3.0.3 (#417)

  • fix: set modules option to false in Babel preset-env configuration (#416)

3.0.1

25 Sep 14:01
d5ebd11

Choose a tag to compare

Release 3.0.1 (#414)

  • fix: update webhookParsingMiddleware to use Function type for next parameter (#413)
  • chore: remove unnecessary entries from .npmignore
  • chore: add nodemon as a dev dependency and update @mswjs/interceptors version

3.0.0

24 Sep 11:47
6f8b16d

Choose a tag to compare

Release 3.0.0 (#411)

  • chore!: migrate from Node.js 12 (CommonJS) to Node.js 18 with ES modules
  • fix: resolve Unicode character issue in authentication_failed webhooks

2.8.1

14 Aug 12:55
4d631ac

Choose a tag to compare

Release 2.8.1 (#407)

  • fix: updates form-data dependency to version 4.0.4

2.8.0

23 Jun 15:58
b15cb20

Choose a tag to compare

Release 2.8.0 (#405)

  • feat: adds Forward API class with request forwarding functionality

2.7.0

06 Jun 11:43
98639d1

Choose a tag to compare

Release 2.7.0 (#403)

  • feat: add submit method to PaymentSessions API and corresponding tests