Repository navigation
RepoAccess Core v3.2.0
A refund that arrives while a grant is still in flight now wins, and a refund no longer removes a team that another purchase by the same buyer still entitles. Both were found by @jz_kronowave on Indie Hackers, who ran the engine in a sandbox and reported what he saw. Thank you.
Fixed
- Refund during a grant in flight. A grant sleeping in GitHub backoff, or paused by hand, could resume after the refund had already run and add the buyer. The refund now wins, in both grant modes.
- Stale read on refund. KV is eventually consistent for up to about a minute; a refund that read a stale grant record could conclude there was nothing to withdraw. The claim guard, a strongly consistent Durable Object keyed by transaction, is now the ledger of each transaction's outcome: a grant commits to it, a refund consults it before KV.
- Stripe delayed payment methods (bank debits, vouchers) are now granted when the payment settles.
checkout.session.async_payment_succeededis handled; acheckout.session.completedwhose payment has not settled is acknowledged with 200, so Stripe stops retrying it. - Shared teams. Two products mapped to one team (an item and a bundle that contains it, two price points for one repository): refunding either used to remove the shared team and then the buyer's organization membership while the other purchase stood. The worker now keeps a record of what each buyer holds and removes a shared team only when the last purchase entitling it is refunded. Purchases granted before 3.2.0 are not in that record and revoke as before.
Added
sequenceonaccess.granted,access.revoked, andaccess.failed(reasontransaction_revoked): per transaction, the event with the highersequenceis the current state, whatever order deliveries arrive in. Treat an absentsequenceas older than any present one.triggeronaccess.failedwith reasontransaction_revoked, andkept_teamsonaccess.revoked.- Setup guide: "Configurations, and what the buyer sees in each" — six configurations with the emails GitHub sends in each, plus two facts about the invitation: it goes to the buyer's GitHub primary email, and it expires after seven days.
- The licensing page is linked from README and LICENSING.md; the package carries npm keywords.
Changed
- The setup wizard's synthetic check now proves the revoke path too: a synthetic refund through the worker follows the synthetic purchase.
- The claim guard keeps its copy of a committed grant for 180 days, like the KV record. The cost table in the setup guide is re-derived (
username8 steps,claim14, revoke 11 to 12). createWorkerrefuses an adapter namedbuyer(reserved). Dev dependencies: hono 4.13.5, vitest 4.1.11, sharp override 0.35.4;npm auditis clean.
Action for an existing deployment
- Stripe: add
checkout.session.async_payment_succeededto your webhook endpoint in the Stripe dashboard, or buyers who pay with a delayed method are never granted. The guides now list four events. - Deploy when no grant is in flight. The Workflow's step shape changed; an instance started under 3.1.0 that resumes under 3.2.0 meets steps it did not record. A grant can sleep for hours in GitHub backoff, so check the Workflows dashboard for running instances before you deploy.
Full entry: CHANGELOG.md.