Skip to content

Conversation

@ndm13
Copy link
Owner

@ndm13 ndm13 commented Dec 11, 2025

Major structural changes:

  • Move to a handler-based model to centralize resources needed for each request type.
  • Middleware properly separated and imported.
  • Use lodash instead of reinventing the wheel.
  • Destructure global config and prefer argument passing.
  • Better consistency: imports, deno fmt.
  • Test suite to cover handler logic.
  • Better CI.

ndm13 added 27 commits December 7, 2025 23:00
- Should make future updates easier
- Increases readability, decreases compartmentalization
- Fix argument oversight in ProfileHandler
- Add type to import in server.ts
- Pass metrics by value instead of using global
- Refactor `AIDungeonAPI` to use new Metrics class
- Make metrics entirely optional
- Added automated testing on pull request/push to main
- Pin update-deps.yml on Deno v2.x and suppress color codes in PR
- Omit type so types and non-types can be bundled
- External dependencies, then internal dependencies, then globals
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This will pass because the URL will have a path, but it's needed to keep Copilot from freaking out that there could be a suffix.
@ndm13 ndm13 merged commit 0c6e20c into main Dec 11, 2025
4 checks passed
@ndm13 ndm13 deleted the refactor branch December 11, 2025 02:38
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.

2 participants