Skip to content

Update svgo to 2.8.4 in the example app - #64

Merged
marcochavezf merged 2 commits into
mainfrom
amy-bump-svgo
Dec 1, 2026
Merged

marcochavezf merged 2 commits into
mainfrom
amy-bump-svgo

Conversation

@amyevans

@amyevans amyevans commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Updates svgo in example/ so the only copy left is 2.8.4. This closes all 4 open svgo Dependabot alerts (GHSA-xpqw-6gx7-v673, GHSA-2p49-hgcm-8545, GHSA-4vpr-x523-8j87, GHSA-w27v-7q3p-w38r; all fixed in 2.8.4).

The example app had two copies, both from react-scripts@5.0.0:

  • svgo@1.3.2 through @svgr/webpack@5.5.0. The 1.x line has no patched release, and svgr 5 only supports svgo 1. An npm override moves @svgr/webpack to 6.5.1, the last release that uses svgo 2. It needs @babel/core ^7.19.6, which the lockfile already has (7.20.5), so Babel does not change.
  • svgo@2.8.0 through postcss-svgo. Its ^2.7.0 range allows 2.8.4, so this is a lockfile change.

svgo only runs during the example app's web build. It does not ship in the library. The example app has no .svg files.

The lockfile changes only svgr and svgo packages and their dependencies. It also removes nth-check@1.0.2, which svgo 1 used.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/707750
$ https://github.com/Expensify/Expensify/issues/707764

AI Tests

  • npm ls svgo --all --package-lock-only in example/ resolves only 2.8.4.
  • npm ci, then craco build passes with a temporary .svg import (as a React component and as a URL) and a CSS rule with an inline SVG. The build turned the .svg into a component and kept the CSS SVG. I removed the temporary files after the test.
  • The build needs DISABLE_ESLINT_PLUGIN=true because of an ESLint plugin conflict between the root and example configs. This change did not cause it.

Tests

  1. In the repo root, run npm ci.
  2. In example/, run npm ci.
  3. Run npm run web.
  4. Confirm the dev server starts and the example page loads.

QA

NA

– written by Claude on Amy's behalf

@amyevans
amyevans marked this pull request as ready for review November 23, 2026 15:10
@amyevans
amyevans requested a review from a team November 23, 2026 15:10
@expensify-chore-bot
expensify-chore-bot Bot requested review from marcochavezf and removed request for a team November 23, 2026 15:11
# Conflicts:
#	example/package-lock.json
@amyevans

amyevans commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Bump for review please @marcochavezf

@marcochavezf marcochavezf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, apologies for the delay here

@marcochavezf
marcochavezf merged commit ce3ba64 into main Dec 1, 2026
5 of 6 checks passed
@marcochavezf
marcochavezf deleted the amy-bump-svgo branch December 1, 2026 20:51
@os-botify

os-botify Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 1.0.43 🎉

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.

2 participants