chore(integrations): move polar off api version 2026-10 before april 2027

Open
#777 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
next.js, typescript
Domain
api, backend, testing

Research direction

Start with src/lib/adapters/polar/index.ts and the Polar fixtures and schemas, then check Polar's changelog for the current API version and verify the fixtures against its reference. Review docs/providers/polar.md for version and webhook guidance. Done means the adapter, schemas, fixtures, existing webhook endpoints, documentation, and removal-date CI check meet the acceptance criteria; run the listed typecheck, lint, and Vitest commands.

Written by the indexing model from the issue text.

Description

area: integrations enhancement impact: medium priority: P2 size: XS

Context

Found by the Fable pre-production review on 2026-12-02 (main at cedc1914; every line reference below re-checked on main at cde5aa3b). Sources: provider connect readiness report N9, and product triage report new issue 5.

The Polar adapter pins API version 2026-10 on every call, the OAuth token and revoke requests included (POLAR_API_VERSION, src/lib/adapters/polar/index.ts:103-112, also :370), and on webhook endpoints it creates (api_version: POLAR_API_VERSION, :1209). The code says "2026-10 is removed in the first week of April 2027, then every call answers 404" (index.ts:105), and so does docs/providers/polar.md:263 (Polar's versioning page). Today the deadline lives only in a code comment and a docs line.

Impact: from the first week of April 2027 every Polar sync fails with invalid_response and every Polar connect fails, for every user. Nothing self-heals.

Plan

  1. Before 2027-03-15, read Polar's changelog for the then Current version and move POLAR_API_VERSION and the schemas to it.
  2. Recheck the fixtures against the new reference.
  3. Handle webhook endpoints created with 2026-10: update their api_version or recreate them, and say which in docs/providers/polar.md.
  4. Add a check that fails CI within 30 days of a pinned version's removal date (a dated constant next to the pin).

Acceptance criteria

  • Adapter, schemas, and fixtures use the then Current Polar version.
  • Existing webhook endpoints are handled.
  • A test fails within 30 days of the pinned version's removal date.
  • docs/providers/polar.md names the new version and its removal date.
  • Playwright e2e: none needed, no screen changes.

Files and areas

src/lib/adapters/polar/, its fixtures, docs/providers/polar.md.

Non-goals: Polar iss handling (#227).

Verification

npm run typecheck, npm run lint, npx vitest run src/lib/adapters/polar.


Branch: <issue-number>-polar-api-version

Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown

Dominant language
TypeScript
Stars
13
Forks
2
Avg merge
5h 20m
Merged PRs (30d)
287

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eddiejaoude/StackDash

All issues in eddiejaoude/StackDash

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.