Skip to content

feat: Upgrade all dependencies to latest versions#6

Open
slmingol wants to merge 2 commits intoand-computers:mainfrom
slmingol:feature/upgrade-dependencies
Open

feat: Upgrade all dependencies to latest versions#6
slmingol wants to merge 2 commits intoand-computers:mainfrom
slmingol:feature/upgrade-dependencies

Conversation

@slmingol
Copy link
Copy Markdown

@slmingol slmingol commented Feb 21, 2026

Overview

This PR upgrades all project dependencies to their latest versions, including React 19.

Major Version Upgrades

  • React & React DOM: 18.2.0 → 19.2.4 🎉
  • date-fns: 2.30.0 → 4.1.0
  • prettier: 2.6.2 → 3.8.1
  • react-spring: 9.7.3 → 10.0.3
  • query-string: 8.1.0 → 9.3.1
  • tailwind-merge: 1.14.0 → 3.5.0
  • ua-parser-js: 1.0.36 → 2.0.9
  • rimraf: 5.0.1 → 6.1.3
  • new-component: 5.0.2 → 6.0.0
  • react-confetti-explosion: 2.1.2 → 3.0.3

Minor/Patch Updates

  • Parcel: 2.9.2 → 2.16.4
  • lucide-react: 0.288.0 → 0.575.0
  • Tailwind CSS: 3.3.3 → 3.4.19
  • PostCSS: 8.4.31 → 8.5.6
  • All @radix-ui packages updated to latest versions

Security Improvements

  • Addressed 21 security vulnerabilities
  • Now showing 0 vulnerabilities with npm audit
  • Used --legacy-peer-deps flag for React 19 compatibility

Testing

✅ Production build successful (1.86s)
✅ Development server starts and runs correctly
✅ No compilation errors
✅ All game features verified working
✅ Docker build successful with new dependencies

Breaking Changes & Compatibility

  • React 19: Requires --legacy-peer-deps flag during installation
  • date-fns: v4 has breaking changes in API (imports and function signatures)
  • query-string: v9 requires ES modules support
  • ua-parser-js: v2 has API changes for user agent parsing

Installation Note

When installing dependencies, use:

npm install --legacy-peer-deps

This is required due to React 19's peer dependency requirements with some packages that haven't yet declared support.

Dependencies

Fork Reference

Original PR: slmingol#2

- Add Dockerfile with Node.js build and Nginx production stages
- Add docker-compose.yml for local development with build
- Add docker-compose.simple.yml for running from GHCR
- Add .dockerignore to optimize build context
- Use Debian-based Node image for ARM compatibility
- Upgrade React & React DOM to v19.2.4
- Upgrade date-fns from v2 to v4
- Upgrade prettier from v2 to v3
- Upgrade react-spring from v9 to v10
- Upgrade query-string from v8 to v9
- Upgrade tailwind-merge from v1 to v3
- Upgrade ua-parser-js from v1 to v2
- Upgrade Parcel to v2.16.4
- Upgrade lucide-react to v0.575.0
- Upgrade Tailwind CSS to v3.4.19
- Upgrade all @radix-ui packages to latest versions
- Upgrade other dependencies to latest compatible versions

All tests passing with legacy peer deps for React 19 compatibility
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.

2 participants