Skip to content
Contents

crowdfund changelog

Every crowdfund release, newest first.

  1. 0.1.0

    12 added

    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.