From 7e59aea680f38d5454a8ff6dd45c006d5d0d28be Mon Sep 17 00:00:00 2001 From: Arno V Date: Mon, 3 Aug 2026 18:36:03 -0400 Subject: [PATCH] fix: accept fastify 5.x in the static-server logging plugin The fastify-simple-logger plugin still declared `fastify: "4.x"` in its fastify-plugin metadata. static-server moved to fastify 5.x, so the version check failed at boot and `static-server --logs` exited without serving: fastify-plugin: fastify-simple-logger - expected '4.x' fastify version, '5.11.2' is installed Widen the declared range to 5.x, which is what the package pins. The package has no test script, so nothing caught this. Verified by hand: `static-server --logs` now boots and logs `GET / 200` / `GET /nope 404`. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_016bnTX3dzc8eVeb6Qfm51hv --- packages/static-server/src/logs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/static-server/src/logs.ts b/packages/static-server/src/logs.ts index 107654de..f6bea08b 100644 --- a/packages/static-server/src/logs.ts +++ b/packages/static-server/src/logs.ts @@ -11,6 +11,6 @@ const plugin: FastifyPluginAsync = async (fastify): Promise => { }; export default fastifyPlugin(plugin, { - fastify: "4.x", + fastify: "5.x", name: "fastify-simple-logger", });