Repository navigation
fix: remediate vulnerable dependencies with regression coverage - #304
Conversation
Upgrade affected runtime and development packages, retain CommonJS UUID support, and add HTTP, UUID, CSS, and disposable database regression coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Archive every node_modules directory so nested workspace test dependencies survive restoration. Trigger both package checks when shared CI configuration changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Three unresolved moderate issues affect test isolation, proxy-aware rate limiting verification, and disposable database cleanup.
1 open issue
What changed in this PR
This pull request remediates vulnerable runtime and development dependencies while adding regression coverage for HTTP middleware, UUID image generation, Tailwind/PostCSS processing, and MySQL/MariaDB compatibility.
Changes:
- Upgrades backend, frontend, testing, build, and transitive dependencies to eliminate reported audit vulnerabilities.
- Adds regression tests for HTTP behavior, UUID image paths, Tailwind selectors, and disposable database persistence.
- Adds scoped selector-parser overrides and documents optional database compatibility testing.
| File | Summary |
|---|---|
README.md |
Documents dependency decisions and the optional disposable database compatibility test. |
packages/frontend/tests/styles.spec.ts |
Adds Tailwind selector, variant, nested-component, and responsive-output coverage. |
packages/frontend/package.json |
Updates frontend build, CSS, testing, and coverage dependencies. |
packages/backend/test/db-compatibility.test.cjs |
Exercises real MySQL-compatible persistence, relations, transactions, and cleanup. Moderate issue: cleanup may be skipped if the application connection close fails (1 vote). |
packages/backend/src/shared/middleware/http-dependencies.spec.ts |
Covers body parsing, raw bodies, rate limiting, redirects, and Axios behavior. Moderate issue: the fixture enables trusted proxy handling, but the production app does not configure it, so proxy-aware rate limiting is not verified (3 votes). |
packages/backend/src/ai/ai.service.spec.ts |
Adds UUID image filename, byte-preservation, and public-URL coverage. Moderate issue: filesystem spies are not restored, potentially causing the following test to use no-op implementations (1 vote). |
packages/backend/package.json |
Updates backend dependencies and adds the database compatibility test command. |
package.json |
Adds scoped postcss-selector-parser overrides for Tailwind and postcss-nested. |
package-lock.json |
Records the upgraded dependency graph and patched transitive packages. |
Review effort: Lite
|
Fixed the CI failures in fe2b037: the shared dependency artifact archived only root node_modules and omitted workspace-local Vitest dependencies. The archive now includes every node_modules directory, and shared CI changes trigger both package pipelines. Reproduced artifact restoration in a fresh directory; backend build, both coverage gates, and frontend build passed. The updated GitHub Actions CI run 40146452566 is green. |

Summary
Verification
Limits