Repository navigation
fix(deps): update body-parser, path-to-regexp and qs under express - #975
Conversation
npm audit reported 35 findings in the root lockfile, 3 of them in packages that ship to users: body-parser 2.2.1, path-to-regexp 8.2.0 and qs 6.14.1, all pulled in by express 5.2.1. Each has a patched release inside the ranges express and its router already declare, so only the lockfile changes; package.json is untouched. npm audit fix skipped path-to-regexp because the locked 8.2.0 still satisfies router's ^8.0.0, and it left a stale browserslist nested under core-js-compat, so both were updated explicitly. No package crosses a major version. npm audit --omit=dev now reports 0. The 17 dev-only findings left all come through netlify-lambda's webpack 4 and toml dependencies and have no fix available.
✅ Deploy Preview for mdts-unhappychoice ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #975 +/- ##
=======================================
Coverage 99.33% 99.33%
=======================================
Files 71 71
Lines 1663 1663
Branches 397 404 +7
=======================================
Hits 1652 1652
Misses 10 10
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
unhappychoice
left a comment
There was a problem hiding this comment.
Thanks! Verified locally: clean npm ci, tests, lint and builds pass.
Why
npm audit --omit=devreported advisories in 3 packages thatmdtsusers install, all reached throughexpress5.2.1:path-to-regexp8.2.0path-to-regexp8.2.0qs6.14.1isBufferqs6.14.1qs.stringifycrash on null entries in comma-format arraysqs6.14.1arrayLimitbypass in comma parsingbody-parser2.2.1limitvalue silently disables size enforcementThe full
npm auditreported 35 findings (19 high, 9 moderate, 7 low); the rest are dev-only.npm audit fixalone does not clearpath-to-regexp: the locked 8.2.0 still satisfiesrouter's^8.0.0, so npm leaves it in place. It needed an explicitnpm update path-to-regexp.What changed
Lockfile only.
package.jsonand source are unchanged.The other 53 version changes are dev-only: Babel 7.29,
picomatch,minimatch,brace-expansion,js-yaml,yaml,lodash,browserslist,@humanfs/node, andnetlify-lambda's own Express 4 dependencies. No package crosses a major version, and every new version sits inside the range its dependent already declares.How it was verified
path-to-regexpis the router's pattern parser, and the server's catch-all routes use its*splatwildcard syntax, so a running server was checked as well as the supertest suites.node dist/index.js example_documentsreturns 200 for/api/config,/api/filetree,/api/outline?filePath=features/mermaid.md,/api/markdown/features/mermaid.md,/api/markdown/mdts-welcome-markdown.md,/api/diff/features/mermaid.md,/api/diff-prev/features/mermaid.mdand the SPA catch-all for/features/mermaid.md. A missing non-markdown path reaches the catch-all and gets its designed 404File not found(src/server/server.ts:126).npm run build && npm run build:frontendpass afternpm cifrom the new lockfile. Webpack reports 37 warnings, the same count as onmain.npm test142/142,npm run lint32/32, the same asmain.npm audit --omit=devreports 0 andnpm auditreports 17.Reviewer note
The 17 findings left are all dev-only, and all come through
netlify-lambda2.0.16: webpack 4 (braces,micromatch, chokidar 2,watchpack,terser-webpack-pluginwithserialize-javascript4,node-libs-browserwithelliptic) andtoml3.0.0. None has a fix available, so they are out of scope here. Whethernetlify-lambdais still needed is raised in #977.