landing: bump pinned Polar API version to 2027-01 before 2026-10 is removed (April 2027)
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
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-Versionassertion inlanding/test/checkout.test.ts. - Make sure
@polar-sh/sdkinlanding/package.jsonships that version subpath (^1.0.2ships2026-04,2026-10and2027-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
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus shipshapecode/shepherd
-
Docs: rendering framework components as step content, and why DOM injection belongs in when.showOffendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
shipshapecode/shepherd#3479 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
shipshapecode/shepherd#3505 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
shipshapecode/shepherd#3442 · 1 Kommentar · 2 Reaktionen ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
shipshapecode/shepherd#3146 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
-
question
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 38/100
shipshapecode/shepherd#3121 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in shipshapecode/shepherd
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
`yarn vitest:update` (documented) throws locally; local Cypress scripts target an unserved portOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
rescript-lang/rescript-lang.org#1415 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[Bug]: agent capture drops long Unicode text as punctuationEvtl. vergeben @ktz03 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
volcengine/OpenViking#5801 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Deepak3699/Ai_Mentor#244 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
nextcloud/collectives#2843 ·
Maintainer antworten meist innerhalb von 1 Tag