Skip to content

chore(deps): audit fix client and root deps - #143

Merged
clementsm merged 4 commits into
devfrom
chore/deps-bump-7-27-2026
Jul 28, 2026
Merged

chore(deps): audit fix client and root deps#143
clementsm merged 4 commits into
devfrom
chore/deps-bump-7-27-2026

Conversation

@smithynb

@smithynb smithynb commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Audit client and root dependencies. Also uses newest version of gh-pages.

copilot pr summary

This pull request mainly updates dependencies and makes some cleanup in both the root and client package.json files. The most important changes include removing unused packages, updating dependency versions, and adding overrides for specific packages to address potential security or compatibility issues.

Dependency removals and updates:

  • Removed draft-js from client/package.json, likely because it is no longer used in the project.
  • Updated gh-pages from version ^5.0.0 to ^6.3.0 in client/package.json for the latest features and bug fixes.
  • Removed serve from the root package.json, indicating it is no longer needed.
  • Updated nodemon from ^2.0.3 to ^3.1.14 in the root package.json for improved development tooling.

Security and compatibility:

  • Added overrides for nth-check and postcss in client/package.json to ensure secure and compatible versions are used.

smithynb and others added 3 commits July 27, 2026 14:57
Clears 5 of 15 high advisories in the root audit (17 -> 12 entries).

- nodemon ^2.0.3 -> ^3.1.14 removes the semver 7.0.0 ReDoS
  (GHSA-c2qf-rxjj-qqgw) pulled in via simple-update-notifier. Semver-major
  per npm, but nodemon is dev-only and both invocations here use flags
  unchanged in v3; watch/restart and --inspect verified against the
  container (Node v24.11.1).
- serve ^14.2.6 removed. It was declared in dependencies but referenced by
  no code, script, Dockerfile, workflow, or doc; production static files are
  served by express.static in app.js. Drops serve + serve-handler advisories.

react-quill intentionally left in root: it is not declared in
client/package.json and the client resolves it plus quill via hoisting, so
removing it breaks the rich text editor. The quill XSS moderate
(GHSA-4943-9vgg-gr5r) therefore stays; react-quill 2.0.0 pins quill ^1.3.7
and no fixed 1.x exists.

The remaining 10 highs are all brace-expansion GHSA-mh99-v99m-4gvg
(published 2026-07-24) reaching the eslint/glob chain through minimatch. No
override is safe: the only fixed version, 5.0.8, is ESM-first requiring Node
>=20 and its CommonJS build exports an object rather than a callable, which
minimatch 3.x would crash on. Clearing those needs eslint 7 -> 10, a
flat-config migration.

Verified: docker rebuild, smoke-test.sh 9/9, Playwright e2e 23/23 including
the Quill editor, format, theme, and persistence specs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@smithynb
smithynb requested a review from Copilot July 28, 2026 17:14

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Resolves conflict in client/package.json against dev (PR #142). Dev bumped
gh-pages to ^5.0.0 and fixed the `gh-pages -d-build` typo in the deploy
script; this branch had already gone to ^6.3.0. Kept ^6.3.0 and took dev's
typo fix, so the deploy script is correct on the newer major.

client/package-lock.json resolved to this branch's copy. Dev's only lockfile
delta since 2f1cf47 was dropping gh-pages 2 transitive deps (query-string,
normalize-url, filenamify-url and friends), which this branch already
dropped at gh-pages 6. `npm install --package-lock-only` produced no drift,
confirming the lock matches the resolved manifest.

Verified: client tests pass (4/4), gh-pages@6.3.0 and no draft-js in the
installed tree, and root audit advisories drop from 44 on dev to 14 here.
The remaining brace-expansion <=5.0.7 advisory has no published fix and is
what inflates npm's raw vulnerability count.

Pre-existing and untouched by this merge: `npm run build` fails on eslint
style errors across ~30 files in client/src, which this branch does not
modify and whose lint toolchain versions are identical to dev.
@smithynb
smithynb marked this pull request as ready for review July 28, 2026 18:09
@clementsm
clementsm merged commit b120a54 into dev Jul 28, 2026
4 checks passed
@clementsm
clementsm deleted the chore/deps-bump-7-27-2026 branch July 28, 2026 19:38
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.

3 participants