Chore: Resolve Deprecated Packages (Recharts v3, ESLint v9, Next-PWA)#1541
Chore: Resolve Deprecated Packages (Recharts v3, ESLint v9, Next-PWA)#1541ArshVermaGit wants to merge 6 commits into
Conversation
|
@ArshVermaGit is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
ArshVermaGit
left a comment
There was a problem hiding this comment.
Hi @Priyanshu-byte-coder ! Issue #1539 has been resolved. Please review the PR and merge it under GSSoC. Thanks!
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
This PR now has merge conflicts with main due to recent merges. Please rebase onto the latest main branch and resolve conflicts before we can merge.
Done Please review! |
Description
This PR eliminates the massive wall of deprecation warnings (
inflight,rollup-plugin-terser,recharts,eslint) that were clogging up thenpm installlogs and introducing future technical debt.Resolved Issue
Resolves #1539
Fixes:
^2.12.7to^3.8.1. This removes legacy React 17 dependencies (likedefaultProps) and improves SSR compatibility.next-pwapackage is dead. Replaced it with the community-maintained@ducanh2912/next-pwadrop-in replacement, which purges the deprecatedrollup-plugin-tersersub-dependency.^9.0.0and migrated the legacy.eslintrc.jsonto the modern Flat Config (eslint.config.mjs). Also cleaned up several unusedeslint-disablecomments across the codebase.{ ssr: false }from our dynamic chart imports inDashboardPage, allowing Next.js 15 to properly render the skeleton loaders on the server.Breaking Changes / Follow-ups Needed
The major version bumps to Next.js 15 and Recharts v3 introduced a few strict TypeScript errors that currently fail the
npm run buildstep (e.g.,req.ipwas removed from NextRequest, and Recharts Tooltip generic types have changed). These will need to be patched before this can be deployed.How to Verify
npm installand verify the output is perfectly clean (0 deprecation warnings).npm run lintand verify there are no ESLint errors.npm run testto verify the unit test suite still passes.