Skip to content

fix(compat): resolve cyclic import between compat.ts and index.ts#99

Merged
zeevdr merged 1 commit into
mainfrom
fix/compat-cyclic-import
May 25, 2026
Merged

fix(compat): resolve cyclic import between compat.ts and index.ts#99
zeevdr merged 1 commit into
mainfrom
fix/compat-cyclic-import

Conversation

@zeevdr
Copy link
Copy Markdown
Member

@zeevdr zeevdr commented May 25, 2026

Summary

  • compat.ts imported SUPPORTED_SERVER_VERSION from index.ts, creating a cycle since index.ts re-exports from client.ts which may itself import from compat.ts.
  • version.ts is already the canonical source for this constant — index.ts just re-exports it.
  • Pointing compat.ts directly at version.ts breaks the cycle with a one-line change.

Test plan

  • npm run build — compiles cleanly with no errors
  • npm test — all 225 tests pass

Closes #67

Import SUPPORTED_SERVER_VERSION directly from version.ts instead of
index.ts, which itself imports from client.ts, creating a cycle.
version.ts is the canonical source for this constant.

Closes #67

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

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zeevdr zeevdr merged commit 7e6c4e0 into main May 25, 2026
14 checks passed
@zeevdr zeevdr deleted the fix/compat-cyclic-import branch May 25, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: P2 Nice-to-have size: S Quick win — a few hours or less

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve cyclical import between compat.ts and index.ts

1 participant