Skip to content

Commit 7e6c4e0

Browse files
zeevdrclaude
andauthored
fix(compat): resolve cyclic import between compat.ts and index.ts (#99)
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>
1 parent d65cf65 commit 7e6c4e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { IncompatibleServerError } from "./errors.js";
8-
import { SUPPORTED_SERVER_VERSION } from "./index.js";
8+
import { SUPPORTED_SERVER_VERSION } from "./version.js";
99

1010
/**
1111
* Parse a semver-like version string into an array of numbers.

0 commit comments

Comments
 (0)