Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#3,555 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
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
フォーク
658
平均マージ
2日 6時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

shipshapecode/shepherd のほかの issue

shipshapecode/shepherd の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。