Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#3,555 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 4 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
68/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
typescript
領域
api, payments

研究方向

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-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.

主要語言
JavaScript
星號
13.8k
分支
656
平均合併
4 天 3 小時
30 天內合併 PR
18

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

shipshapecode/shepherd 的其他 Issue

查看 shipshapecode/shepherd 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。