Files
g-butandClaude Opus 4.7 761d9292b7 chore: drop unused react-router-dom + @types/react-router-dom
Last session noticed react-router-dom was a direct dep with zero
imports anywhere in src/ — confirmed: no .ts/.tsx/.js source code
imports it. The only references were:
  - jest.config.js moduleNameMapper for the package
  - __mocks__/react-router-dom.js (an empty stub: `module.exports = {}`)
  - scripts/analysis/webpack-bundle-optimizer.js bundling regex

OrangeCat is a Next.js App Router project (Next 15.5); there is no
need for react-router. The deps were carry-over from an earlier
project state. Notably @types/react-router-dom@5.3.3 was *also*
orphaned-and-wrong: react-router-dom@7 ships its own types, so the
@types package was for a v5 API that hadn't shipped in years.

Removes 6 packages from node_modules (-79 lockfile lines), 1 stub
file, and the unused mock/regex entries. No functional change.

Verified: type-check clean, ESLint clean, jest 648 pass · 1 skipped,
production `next build` 178/178 static pages, npm audit 0 vulns.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 18:14:40 +02:00
..
2025-12-10 16:56:40 +01:00