Skip to content

fix(paystack): accept any 0.x core from 0.4.0 so a core release doesn't bump it to 1.0 - #117

Closed
moset15 wants to merge 1 commit into
emdashCommerce:mainfrom
FIKANOVA:fix/paystack-core-peer-range
Closed

moset15 wants to merge 1 commit into
emdashCommerce:mainfrom
FIKANOVA:fix/paystack-core-peer-range

Conversation

@moset15

@moset15 moset15 commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

The release PR #116 would publish @dashcommerce/paystack as 1.0.0, not 0.1.0.

Why: the package declares "@dashcommerce/core": "^0.4.0". For a 0.x version, ^0.4.0 means 0.4.x only, so core going to 0.5.0 counts as a breaking peer change. Changesets then bumps the dependent package a major version (0.0.0 → 1.0.0) and rewrites the peer to ^0.5.0. The same would happen again at every core minor release.

Change:

  • Peer range >=0.4.0 <1.0.0. This repository's CI runs the package's tests against the current core on every PR, so any core release made here has been tested with it.
  • .changeset/config.json: onlyUpdatePeerDependentsWhenOutOfRange: true, so changesets bumps a package for a peer change only when the new version is outside its range. Without it, changesets still bumps Paystack to 1.0.0 even with the wider range.
  • README: the install line no longer pins core@^0.4.0, and the version note says 0.1.0 ships with core 0.5.0.
  • Patch changeset for the package.

Checked locally by running changeset version on main (changelog generator off, since it needs a GitHub token):

core paystack
main today 0.5.0 1.0.0
wider range only 0.5.0 1.0.0
this PR 0.5.0 0.1.0
this PR, then another core minor 0.6.0 0.1.0

Paystack tests: 105 pass.

This needs to merge before #116; I've noted it there.

🤖 Generated with Claude Code

…'t bump it to 1.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@moset15 moset15 mentioned this pull request Nov 28, 2026
@moset15

moset15 commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

The one failing check (EmDash Compatibility 1.1.0) is the starter build failing to download a Google font (CannotFetchFontFile … fetch failed), not this change; the other 10 pass. Could you re-run it when you get a moment? I can't re-run jobs on this repo.

@cavewebs

Copy link
Copy Markdown
Contributor

Thanks for this. The same fix landed in #118 and shipped with paystack 0.1.0, so I'm closing this one.

@cavewebs cavewebs closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants