Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

landing: bump pinned Polar API version to 2027-01 before 2026-10 is removed (April 2027)

Offen
#3,555 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
api, payments

Rechercherichtung

Start by reading the Polar API changelog for the target version and checking whether changes affect POST /v1/checkouts/, especially products and success_url. Then inspect landing/src/pages/api/checkout.ts, landing/test/checkout.test.ts, and landing/package.json; run the checkout tests after updating the SDK version and assertion. Done means the updated version is supported and a Vercel preview redirects the checkout route to Polar.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Context

The landing site's checkout route pins the Polar API version by importing the versioned SDK client (@polar-sh/sdk/2026-10) in landing/src/pages/api/checkout.ts. That import makes the SDK send Polar-Version: 2026-10 on every request. Added in #3554.

Polar supports each API version for about nine months: three as Next, three as Current, three as Deprecated. New versions ship in the first week of January, April, July and October (versioning docs).

  • 2026-10 is Current now. It becomes Deprecated in the first week of January 2027 (when 2027-01 becomes Current).
  • 2026-10 is removed in the first week of April 2027, and requests to a removed version return 404. That would break the pricing page's buy button.

To do (before the April 2027 release)

  • Read the Polar API changelog for the new version and check for anything that affects POST /v1/checkouts/ (products, success_url).
  • In landing/src/pages/api/checkout.ts, change the import to @polar-sh/sdk/2027-01 (or the then-current version) and update the comment if needed.
  • Update the Polar-Version assertion in landing/test/checkout.test.ts.
  • Make sure @polar-sh/sdk in landing/package.json ships that version subpath (^1.0.2 ships 2026-04, 2026-10 and 2027-01).
  • Verify on a Vercel preview that /api/checkout?products=<id> redirects to a Polar checkout.

The same bump is needed each quarter or two, so it is worth repeating this check whenever a new Polar API version ships.

Vorherrschende Sprache
JavaScript
Sterne
13.8k
Forks
656
Ø Merge
2 T. 6 Std.
Gemergte PRs (30 T.)
17

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus shipshapecode/shepherd

Alle Issues in shipshapecode/shepherd

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.