feat!: modernize to TypeScript, plain Node http, and pnpm (Node 24+) - #119
Merged
Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
… dependencies 🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
daquinoaldo
force-pushed
the
v5
branch
2 times, most recently
from
September 7, 2026 16:01
91afc7b to
53b2bfc
Compare
- Use execFile instead of exec in mkcert cert generation to prevent unsafe command execution - Close download stream cleanly and check existing binary before re-downloading - Pre-read fallback static files outside route handler to resolve missing rate-limiting finding - Trust mkcert root CA in tests instead of disabling certificate validation 🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
Drop express and cors dependencies. Static file serving (ETag, range requests, 404 fallback, directory redirect, MIME types via mrmime) now lives in src/static.ts, request routing in src/router.ts, CORS headers in src/cors.ts. Test fixtures moved to test/fixtures/. 🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking changes
expressapp replaced with a minimal router: the module no longer returns an express app.createServer()now takes named options (domain,certPath,reinstall) and exposesget,listen,redirect,servedist/(ESM + CJS + types) instead of raw sourcespdy), compression, minify, and the packaged-binary update checker are gone — this is a development toolWhat changed
strict, type-aware linting)expressandcorswith plainnode:httphandlers: static serving (ETag, Last-Modified, range requests, 404 fallback, directory redirect, MIME types viamrmime), request routing, and CORS headers now live in small dedicated modules; dependencies reduced tomrmimeandzodparseArgs(-p,-H,--cert-path,--reinstall) layered over environment variables, parsed withzodexecFileinstead of shell string concatenation for mkcert invocationsoxlint+oxfmt+knipreplace ESLint; nativenode:testrunner with tests split by source module; internalizedappdata-pathCONTRIBUTING.mdwith the local gate commandsVerification
pnpm run lintandpnpm test(33/33) pass on Node 24