#39
Update client dependencies to latest compatible releases
Problem
The client dependency set had fallen behind current stable releases, including Next.js, React, Lexical, authentication, rendering, and deployment tooling packages.
Result
- Updates runtime and development dependencies to their latest compatible stable releases and refreshes the pnpm lockfile.
- Keeps Node type definitions aligned with the Node 22 production image.
- Uses typed Hugeicons root exports required by the updated icon package.
- Scopes the CommonJS import lint exception to the Babel and PostCSS configuration files.
Validation
pnpm install --frozen-lockfilepnpm peers checkpnpm lintpnpm test(172 passing)pnpm buildpnpm audit --prod --audit-level highgit diff --check
Known limitations
- ESLint remains on 9.39.5 and TypeScript on 6.0.3 because the current Next.js lint dependency stack does not support ESLint 10 or TypeScript 7. Node types remain on the Node 22 line to match production.
- The production audit reports one pre-existing moderate esbuild advisory through drizzle-kit's optional deprecated loader. No high or critical advisories are reported.
Summary
Dependency-bump PR (package.json / pnpm-lock.yaml / pnpm-workspace.yaml) plus two small source changes to match the updated
@hugeicons/core-free-iconsAPI and a scoped ESLint exception. The two source edits are correct, mechanical migrations to the package's now-documented (and now typed) root-barrel import style — not the cause of any issue here.No blocking correctness or security issues found in the diff itself. One dependency bump has an observable, un-tested behavioral change that's worth a manual check before merge, and one bump changes the Node.js floor that's worth a quick confirmation against the production image.
Worth verifying before merge (non-blocking)
Lexical 0.49 → 0.51 changed HTML export output; composer output isn't covered by the test suite.
components/mail/rich-text-editor.tsx:145calls$generateHtmlFromNodes(editor)and uses the result directly as the outgoing email body (SerializePlugin, line 148). Lexical 0.50 changed HTML export to emit a terminating<br data-lexical-managed-linebreak="true">for a trailing line break in a block, mirroring the reconciler's live DOM output. That's a real change to what gets serialized into composed emails, and there's no test file coveringrich-text-editor.tsx's HTML generation (sanitize.test.mjsonly coverslib/render/sanitize.ts, andpnpm test's 172 passing tests don't appear to include a Lexical-specific suite). Recommend composing and sending a test message and diffing the resulting HTML against pre-upgrade output to confirm no stray<br>/blank line lands in delivered mail. Separately, Lexical 0.51 deprecatesLexicalComposerin favor ofLexicalExtensionComposer(still used at line 272) — not urgent, but likely to need migration before the next bump removes it.isomorphic-dompurify3.23.0 → 4.2.0 raises the Node.js floor to^22.22.2 || ^24.15.0 || >=26.0.0. The 4.x bump itself carries no functional/code change (it's the same code as 3.23.0, re-tagged as major because the Node floor bump in 3.20.0 should have been).Dockerfilepinsnode:22-alpine(floating tag), so this should already satisfy the floor as long as the alpine image tracks current 22.x patches — worth a one-time confirmation that the pinned digest/tag in CI resolves to ≥22.22.2 rather than an older cached 22.x layer.Verified as non-issues
components/mail/collection-icon.tsxandcomponents/ui/focus-mark.tsx: switching from per-icon default-export subpaths to named root-barrel imports matches Hugeicons' current documented/typed usage — not a regression.eslint.config.mjs: theno-require-importsexception is correctly scoped tobabel.config.js/postcss.config.js, which do userequire().next16.3.5 witheslint-config-next16.3.5).I did not execute the app or run the test suite myself; the above is based on static review of the diff, the dependency changelogs, and the call sites in the current tree.