mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
f922068a8e
Nest already serves every request through Express 5. Only the parsers, the static handler and their types still came from the direct Express 4 dependency, so this moves those three and keeps their behaviour: - body-parser 2 leaves req.body undefined when it did not read a body, where body-parser 1 left an empty object. A bodyless POST to a route whose fields are all optional answered 400, and a plugin route got null. emptyBodyDefault restores the empty object for everything but /mcp, which stays raw (BOOT-009, PACK-3T-004). - serve-static 2 no longer exposes its mime table. The Brotli copy of an asset is typed through mime-types 3 with the fallback send uses, so it keeps the Content-Type of the original file (PRECOMP-001). - @types/express 5 types a route param as string or string[]; the photo route names its single :filename param. The MCP SDK resolves the same Express 5.3 now; Nest keeps the 5.2.1 it pins.