Repository navigation
Website: patch npm advisories that Gatsby 5 can take - #403
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Patches the Dependabot npm alerts that Gatsby 5 can take, and documents the rest as unfixable so they can be dismissed.
Fixed
<7.4.5"webpack-dev-middleware": "^7.4.6"(Gatsby asks for^5.3.4; it only callsmiddleware(compiler, {publicPath, stats, serverSideRender})and reads.context.watching, which 7 keeps). Checked withgatsby buildand agatsby developsmoke test (/, /commons.js, page-data all 200).@expo/devcert)"**/@expo/devcert/glob": "^14.0.2"(devcert only callsglob.sync, still exported torequire()in 14, which is dual CJS/ESM; verified withrequire("glob").sync). The**/is needed because devcert is nested under gatsby.msgpackrstays at 1.12.1 andordered-binaryat 1.6.1 (the Node >= 22.7 floors).Not fixable on Gatsby 5 (documented in AGENTS.md "Website"; to dismiss)
decode-uri-component: the fix (0.5.1) is ESM-only andquery-string6require()s it (same shape as file-type).@graphql-tools/utils8/9: fix is 12.0.1, three majors away; Gatsby's@graphql-codegen/@graphql-toolspackages pin^8/^9. Only the opt-ingraphqlTypegenpath uses them, and the site's own queries make typegen fail identically before and after the pin, so the pin can't be verified.deepmerge4.3.1: no patched release exists.Verification
Locally on Node 26 with
yarn install --ignore-engines:yarn buildsucceeds;gatsby developserves. Thewebsitecheck on this PR runs the real./build.sh website.🤖 Generated with Claude Code
https://claude.ai/code/session_01LGkLQuAuUjvRjrU1AcTsmk