Skip to content

Upgrading react-chartjs-2 5 to 6

Breaking5.3.1 → 6.0.0Breaking1Fixed1Other1

BreakingUpgrade verdict

1 breaking change.

  • 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.
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 ↗
Breaking1
react-chartjs-2 is now ESM only; older Node.js needs ESM code and Jest must transform the package or enable ES modules.

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