Skip to content

Releases: haruhimemoe/crowdfund

Release list

v0.1.0

Choose a tag to compare

@dvhsh dvhsh released this 07 Oct 04:09
aefb3dc

Added

  • fundingGoalSchema, goalTierSchema, donationSchema, refundSchema, settledSchema, currencyCodeSchema, minorUnitsSchema, positiveMinorUnitsSchema: zod schemas with no refinements, so they .extend().
  • currencyExponent, toMinorUnits, netAmount, isRefunded, refundDonation: integer money in any currency, full and partial refunds.
  • totalsByCurrency, totalsFor: gross, refunded and net totals, with settled values and a host-supplied convert.
  • goalProgress, unlockedTiers, nextTier: progress toward a goal and its stretch tiers.
  • topDonors, publicDonation: donor leaderboards and public rows that never reveal an anonymous donor.
  • donationKey, dedupeDonations, hasDonation: dedupe by (source, externalId).
  • @haruhimemoe/crowdfund/kofi: kofiPayloadSchema, parseKofiBody, verifyKofiToken, kofiToDonation, extractKofiTransactionId, KOFI_TYPES.
  • @haruhimemoe/crowdfund/stripe: verifyStripeSignature, parseStripeEvent, stripeEventSchema, stripeToDonation, stripeRefund.
  • @haruhimemoe/crowdfund/paypal: paypalVerifyBody, parsePaypalEvent, paypalEventSchema, paypalToDonation, paypalRefund.
  • @haruhimemoe/crowdfund/github-sponsors: verifyGithubSignature, parseGithubSponsorshipEvent, githubSponsorshipEventSchema, githubSponsorshipToDonation.
  • @haruhimemoe/crowdfund/buymeacoffee: verifyBuyMeACoffeeSignature, parseBuyMeACoffeeEvent, buyMeACoffeeEventSchema, buyMeACoffeeToDonation, buyMeACoffeeRefund.
  • CrowdfundError with a code.