Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: SDK Quality
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
with:
version: 11.26.0
- uses: actions/setup-node@v6
with:
node-version: "24.x"
package-manager-cache: false
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm exec vp check
- run: pnpm test
- run: pnpm run lint:package
- run: pnpm run lint:types
17 changes: 16 additions & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 10
version: 11.26.0

- name: Setup Node
uses: actions/setup-node@v6
Expand All @@ -42,6 +42,21 @@ jobs:
- name: Build
run: pnpm build

- name: Test
run: pnpm test

- name: Lint package metadata
run: pnpm run lint:package

- name: Install npm with trusted publishing support
run: npm install --global npm@11.18.0

- name: Verify release tag
if: startsWith(github.ref, 'refs/tags/')
env:
RELEASE_TAG: ${{ github.ref_name }}
run: node -e 'if (process.env.RELEASE_TAG !== `v${JSON.parse(require("node:fs").readFileSync("package.json", "utf8")).version}`) process.exit(1)'

- name: Check published version
id: published
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.10.9

- Align standalone SDK installs with the source workspace catalog and patched dependencies.
- Verify tests and package metadata before release.

## [1.10.7](https://github.com/alexasomba/paystack-node/compare/v1.10.6...v1.10.7) (2026-06-01)

### Bug Fixes
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@ const total = result.response.headers.get("x-total-count");
```ts
import { toPaystackApiError } from "@alexasomba/paystack-node";

const result = await paystack.transaction_initialize({
/* ... */
});
const result = await paystack.transaction_initialize({/* ... */});
const error = toPaystackApiError(result);

if (error) {
Expand Down
50 changes: 42 additions & 8 deletions node_modules/.bin/openapi-typescript

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 42 additions & 8 deletions node_modules/.bin/tsc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 42 additions & 8 deletions node_modules/.bin/tsserver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 42 additions & 8 deletions node_modules/.bin/yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alexasomba/paystack-node",
"version": "1.10.8",
"version": "1.10.9",
"description": "The most comprehensive Node.js SDK for Paystack - Complete, Type-safe, and Spec-compliant with full OpenAPI coverage and webhook verification.",
"keywords": [
"africa",
Expand Down Expand Up @@ -85,18 +85,19 @@
"openapi-fetch": "^0.17.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@arethetypeswrong/cli": "^0.18.5",
"@tanstack/intent": "^0.0.41",
"@types/node": "^24.12.3",
"openapi-typescript": "^7.13.0",
"publint": "^0.3.20",
"typescript": "^5.9.3",
"vite": "npm:@voidzero-dev/vite-plus-core@^0.1.20",
"vite-plus": "^0.1.20",
"vitest": "npm:@voidzero-dev/vite-plus-test@^0.1.20",
"vite": "catalog:",
"vite-plus": "catalog:",
"vitest": "catalog:",
"yaml": "^2.8.4"
},
"engines": {
"node": ">=22.0.0"
}
},
"packageManager": "pnpm@11.26.0"
}
Loading
Loading