Skip to content

Conversation

@bnimit
Copy link
Contributor

@bnimit bnimit commented Dec 22, 2025

🎯 Summary

Replaced the deprecated react-beautiful-dnd library with its actively maintained fork @hello-pangea/dnd@18.0.1.

🔄 Changes

Dependencies Updated

  • Main package: Updated peer dependency and dev dependency
  • Example package: Updated dependency
  • Version: react-beautiful-dnd@13.1.1@hello-pangea/dnd@18.0.1

Code Changes

  • Updated imports in GridWrapper.tsx, GridArea.tsx, and GridItem.tsx
  • Updated vite.config.ts to externalize the new package
  • Fixed import order warnings (ESLint auto-fix)
  • Updated example README to reflect the change

✨ Benefits

  • No more deprecation warnings - Eliminates defaultProps console warnings in React 18
  • React 19 ready - Prepares the library for future React upgrades
  • Actively maintained - @hello-pangea/dnd is a well-maintained fork
  • Drop-in replacement - Identical API, no behavior changes

✅ Verification

  • All tests passing (6/6)
  • Build successful
  • Lint clean (0 errors, 0 warnings)
  • Example app working with drag-and-drop functionality
  • No other deprecated packages found

🔍 Breaking Changes

None - This is a drop-in replacement. The API is identical and all functionality is preserved.

Copy link

@airslice airslice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

  Updated the library to officially support React 19 with full compatibility testing.

  Changes:
  - Updated React and React DOM from 18.2.0 to 19.2.3
  - Updated @types/react from 18.3.27 to 19.2.7
  - Updated @types/react-dom from 18.3.7 to 19.2.3
  - Updated peer dependency to explicitly support React 16.8+, 17, 18, and 19
  - Updated example app to use React 19 for testing

  Benefits:
  - Resolves "multiple React copies" error for React 19 users
  - Smaller bundle sizes (ESM: -27%, UMD: -23%) due to React 19 optimizations
  - All tests passing (6/6)
  - Backward compatible with React 16.8+
@bnimit bnimit self-assigned this Dec 23, 2025
@bnimit bnimit merged commit e25f62e into main Dec 23, 2025
2 checks passed
@bnimit bnimit deleted the chore/lets-remove-the-deprecrated branch December 23, 2025 08:35
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.

3 participants