Skip to content

Remove legacy fastify-based code#29

Open
melvincarvalho wants to merge 1 commit intogh-pagesfrom
remove-legacy-code
Open

Remove legacy fastify-based code#29
melvincarvalho wants to merge 1 commit intogh-pagesfrom
remove-legacy-code

Conversation

@melvincarvalho
Copy link
Copy Markdown
Contributor

Summary

Removes 1,517 lines of dead code from the old fastify-based architecture.

Fixes #28

Removed files

  • index.js.legacy - old fastify relay
  • bin/relay.js - old CLI entry point
  • lib/did-endpoint.js - old DID endpoint
  • test/ - tests for old code (4 files)
  • admin.html - old admin interface
  • deploy.sh - old deploy script

Kept

  • MIGRATION.md - documents the transition for reference

Test plan

  • npx fonstr still works (only uses index.js + jspod)
  • Verify no imports reference removed files

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes 1,517 lines of legacy fastify-based code that is no longer used after the migration to JavaScriptSolidServer (jspod). The current implementation in index.js is a lightweight wrapper around jspod and does not depend on any of the removed files.

Changes:

  • Removed legacy fastify-based relay implementation and supporting infrastructure
  • Removed old tests for legacy code
  • Removed old deployment and admin tools

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
index.js.legacy Removed 429 lines of old fastify-based relay implementation with DID endpoints and WebSocket support
bin/relay.js Removed 23 lines of legacy CLI entry point that used the old createServer function
lib/did-endpoint.js Removed 128 lines of DID document generator library used by legacy code
test/integration-test.js Removed 161 lines of integration tests for legacy DID endpoint functionality
test/did-endpoint.test.js Removed 194 lines of unit tests for DID endpoint library
test/cors-test.js Removed 113 lines of CORS testing script for legacy endpoints
test/cors-test.html Removed 176 lines of browser-based CORS testing interface
admin.html Removed 198 lines of legacy admin interface for monitoring relay
deploy.sh Removed 95 lines of VPS deployment script for legacy version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Fixes #28

Removes unused code from old fastify architecture:
- index.js.legacy (old relay)
- bin/ (old CLI)
- lib/ (old DID endpoint - not used by jspod)
- test/ (tests for old code)
- deploy.sh (old deploy script)

Keeps admin.html (relay testing tool) with updated URL for jspod:
- Changed ws://localhost:4444 to ws://localhost:4444/relay
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove legacy fastify-based code

2 participants