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 18 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! |
|
This PR now has merge conflicts with |
# Conflicts: # .eslintrc.json # package-lock.json # src/app/u/[username]/opengraph-image.tsx
|
@Priyanshu-byte-coder merge conflicts are resolved please review and merge |
|
This PR has merge conflicts with the current |
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 33523564 | Triggered | Generic High Entropy Secret | 29bddf6 | .env.example | View secret |
| 33523565 | Triggered | Supabase Service Role JWT | 29bddf6 | .env.example | View secret |
| 33523566 | Triggered | JSON Web Token | 29bddf6 | .env.example | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
|
Closing — this PR accidentally includes Python automation scripts ( |
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.