Skip to content

Website: patch npm advisories that Gatsby 5 can take - #403

Merged
lahma merged 1 commit into
mainfrom
4x/website-alerts
Nov 5, 2026
Merged

lahma merged 1 commit into
mainfrom
4x/website-alerts

Conversation

@lahma

@lahma lahma commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Patches the Dependabot npm alerts that Gatsby 5 can take, and documents the rest as unfixable so they can be dismissed.

Fixed

Alert Package Fix
#249 webpack-dev-middleware <7.4.5 resolution "webpack-dev-middleware": "^7.4.6" (Gatsby asks for ^5.3.4; it only calls middleware(compiler, {publicPath, stats, serverSideRender}) and reads .context.watching, which 7 keeps). Checked with gatsby build and a gatsby develop smoke test (/, /commons.js, page-data all 200).
#261 glob 10.5.0 (@expo/devcert) resolution "**/@expo/devcert/glob": "^14.0.2" (devcert only calls glob.sync, still exported to require() in 14, which is dual CJS/ESM; verified with require("glob").sync). The **/ is needed because devcert is nested under gatsby.
#264 minimatch 9.0.9 gone with the glob pin: only glob 10 required it, glob 14 brings minimatch 11.0.4.

msgpackr stays at 1.12.1 and ordered-binary at 1.6.1 (the Node >= 22.7 floors).

Not fixable on Gatsby 5 (documented in AGENTS.md "Website"; to dismiss)

Verification

Locally on Node 26 with yarn install --ignore-engines: yarn build succeeds; gatsby develop serves. The website check on this PR runs the real ./build.sh website.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LGkLQuAuUjvRjrU1AcTsmk

Pin webpack-dev-middleware to 7.4.6 (alert 249) and @expo/devcert's glob
to 14.0.x, which also retires minimatch 9 (alerts 261 and 264). Document
decode-uri-component, @graphql-tools/utils and deepmerge as advisories
Gatsby 5 cannot take.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LGkLQuAuUjvRjrU1AcTsmk
Signed-off-by: Marko Lahma <marko.lahma@gmail.com>
@lahma
lahma merged commit e27a11c into main Nov 5, 2026
3 checks passed
@lahma
lahma deleted the 4x/website-alerts branch November 5, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant