Added
- Added native ESM output alongside CJS [#367]
- Published artifacts now live under
dist/instead of at the repo root; themainentry moved fromreact-plotly.jsto./dist/index.cjs - Dropped the unminified UMD bundle
import Plot from 'react-plotly.js'now resolves correctly in Rolldown and any other strict ESM environment
- Published artifacts now live under
- Added TypeScript declaration files (
index.d.ts/factory.d.ts) [#368]
Changed
- Update linting dependencies [#366]
- Refactored the wrapper from a class component to a functional component using hooks [#369]
- Refs forwarded to
<Plot>now resolve to the rendered<div>element (the plotly graph div) directly viaforwardRef, instead of to the class instance - Migration: replace
ref.current.elwithref.current
- Refs forwarded to