All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Make the SDK importable consistently from CommonJS and ESM/
nodenextprojects. The entry point now usesexport = Paystack, soimport Paystack from 'paystack-sdk'resolves to the constructor instead of a{ default: Paystack }wrapper. Previously this causedTS2351: This expression is not constructableundernodenext, andTypeError: undefined is not a constructorat runtime when thePaystackModule.default(...)workaround was used (e.g. in Docker).
package.jsonnow declares explicittypesandexportsfields. Theexportsmap exposes only the package root, so deep imports such aspaystack-sdk/dist/...are no longer resolvable.
- Replace
axioswith the built-infetchHTTP client (src/http.ts). ThePaystackclass now creates its shared client viacreateHttpClient(key)instead ofaxios.create(...), and all module classes depend on the newHttpClientinterface rather thanAxios.
- Drop the
axiosruntime dependency — the SDK now ships with zero runtime dependencies.
- The minimum supported Node.js version is now 18 (global
fetch). - Non-2xx responses now reject with
PaystackHttpError(which exposes.statusand the parsed.body) instead ofAxiosError.
- Remove deprecation notice. Add to readme
- Added deprecation notice for default export
- plan: added methods for plan (d68ff371)
- transactions: added initialize transaction, verify transaction, list transactions (73c85a83)
- charge: compeleted the endpoints, what remains is custom validtion and comments (cc3165ce)
- 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