Upgrading react-chartjs-2 5 to 6
Breaking5.3.1 → 6.0.0Breaking1Fixed1Other1
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The package can no longer be loaded the old CommonJS way. Modern bundlers and recent Node.js versions work as before, but older setups and Jest need extra configuration.
Must act 1 item needs code or config changes
react-chartjs-2 publishes an official migration guide for version 6. It covers more than the release notes do.
Migration guide ↗What you must change
Breaking1
react-chartjs-2 is now ESM only; older Node.js needs ESM code and Jest must transform the package or enable ES modules.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
type ForwardedRef<T> = ((instance: T | null) => void) | MutableRefObject<T | null> | null → type ForwardedRef<T> = ((instance: T | null) => void) | RefObject<T | null> | null