landing: bump pinned Polar API version to 2027-01 before 2026-10 is removed (April 2027)
維護者通常 4 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 68/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- JavaScript
- 星號
- 13.8k
- 分支
- 656
- 平均合併
- 4 天 3 小時
- 30 天內合併 PR
- 18
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
shipshapecode/shepherd 的其他 Issue
-
Docs: rendering framework components as step content, and why DOM injection belongs in when.show未關閉documentation
難度 2/5 1-3 小時 新手友好度 84/100
shipshapecode/shepherd#3479 ·
維護者通常 4 天內回覆
-
Focus automatically moves to the first input field when the Shepherd tooltip is displayed inside the Quasar dialog可能重新可做 @pranish07 於 10 天前認領,目前沒有進行中的 PR。 未關閉
難度 3/5 1-2 天 新手友好度 52/100
shipshapecode/shepherd#3505 · 1 則留言 ·
維護者通常 4 天內回覆
-
Improved advanceOn: Conditional inputs for touring through forms可能已有人在做 @manuel-rw 於 13 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 48/100
shipshapecode/shepherd#3442 · 1 則留言 · 2 個 reaction ·
維護者通常 4 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
shipshapecode/shepherd#3146 · 2 則留言 ·
維護者通常 4 天內回覆
-
question
難度 2/5 1-3 小時 新手友好度 38/100
shipshapecode/shepherd#3121 · 4 則留言 ·
維護者通常 4 天內回覆
查看 shipshapecode/shepherd 的全部 Issue
相似的 Issue
-
good first issue
難度 2/5 1-3 小時 新手友好度 88/100
TanbirRamim/open-source-radar#353 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 2 天內回覆
-
design-review mac P3 ui
難度 2/5 1-3 小時 新手友好度 78/100
tosunlab/hisarapp-core#502 ·
-
enhancement status: needs triage
難度 2/5 1-3 小時 新手友好度 78/100
mastra-ai/mastra#28651 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement frontend help wanted
難度 2/5 1-3 小時 新手友好度 82/100
nikhilb2/simple_invoicing#470 ·
維護者通常 1 天內回覆