made-in-common

sponsorkit

๐Ÿ’– Toolkit for generating sponsors images ๐Ÿ˜„

by made-in-common

TypeScript

TypeScript99.9%
JavaScript0.1%

Commit activity

Last 12 weeks ยท 4 commits

Full graph โ†’

Community health

3 of 6 standards met

Community profile โ†’
50
โœ“READMEโœ“Licenseโ—‹Contributingโœ“Code of Conductโ—‹Issue Templateโ—‹PR Template
igordanchenko

๐Ÿ”— Linked issue No open issue โ€” filing directly against the upstream advisory: GHSA-f88m-g3jw-g9cj ๐Ÿงญ Context below inherits four high-severity defects from libvips (CVSS 7.0): CVE-2026-33327, CVE-2026-33328, CVE-2026-35590 and CVE-2026-35591. They sit in the GIF, TIFF and VIPS decoders, and the advisory calls out processing untrusted input as the exposure. That applies here. fetches avatars from sponsor-controlled URLs and hands the bytes straight to in , so the input to an affected decoder is chosen by the sponsor rather than by the project. GitHub allows animated GIF avatars, so the GIF decoder in particular is on a live path. The fix landed upstream in , but the current range caps below it โ€” is , so a caret range won't cross a minor. Consumers can't reach the patched version without this bump, or a manual override on their side. ๐Ÿ“š Description Bumps from to . Lockfile-only otherwise โ€” no source changes. Why and not Both ranges clear the advisory, so the only real choice is the floor. needed three follow-up releases in three weeks ( the next day, , then ), several of which tightened input validation. Pinning the floor to what was actually tested seemed better than letting consumers resolve to a that upstream visibly scrambled to patch. ships libvips 8.18.3. Breaking changes reviewed has eight breaking changes. Six don't apply โ€” this project doesn't touch , , , or AVIF. The two that could matter: Node floor raised to >= 20.9.0. CI runs , so this is a no-op for the repo itself. now defaults to 5. Avatars are โ‰ค 4 channels, so no practical impact, though it's one more way malformed input can throw. Also worth noting for consumers: removed sharp's script, so binaries now come purely from . Better for anyone installing with , worse for . Verification** reports 0 advisories after the bump (was 1 high). passes. There's no test suite in this repo, so I exercised every call site directly against a throwaway script rather than claiming coverage I don't have: The assertion is the one worth calling out: it confirms an 80px SVG still rasterises to 167px, so librsvg in libvips 8.18.3 honours the option as before. was checked too, since replaced the TypeScript namespace with named exports for ESM โ€” that's exactly the kind of change that could break the access at .

igordanchenko ยท 1mo ago
dohooo

Describe the bug https://github.com/orgs/community/discussions/38393#discussioncomment-4585678 Reproduction _ System Info Used Package Manager pnpm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.

dohooo ยท 1mo ago
JounQin

Problem The Patreon provider calls a v1 endpoint: Patreon retired the v1 API on 2026-10-07, so every call now fails with: Per the changelog, all v1 endpoints served under stopped responding on that date, which makes the Patreon provider completely unusable. Fix Migrate the provider to the v2 API: Both v2 endpoints need the matching scopes (, ), which a Creator's Access Token carries automatically. The README says so. Alongside the endpoint swap header โ€” the docs ask for one, "otherwise your calls may be dropped with a 403 response", and sends none by default, so both calls would otherwise have gone out without one. Actionable empty-campaign error โ€” explains that the scope is required. Pagination is unchanged in shape: v2 still returns a cursor, which the loop already followed (pages are now up to 1000 members). Typed instead of The response handling was untyped (, , ). It is now modelled against the documented resource attributes: / / , with wherever the docs say a field can be null. is a discriminated union on , so members join to their user and tier through type guards rather than loose lookups. is typed as , because the docs only document it as "string, can be null" โ€” the two known past-sponsor values are matched in the logic instead of narrowing the type. is required on the member collection: a JSON:API collection document always carries it ( when empty), leaving only and conditional. Relationships follow the spec too: a resource identifier carries required and , and a relationship object may carry instead of โ€” Patreon returns both on , which a narrower type would rule out. This matters at runtime, not just for the compiler: v2 returns no attributes unless each one is requested, and it can return for / / / when a member opts out of sharing their profile. Those now fall back to / , since , and are non-optional on . Fields requested Only fields that are actually read are requested. In particular is no longer requested: the Member resource marks it deprecated in favour of , and it was never read. Notes for reviewers keeps its original signature; is called directly and mocked at the module level in tests, matching the existing convention. Monetary and status logic is deliberately unchanged: the / โ†’ mapping and the gifted-membership tier fallback behave as before. One deliberate behaviour change: a member collection response that omits now throws instead of silently reporting "no sponsors". That response is malformed per the v2 contract, so it is left loud. The type annotation on the destructuring is not redundant โ€” the pagination loop feeds back into , so TypeScript 6 reports TS7022 (circular inference) without it. The generic form () does not help: the cycle runs through . is gone from these GETs. The docs require it only for the OAuth token exchange, and every other provider in this repo sends it on POSTs only. Tests (16 cases) covers the campaign lookup, the v2 URLs, the requested field set, auth headers, member โ†’ sponsorship mapping, the never-pledged filter, past-patron mapping, gifted-tier fallback, pagination (including that the cursor page carries the credentials), a missing , a member whose user is absent from , an empty collection, a malformed response with no , identity masking, and the empty-campaign error. , and are all clean.

JounQin ยท 1mo ago
Structured data for AI agents

Repository: made-in-common/sponsorkit. Description: ๐Ÿ’– Toolkit for generating sponsors images ๐Ÿ˜„ Stars: 836, Forks: 73. Primary language: TypeScript. Languages: TypeScript (99.9%), JavaScript (0.1%). License: MIT. Topics: github-sponsors, sponsors. Latest release: v19.0.0 (1mo ago). Open PRs: 0, open issues: 4. Last activity: 1d ago. Community health: 50%. Top contributors: antfu, privatenumber, kecrily, sxzz, bluwy, fb55, ycs77, julien-deramond, robingenz, GeopJr and others.