Skip to content

Latest commit

 

History

History
84 lines (55 loc) · 2.78 KB

File metadata and controls

84 lines (55 loc) · 2.78 KB

Changelog

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

[4.1.0] - 2026-09-14

Fixed

  • Make the SDK importable consistently from CommonJS and ESM/nodenext projects. The entry point now uses export = Paystack, so import Paystack from 'paystack-sdk' resolves to the constructor instead of a { default: Paystack } wrapper. Previously this caused TS2351: This expression is not constructable under nodenext, and TypeError: undefined is not a constructor at runtime when the PaystackModule.default(...) workaround was used (e.g. in Docker).

Changed

  • package.json now declares explicit types and exports fields. The exports map exposes only the package root, so deep imports such as paystack-sdk/dist/... are no longer resolvable.

[4.0.0] - 2026-08-16

Changed

  • Replace axios with the built-in fetch HTTP client (src/http.ts). The Paystack class now creates its shared client via createHttpClient(key) instead of axios.create(...), and all module classes depend on the new HttpClient interface rather than Axios.

Removed

  • Drop the axios runtime dependency — the SDK now ships with zero runtime dependencies.

Breaking changes

  • The minimum supported Node.js version is now 18 (global fetch).
  • Non-2xx responses now reject with PaystackHttpError (which exposes .status and the parsed .body) instead of AxiosError.

3.6.1 - 2025-12-14

Added

  • Remove deprecation notice. Add to readme

[3.6.0] - 2025-12-14

Added

  • Added deprecation notice for default export

1.0.4 (2021-12-06)

Added

  • plan: added methods for plan (d68ff371)

1.0.3 (2021-12-06)

Added

  • transactions: added initialize transaction, verify transaction, list transactions (73c85a83)
  • charge: compeleted the endpoints, what remains is custom validtion and comments (cc3165ce)

1.0.3 (2021-12-06)

Added

  • charge: compeleted the endpoints, what remains is custom validtion and comments (cc3165ce)
  • ✍🏻 UPDATE(charge): compeleted the endpoints, what remains is custom validtion and comments
  • 1.0.3
  • ✍🏻 UPDATE(charge): compeleted the endpoints, what remains is custom validtion and comments
  • 1.0.2
  • 🐞 FIX(main entry file):
  • 1.0.1
  • ✍🏻 UPDATE(travis): for automated builds
  • 🐞 FIX(main entry file):
  • 📦 NEW(set up sdk):
  • Initial commit