Skip to content

Remove unused vulnerable packages and patch the UI toolchain - #54

Open
chessing234 wants to merge 1 commit into
teorth:mainfrom
chessing234:codex/estimates-ui-dependencies
Open

chessing234 wants to merge 1 commit into
teorth:mainfrom
chessing234:codex/estimates-ui-dependencies

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

The UI installs the unrelated biome package alongside the actual formatter, @biomejs/biome. The unused package pulls in obsolete request/form-data/lodash dependencies. The unused geist dependency also brings in an unnecessary Next.js dependency tree. Remove both, preserving the existing Biome formatter and UI fonts.

Refresh the remaining lockfile to patched releases and upgrade Vitest to 5.0.0 to address its mock-server file-read advisory. Set Node >=22.12 and use Node 22 with npm ci in both CI and Pages builds so those workflows install the tested lockfile with a supported runtime.

Validation: npm ci, npm run build, npm run test -- --run (one test), and npm run lint:ci pass. npm audit reports zero vulnerabilities, down from 26 affected dependency entries (including 6 critical). Build warnings about the existing Pyodide Node-module externals and large bundle remain. This PR does not claim the unused Next.js server was exposed by the static application.

Advisory examples: form-data boundary generation, Vitest mock-server traversal, and Vite arbitrary file read.

Prepared with Codex assistance.

This branch has not been deployed

No deployments
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