Skip to content

fix: generate SUPPORTED_SERVER_VERSION from package.json and align README#89

Merged
zeevdr merged 1 commit into
mainfrom
fix/server-version-sync
May 24, 2026
Merged

fix: generate SUPPORTED_SERVER_VERSION from package.json and align README#89
zeevdr merged 1 commit into
mainfrom
fix/server-version-sync

Conversation

@zeevdr
Copy link
Copy Markdown
Member

@zeevdr zeevdr commented May 24, 2026

Summary

  • SUPPORTED_SERVER_VERSION was hardcoded in src/index.ts with no connection to package.json, making it easy for the value to drift silently across releases.
  • The README requirement line claimed server v0.3.0+, contradicting the actual constraint (>=0.8.0,<1.0.0).
  • This establishes package.json#supportedServerVersion as the single source of truth, generated into src/version.ts alongside VERSION so the existing check:version CI job catches both constants.

Test plan

  • npm run check:version passes after regeneration
  • npm run typecheck clean
  • All 208 tests pass (vitest run)
  • Biome lint clean

Closes #60

…ADME

SUPPORTED_SERVER_VERSION was hardcoded in src/index.ts and the README
claimed server v0.3.0+, contradicting the actual constraint of >=0.8.0,<1.0.0.

- Add `supportedServerVersion` field to package.json as the single source
  of truth for the supported server version range
- Extend scripts/gen-version.mjs to emit SUPPORTED_SERVER_VERSION into
  src/version.ts alongside VERSION; existing check:version CI job now
  catches drift for both constants
- Remove the hardcoded constant from src/index.ts; re-export from version.js
- Update README Requirements section to reflect the actual range

Closes #60

Co-Authored-By: Claude <noreply@anthropic.com>
@zeevdr zeevdr added this to the Beta Readiness milestone May 24, 2026
@zeevdr zeevdr added size: S Quick win — a few hours or less priority: P1 Current milestone work labels May 24, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zeevdr zeevdr enabled auto-merge (squash) May 24, 2026 13:06
@zeevdr zeevdr merged commit 5c798e8 into main May 24, 2026
14 checks passed
@zeevdr zeevdr deleted the fix/server-version-sync branch May 24, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: P1 Current milestone work size: S Quick win — a few hours or less

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve SUPPORTED_SERVER_VERSION vs README drift

1 participant