Skip to content

refactor(sdk): remove dead code (RoomManager, GraphSyncAgent) and fix documentation - #469

Merged
Jaydbrown merged 1 commit into
conduit-protocol:mainfrom
simplex001:fix/dead-code-cleanup-and-docs-fixes
Aug 26, 2026
Merged

refactor(sdk): remove dead code (RoomManager, GraphSyncAgent) and fix documentation#469
Jaydbrown merged 1 commit into
conduit-protocol:mainfrom
simplex001:fix/dead-code-cleanup-and-docs-fixes

Conversation

@simplex001

Copy link
Copy Markdown

Closes #440
Closes #441
Closes #442
Closes #443

Summary of Changes

1. Issue #440Docs: docs/architecture.md's module map references a contracts/*-abi.ts directory that doesn't exist

  • Removed the non-existent contracts/*-abi.ts entry from the module map in docs/architecture.md.

2. Issue #441Docs: root .env.example documents only MAX_ROOM_SIZE and omits every SDK-relevant variable

  • Replaced the orphaned single-line MAX_ROOM_SIZE .env.example with a comprehensive SDK environment configuration template documenting all SDK variables (STELLAR_SECRET, NEXT_PUBLIC_NETWORK, CONDUIT_NETWORK, SOROBAN_RPC_URL, CONDUIT_FACTORY_ADDRESS, CONDUIT_GOVERNOR_ADDRESS, CONDUIT_TOKEN_ADDRESS, STREAM_ID, ADDRESS, NEXT_PUBLIC_ADDRESS).
  • Updated README.md's ## Configuration section to document these environment variables and link to .env.example.

3. Issue #442Enhancement: src/room-manager.js + src/server.js ship an unrelated WebSocket room server inside the SDK package

  • Deleted orphaned files src/room-manager.js, src/server.js, tests/room-manager.test.js, and src/tests/room-manager.test.ts.
  • Removed dotenv from production dependencies in package.json and updated package-lock.json.
  • Removed RoomManager (Server Utility) section from docs/api.md and references in README.md.

4. Issue #443Enhancement: GraphSyncAgent (src/graph-sync-agent.ts) is fully-implemented dead code

  • Deleted unreachable src/graph-sync-agent.ts dead code and its test suite src/tests/graph-sync-agent.test.ts.
  • Removed src/graph-sync-agent.ts from manualChunks in rollup.config.mjs.

5. Changelog

  • Added Removed and Documentation entries under ## [Unreleased] in CHANGELOG.md.

Verification

  • npm run build: Bundled ESM and CJS distributions cleanly.
  • npm test: All 54 test suites and 672 unit tests passed.
  • npm run typecheck: Passed with 0 TypeScript errors.
  • npm run lint: Passed with 0 ESLint errors.

… docs

- Closes conduit-protocol#440: Remove non-existent contracts/*-abi.ts entry from docs/architecture.md module map
- Closes conduit-protocol#441: Update .env.example with comprehensive SDK environment variables and update README.md
- Closes conduit-protocol#442: Remove orphaned RoomManager and server.js WebSocket room server along with unused dotenv dependency
- Closes conduit-protocol#443: Remove unreachable GraphSyncAgent dead code and its test suite
@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@simplex001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Jaydbrown

Copy link
Copy Markdown
Contributor

Thanks for the contribution here — squash-merging this now. Any follow-ups we'll track in a fresh issue. 🚀

@Jaydbrown
Jaydbrown merged commit 93b6b32 into conduit-protocol:main Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment