Repository navigation
Conversation
serhalp
left a comment
There was a problem hiding this comment.
🙌🏼 Thanks for taking this on! I've taken a first pass at reviewing it. Could you please give this a quick rebase and take a look at my comments? I haven't had time to debug your integration tests yet, but I'll get to it soon.
| await server.listen({ port: settings.frameworkPort }) | ||
| const [address] = server.addresses() | ||
|
|
||
| const server = createServer((req, res) => app.handler(req as Request, res as Response)) |
There was a problem hiding this comment.
Type assertions are unsafe. Why is there a mismatch here? How can we resolve it?
There was a problem hiding this comment.
tinyhttp's Request and Response extend node:http's Request and Response. Probably could pass as a generic to createServer but if I recall correctly, it throws a type error
There was a problem hiding this comment.
this is a TypeScript issue with extension depth. Request extends IncomingMessage, which itself extends Stream. TypeScript thinks that Request doesn't extend Stream because of that, even though it does
|
@talentlessguy Thanks for your contributions! I just want to give you a heads up that we likely won't be merging this one, since we're in the process of extracting much of the code you're touching out of this codebase (and incidentally removing express/fastify in the process). |
🎉 Thanks for submitting a pull request! 🎉
Summary
Replaces express, express-loggin, fastify and fastify-static with tinyhttp, @tinyhttp/logger, sirv and milliparsec
See e18e/ecosystem-issues#156
For us to review and ship your PR efficiently, please perform the following steps:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)