From 4c3b4d29c4a8bde0d572472c98617979e226f6aa Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 10 Oct 2026 12:00:06 -0500 Subject: [PATCH] chore(deps): move the benchmark's fastify to 5.12.5 fastify <= 5.12.4 carries seven advisories (high), and it reaches us twice, both benchmark-only: as a direct devDependency and through @nestjs/platform-fastify 11.2.7, which pins fastify 5.11.3 exactly. `npm audit fix --force` would move to @nestjs/platform-fastify 12, which is ESM-only and needs @nestjs/core and @nestjs/common 12 as well: a migration of the Nest benchmark servers, not a dependency fix. Raise the direct range to ^5.12.5, a patch inside the major we already use, and point nest's copy at it with `"fastify": "$fastify"` so the tree holds a single, patched fastify. Checked with `BENCH_SMOKE=1 npm run bench`: fastify, nestjs-fastify and nestjs-express all boot and serve every scenario with 0% errors. npm audit: 5 (2 critical, 1 high, 2 moderate) -> 3 (2 critical, 1 moderate), all of them vitest. `npm audit --omit=dev` stays at 0. Signed-off-by: Diego Resendez --- deno.lock | 5 +++-- package-lock.json | 10 +++++----- package.json | 5 +++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/deno.lock b/deno.lock index e2fb9c3..3f3b95c 100644 --- a/deno.lock +++ b/deno.lock @@ -35,7 +35,7 @@ "npm:esbuild@0.27.2", "npm:eslint@^9.39.5", "npm:express@^5.2.1", - "npm:fastify@^5.11.0", + "npm:fastify@^5.12.5", "npm:graphql@^16.9.0", "npm:miniflare@^4.20260730.0", "npm:prettier@^3.9.6", @@ -57,7 +57,8 @@ } }, "undici": "7.29.1", - "sharp": "0.35.5" + "sharp": "0.35.5", + "fastify": "$fastify" } } } diff --git a/package-lock.json b/package-lock.json index 3224869..2549884 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "esbuild": "0.27.2", "eslint": "^9.39.5", "express": "^5.2.1", - "fastify": "^5.11.0", + "fastify": "^5.12.5", "graphql": "^16.9.0", "miniflare": "^4.20260730.0", "prettier": "^3.9.6", @@ -4299,9 +4299,9 @@ "license": "BSD-3-Clause" }, "node_modules/fastify": { - "version": "5.11.3", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-5.11.3.tgz", - "integrity": "sha512-W6hzDP8s0iSeL7LGwY6Oc/ZxuXWOvFEMs6p2L0Si415YRo27W5pBKdOTXxhemBDeSTAcpYf5evRA9onF2OYhPA==", + "version": "5.12.5", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-5.12.5.tgz", + "integrity": "sha512-OB2k1dlxs5/NAABqeKV2FUHkSD2BbENsCak8yULVcymn3fHIPDVa9TI3SDnJSWYSllZmSYuZXy2gTnsT+Sut1A==", "dev": true, "funding": [ { @@ -4325,7 +4325,7 @@ "find-my-way": "^9.6.0", "light-my-request": "^6.0.0", "pino": "^9.14.0 || ^10.1.0", - "process-warning": "^5.0.0", + "process-warning": "^5.1.0", "rfdc": "^1.3.1", "secure-json-parse": "^4.0.0", "semver": "^7.6.0", diff --git a/package.json b/package.json index 532ed2d..30a8717 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,8 @@ } }, "undici": "7.29.1", - "sharp": "0.35.5" + "sharp": "0.35.5", + "fastify": "$fastify" }, "devDependencies": { "@eslint/js": "^9.39.5", @@ -149,7 +150,7 @@ "eslint": "^9.39.5", "esbuild": "0.27.2", "express": "^5.2.1", - "fastify": "^5.11.0", + "fastify": "^5.12.5", "graphql": "^16.9.0", "miniflare": "^4.20260730.0", "prettier": "^3.9.6",