Releases: plotly/react-plotly.js
Releases · plotly/react-plotly.js
Release list
v4.0.0
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
Fixed
v3.0.0
Added
onClickAnywhereandonHoverAnywhereevent props for the correspondingplotly_clickanywhereandplotly_hoveranywhereevents introduced in plotly.js v3 [#360]
Changed
- Migrated CI from CircleCI to GitHub Actions [#362]
- Migrated test framework from enzyme to
@testing-library/reactand bumped jest from 26 to 29 [#363]
Removed
v2.6.0
- Add onWebGlContextLost event - thanks to @markovist
- Minor dependency upgrades
v2.5.1
v2.5.0
- fixed issue with referencing element of unmounted component - thanks to @lavor
- added support for the
plotly_onrelayoutingevent - thanks to @lauri-codes - added support for the
plotly_sunburstclickevent - thanks to @LittleMikeDev devDependenciesupdates