landing: bump pinned Polar API version to 2027-01 before 2026-10 is removed (April 2027)
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 13.8k
- Fork
- 656
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của shipshapecode/shepherd
-
Docs: rendering framework components as step content, and why DOM injection belongs in when.showĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
shipshapecode/shepherd#3479 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
shipshapecode/shepherd#3505 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
shipshapecode/shepherd#3442 · 1 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
shipshapecode/shepherd#3146 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 38/100
shipshapecode/shepherd#3121 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của shipshapecode/shepherd
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
no-human-ai/no_human#659 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Multi-day events show "Ended" while still in progressCó thể đã có người làm @tarunagnihotri534 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
data-umbrella/du-event-board#231 · 2 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
IO.get_env on Node truncates names at embedded NULCó thể đã có người làm @Yi-111-a đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
HigherOrderCO/Bend#1449 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
cryptpad/documentation#162 ·