From 954002ca04c2faac7952cbbf7011293b5911d835 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 10:49:20 +0100 Subject: [PATCH 01/17] Add preinstall script to npm build script --- scripts/build_npm.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index bbb5a29..ad293db 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -31,6 +31,9 @@ await build({ "deno", "typescript", ], + scripts: { + preinstall: "echo '@jsr:registry=https://npm.jsr.io' >> .npmrc" + }, dependencies: { "@std/fmt": "npm:@jsr/std__fmt@^1.0.3", axios: "^1.7.9", From 86c500c73d528e636505b69d901a9309205bf049 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 10:49:41 +0100 Subject: [PATCH 02/17] Update package version --- deno.jsonc | 2 +- docs/_coverpage.md | 2 +- src/paystack.ts | 2 +- src/restClient.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index 17365d0..a478f43 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,7 +1,7 @@ { "name": "@gray-adeyi/paystack-sdk", "description": "A paystack client SDK for the javascript runtime.", - "version": "0.2.0", + "version": "0.2.1", "author": "Gbenga Adeyi ", "exports": "./mod.ts", "license": "MIT", diff --git a/docs/_coverpage.md b/docs/_coverpage.md index 6c44397..b4a3db3 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,6 +1,6 @@ ![logo](./media/icon.png) -# @gray-adeyi/paystack-sdk 0.2.0 +# @gray-adeyi/paystack-sdk 0.2.1 > A [Paystack](https://www.paystack.com/) client SDK for the javascript runtime. diff --git a/src/paystack.ts b/src/paystack.ts index 82254be..18d8980 100644 --- a/src/paystack.ts +++ b/src/paystack.ts @@ -28,7 +28,7 @@ const SECRET_KEY_PREFIX = "sk_test_"; const PACKAGE_DEV_MODE_MESSAGE = ` 💪🏽 ${ - blue(bold("Paystack Integration powered by @gray-adeyi/paystack-sdk 0.2.0")) + blue(bold("Paystack Integration powered by @gray-adeyi/paystack-sdk 0.2.1")) } 🔥 ${ green(` diff --git a/src/restClient.ts b/src/restClient.ts index b6a0add..e447d98 100644 --- a/src/restClient.ts +++ b/src/restClient.ts @@ -67,7 +67,7 @@ export default class RestClient { private get baseHeaders() { return { - "User-Agent": "@gray-adeyi/paystack-sdk 0.2.0", + "User-Agent": "@gray-adeyi/paystack-sdk 0.2.1", Accept: "application/json", "Content-Type": "application/json", Authorization: "", From ec5c20830f217cd8b0990f058fb9fddec9fc96d7 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 10:51:04 +0100 Subject: [PATCH 03/17] Update docs --- README.md | 9 +++++++++ docs/get-started.md | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 6ea246a..e0d27db 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,15 @@ bun add @gray-adeyi/paystack-sdk deno add @gray-adeyi/paystack-sdk ``` +### Notice + +You may experience issues installing this package in `node` and `bun` runtimes, please create a `.npmrc` file in +your project root and add `@jsr:registry=https://npm.jsr.io` to it or run before installing this package. + +```commandline +echo '@jsr:registry=https://npm.jsr.io' >> .npmrc +``` + ## Usage `PaystackClient` from the `@gray-adeyi/paystack-sdk` package provides all that diff --git a/docs/get-started.md b/docs/get-started.md index deff293..1e5bb81 100644 --- a/docs/get-started.md +++ b/docs/get-started.md @@ -36,6 +36,16 @@ deno add @gray-adeyi/paystack-sdk +### Notice + +You may experience issues installing this package in `node` and `bun` runtimes, please create a `.npmrc` file in +your project root and add `@jsr:registry=https://npm.jsr.io` to it or run before installing this package. + +```commandline +echo '@jsr:registry=https://npm.jsr.io' >> .npmrc +``` + + ## Usage @gray-adeyi/paystack-sdk provides the `PaystackClient` class which provides all From 74c38221cf20c5738ec04b3e5c33817eb4a22e0b Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 10:51:14 +0100 Subject: [PATCH 04/17] Update changelog --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b239de7..e77748e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,13 @@ format (I find myself trying too hard to guess the months) ## [Unreleased] +## [0.2.1] - 12-Dec-2024 + +### Fixed + +- Installation fails for bun and node because of jsr dependencies, added guide to fix this issue + and a preinstall script for npm + ## [0.2.0] - 12-Dec-2024 ### Added @@ -104,7 +111,8 @@ format (I find myself trying too hard to guess the months) - Github pages doc - Documentation for all the sub-client classes -[unreleased]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.1.4...HEAD +[unreleased]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.1...HEAD +[0.2.1]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.1.5...v0.2.0 [0.1.5]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.1.4...v0.1.5 [0.1.4]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.1.3...v0.1.4 From c9c3e976c688853244a3ecdeba558cd46cfbb7bb Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 11:15:44 +0100 Subject: [PATCH 05/17] Use postinstall script --- scripts/build_npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index ad293db..a167d9e 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -32,7 +32,7 @@ await build({ "typescript", ], scripts: { - preinstall: "echo '@jsr:registry=https://npm.jsr.io' >> .npmrc" + postinstall: "echo '@jsr:registry=https://npm.jsr.io' >> ~/.npmrc" }, dependencies: { "@std/fmt": "npm:@jsr/std__fmt@^1.0.3", From 93e2b2c5a3994a000698bf943e339253d5db899a Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 11:16:08 +0100 Subject: [PATCH 06/17] Bump version --- deno.jsonc | 2 +- docs/_coverpage.md | 2 +- src/paystack.ts | 2 +- src/restClient.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index a478f43..10a3519 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,7 +1,7 @@ { "name": "@gray-adeyi/paystack-sdk", "description": "A paystack client SDK for the javascript runtime.", - "version": "0.2.1", + "version": "0.2.2", "author": "Gbenga Adeyi ", "exports": "./mod.ts", "license": "MIT", diff --git a/docs/_coverpage.md b/docs/_coverpage.md index b4a3db3..76087f2 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,6 +1,6 @@ ![logo](./media/icon.png) -# @gray-adeyi/paystack-sdk 0.2.1 +# @gray-adeyi/paystack-sdk 0.2.2 > A [Paystack](https://www.paystack.com/) client SDK for the javascript runtime. diff --git a/src/paystack.ts b/src/paystack.ts index 18d8980..d964484 100644 --- a/src/paystack.ts +++ b/src/paystack.ts @@ -28,7 +28,7 @@ const SECRET_KEY_PREFIX = "sk_test_"; const PACKAGE_DEV_MODE_MESSAGE = ` 💪🏽 ${ - blue(bold("Paystack Integration powered by @gray-adeyi/paystack-sdk 0.2.1")) + blue(bold("Paystack Integration powered by @gray-adeyi/paystack-sdk 0.2.2")) } 🔥 ${ green(` diff --git a/src/restClient.ts b/src/restClient.ts index e447d98..dbca251 100644 --- a/src/restClient.ts +++ b/src/restClient.ts @@ -67,7 +67,7 @@ export default class RestClient { private get baseHeaders() { return { - "User-Agent": "@gray-adeyi/paystack-sdk 0.2.1", + "User-Agent": "@gray-adeyi/paystack-sdk 0.2.2", Accept: "application/json", "Content-Type": "application/json", Authorization: "", From 12f5d93faa166475b3d21bbc80196c8792eadd30 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 11:16:18 +0100 Subject: [PATCH 07/17] Update changelog --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e77748e..a340986 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ format (I find myself trying too hard to guess the months) ## [Unreleased] +## [0.2.2] - 12-Dec-2024 + +### Fixed + +- preinstall script for npm not working, replaced with postinstall script. + ## [0.2.1] - 12-Dec-2024 ### Fixed @@ -111,7 +117,8 @@ format (I find myself trying too hard to guess the months) - Github pages doc - Documentation for all the sub-client classes -[unreleased]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.1...HEAD +[unreleased]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.2...HEAD +[0.2.2]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.1...v0.2.2 [0.2.1]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.1.5...v0.2.0 [0.1.5]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.1.4...v0.1.5 From 70488cefb7626e65da43371b92aa69088b6015b3 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 11:29:44 +0100 Subject: [PATCH 08/17] Add both preinstall and postinstall scripts --- scripts/build_npm.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index a167d9e..f773f91 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -32,6 +32,7 @@ await build({ "typescript", ], scripts: { + preinstall: "echo '@jsr:registry=https://npm.jsr.io' >> ~/.npmrc", postinstall: "echo '@jsr:registry=https://npm.jsr.io' >> ~/.npmrc" }, dependencies: { From 53bd6b1a49067fa77e6853e7ddd90cdaab288320 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 11:30:05 +0100 Subject: [PATCH 09/17] Bump package version --- deno.jsonc | 2 +- docs/_coverpage.md | 2 +- src/paystack.ts | 2 +- src/restClient.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index 10a3519..a4a6a3c 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,7 +1,7 @@ { "name": "@gray-adeyi/paystack-sdk", "description": "A paystack client SDK for the javascript runtime.", - "version": "0.2.2", + "version": "0.2.3", "author": "Gbenga Adeyi ", "exports": "./mod.ts", "license": "MIT", diff --git a/docs/_coverpage.md b/docs/_coverpage.md index 76087f2..c4ed52c 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,6 +1,6 @@ ![logo](./media/icon.png) -# @gray-adeyi/paystack-sdk 0.2.2 +# @gray-adeyi/paystack-sdk 0.2.3 > A [Paystack](https://www.paystack.com/) client SDK for the javascript runtime. diff --git a/src/paystack.ts b/src/paystack.ts index d964484..b3699b6 100644 --- a/src/paystack.ts +++ b/src/paystack.ts @@ -28,7 +28,7 @@ const SECRET_KEY_PREFIX = "sk_test_"; const PACKAGE_DEV_MODE_MESSAGE = ` 💪🏽 ${ - blue(bold("Paystack Integration powered by @gray-adeyi/paystack-sdk 0.2.2")) + blue(bold("Paystack Integration powered by @gray-adeyi/paystack-sdk 0.2.3")) } 🔥 ${ green(` diff --git a/src/restClient.ts b/src/restClient.ts index dbca251..21ed981 100644 --- a/src/restClient.ts +++ b/src/restClient.ts @@ -67,7 +67,7 @@ export default class RestClient { private get baseHeaders() { return { - "User-Agent": "@gray-adeyi/paystack-sdk 0.2.2", + "User-Agent": "@gray-adeyi/paystack-sdk 0.2.3", Accept: "application/json", "Content-Type": "application/json", Authorization: "", From 46d990506043ef9784026f80902837d718bf0ee0 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 11:30:15 +0100 Subject: [PATCH 10/17] Update changelog --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a340986..081fdce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ format (I find myself trying too hard to guess the months) ## [Unreleased] +## [0.2.3] - 13-Dec-2024 + +### Fixed + +- add both preinstall and postinstall script + ## [0.2.2] - 12-Dec-2024 ### Fixed @@ -117,7 +123,8 @@ format (I find myself trying too hard to guess the months) - Github pages doc - Documentation for all the sub-client classes -[unreleased]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.2...HEAD +[unreleased]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.3...HEAD +[0.2.3]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.2...v0.2.3 [0.2.2]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.1...v0.2.2 [0.2.1]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.1.5...v0.2.0 From d606263241c1f39bd69bbc4866e59e5cb638201b Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 11:40:58 +0100 Subject: [PATCH 11/17] Update preinstall script --- scripts/build_npm.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index f773f91..8f84104 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -32,8 +32,7 @@ await build({ "typescript", ], scripts: { - preinstall: "echo '@jsr:registry=https://npm.jsr.io' >> ~/.npmrc", - postinstall: "echo '@jsr:registry=https://npm.jsr.io' >> ~/.npmrc" + preinstall: "grep -qxF '@jsr:registry=https://npm.jsr.io' ~/.npmrc || echo '@jsr:registry=https://npm.jsr.io' >> ~/.npmrc", }, dependencies: { "@std/fmt": "npm:@jsr/std__fmt@^1.0.3", From 4dbf387280dd1ddd03aff9f0040436e7b2f5f6ef Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 11:41:11 +0100 Subject: [PATCH 12/17] Update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 081fdce..f3054af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ format (I find myself trying too hard to guess the months) ### Fixed -- add both preinstall and postinstall script +- postinstall script not working. replace with a custom preinstall script ## [0.2.2] - 12-Dec-2024 From aede11ac95f246a02f067b66c69a3aa5ffa7bef5 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 12:20:03 +0100 Subject: [PATCH 13/17] Remove @std/fmt --- deno.jsonc | 3 +-- deno.lock | 1 - tests/deno.jsonc | 1 - tests/deno.lock | 5 ----- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index a4a6a3c..0820cb2 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,13 +1,12 @@ { "name": "@gray-adeyi/paystack-sdk", "description": "A paystack client SDK for the javascript runtime.", - "version": "0.2.3", + "version": "0.2.4", "author": "Gbenga Adeyi ", "exports": "./mod.ts", "license": "MIT", "imports": { "@deno/dnt": "jsr:@deno/dnt@^0.41.3", - "@std/fmt": "jsr:@std/fmt@^1.0.3", "axios": "npm:axios@^1.7.9", "lodash-es": "npm:lodash-es@^4.17.21" }, diff --git a/deno.lock b/deno.lock index 28f3c18..bf4c7da 100644 --- a/deno.lock +++ b/deno.lock @@ -172,7 +172,6 @@ "workspace": { "dependencies": [ "jsr:@deno/dnt@~0.41.3", - "jsr:@std/fmt@^1.0.3", "npm:axios@^1.7.9", "npm:lodash-es@^4.17.21" ] diff --git a/tests/deno.jsonc b/tests/deno.jsonc index ab15939..da04a71 100644 --- a/tests/deno.jsonc +++ b/tests/deno.jsonc @@ -2,7 +2,6 @@ "imports": { "@std/assert": "jsr:@std/assert@1", "@std/dotenv": "jsr:@std/dotenv@^0.225.2", - "@std/fmt": "jsr:@std/fmt@^1.0.3", "@std/testing": "jsr:@std/testing@^1.0.2", "axios": "npm:axios@^1.7.7", "lodash-es": "npm:lodash-es@^4.17.21" diff --git a/tests/deno.lock b/tests/deno.lock index 92920ce..22fda7f 100644 --- a/tests/deno.lock +++ b/tests/deno.lock @@ -5,7 +5,6 @@ "jsr:@std/assert@^1.0.4": "1.0.4", "jsr:@std/data-structures@^1.0.2": "1.0.2", "jsr:@std/dotenv@~0.225.2": "0.225.2", - "jsr:@std/fmt@^1.0.3": "1.0.3", "jsr:@std/fs@^1.0.3": "1.0.3", "jsr:@std/internal@^1.0.3": "1.0.3", "jsr:@std/path@^1.0.4": "1.0.4", @@ -26,9 +25,6 @@ "@std/dotenv@0.225.2": { "integrity": "e2025dce4de6c7bca21dece8baddd4262b09d5187217e231b033e088e0c4dd23" }, - "@std/fmt@1.0.3": { - "integrity": "97765c16aa32245ff4e2204ecf7d8562496a3cb8592340a80e7e554e0bb9149f" - }, "@std/fs@1.0.3": { "integrity": "3cb839b1360b0a42d8b367c3093bfe4071798e6694fa44cf1963e04a8edba4fe", "dependencies": [ @@ -104,7 +100,6 @@ "dependencies": [ "jsr:@std/assert@1", "jsr:@std/dotenv@~0.225.2", - "jsr:@std/fmt@^1.0.3", "jsr:@std/testing@^1.0.2", "npm:axios@^1.7.7", "npm:lodash-es@^4.17.21" From 7b9a2f10ea3229e9bf3145643d7ab669b66d24d0 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 12:20:34 +0100 Subject: [PATCH 14/17] Remove message coloring --- src/paystack.ts | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/paystack.ts b/src/paystack.ts index b3699b6..61e5c19 100644 --- a/src/paystack.ts +++ b/src/paystack.ts @@ -22,16 +22,12 @@ import TransferClient from "./clients/transfers.ts"; import TransferControlClient from "./clients/transfersControl.ts"; import VerificationClient from "./clients/verification.ts"; import RestClient from "./restClient.ts"; -import { blue, bold, green, yellow } from "@std/fmt/colors"; const SECRET_KEY_PREFIX = "sk_test_"; const PACKAGE_DEV_MODE_MESSAGE = ` -💪🏽 ${ - blue(bold("Paystack Integration powered by @gray-adeyi/paystack-sdk 0.2.3")) -} 🔥 -${ - green(` +💪🏽 "Paystack Integration powered by @gray-adeyi/paystack-sdk 0.2.4"🔥 + Need more guide on how to use this package? See documentation at https://gray-adeyi.github.io/paystack-sdk @@ -43,13 +39,10 @@ If this project is useful to you or your company, please consider sponsoring the - ✨ Starring it on github at https://github.com/gray-adeyi/paystack-sdk - 💻 Contribute to it at https://github.com/gray-adeyi/paystack-sdk - ☕ Buy me a coffee at https://buymeacoffee.com/jigani -`) -} -${ - yellow(`Note: This message only appears in dev mode. + +Note: This message only appears in dev mode. Set "disablePackageDevModeMessage" flag to true on instantiation -of PaystackClient to stop seeing this message.`) -} +of PaystackClient to stop seeing this message. `; /** From 7a1312347ed587caf377327897d4571e09eb7d63 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 12:20:51 +0100 Subject: [PATCH 15/17] Bump package version --- docs/_coverpage.md | 2 +- scripts/build_npm.ts | 10 +++------- src/restClient.ts | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/_coverpage.md b/docs/_coverpage.md index c4ed52c..72941ab 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,6 +1,6 @@ ![logo](./media/icon.png) -# @gray-adeyi/paystack-sdk 0.2.3 +# @gray-adeyi/paystack-sdk 0.2.4 > A [Paystack](https://www.paystack.com/) client SDK for the javascript runtime. diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index 8f84104..759d9fc 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -2,12 +2,12 @@ import { build, emptyDir } from "@deno/dnt"; const NPM_ROOT_DIR = "./npm"; -const NPMRC_PATH = NPM_ROOT_DIR + "/.npmrc"; -const NPMRC_FILE_CONTENT = "@jsr:registry=https://npm.jsr.io"; +// const NPMRC_PATH = NPM_ROOT_DIR + "/.npmrc"; +// const NPMRC_FILE_CONTENT = "@jsr:registry=https://npm.jsr.io"; await emptyDir(NPM_ROOT_DIR); -await Deno.writeTextFile(NPMRC_PATH, NPMRC_FILE_CONTENT); +// await Deno.writeTextFile(NPMRC_PATH, NPMRC_FILE_CONTENT); await build({ entryPoints: ["./mod.ts"], @@ -31,11 +31,7 @@ await build({ "deno", "typescript", ], - scripts: { - preinstall: "grep -qxF '@jsr:registry=https://npm.jsr.io' ~/.npmrc || echo '@jsr:registry=https://npm.jsr.io' >> ~/.npmrc", - }, dependencies: { - "@std/fmt": "npm:@jsr/std__fmt@^1.0.3", axios: "^1.7.9", "lodash-es": "^4.17.21", }, diff --git a/src/restClient.ts b/src/restClient.ts index 21ed981..8db7fb5 100644 --- a/src/restClient.ts +++ b/src/restClient.ts @@ -67,7 +67,7 @@ export default class RestClient { private get baseHeaders() { return { - "User-Agent": "@gray-adeyi/paystack-sdk 0.2.3", + "User-Agent": "@gray-adeyi/paystack-sdk 0.2.4", Accept: "application/json", "Content-Type": "application/json", Authorization: "", From 0c25c9b3376742af3636a4751f6ce0bf3607b573 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 12:21:47 +0100 Subject: [PATCH 16/17] Remove build script dev dependencies --- scripts/build_npm.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index 759d9fc..d623552 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -36,9 +36,6 @@ await build({ "lodash-es": "^4.17.21", }, devDependencies: { - "@std/assert": "npm:@jsr/std__assert@^1.0.9", - "@std/dotenv": "npm:@jsr/std__dotenv@^0.225.3", - "@std/testing": "npm:@jsr/std__testing@^1.0.6", "@types/lodash-es": "^4.17.12", }, repository: { From e4f35a6139f48170fb4d72e5b7606c23ccecacd2 Mon Sep 17 00:00:00 2001 From: Gbenga Adeyi Date: Sat, 14 Dec 2024 12:22:29 +0100 Subject: [PATCH 17/17] Update changelog --- CHANGELOG.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3054af..71b4c6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,13 @@ format (I find myself trying too hard to guess the months) ## [Unreleased] -## [0.2.3] - 13-Dec-2024 +## [0.2.4] - 12-Dec-2024 + +### Removed + +- `jsr:@std/fmt` package from dependencies causing installation issue. + +## [0.2.3] - 12-Dec-2024 ### Fixed @@ -123,7 +129,8 @@ format (I find myself trying too hard to guess the months) - Github pages doc - Documentation for all the sub-client classes -[unreleased]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.3...HEAD +[unreleased]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.4...HEAD +[0.2.4]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.3...v0.2.4 [0.2.3]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.2...v0.2.3 [0.2.2]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.1...v0.2.2 [0.2.1]: https://github.com/gray-adeyi/paystack-sdk/compare/v0.2.0...v0.2.1