Skip to content

Commit 2d8ae17

Browse files
committed
Update changelog
1 parent 120eae3 commit 2d8ae17

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ where X.Y.Z is the semver of most recent react-plotly.js release.
1111

1212
## [Unreleased]
1313

14+
## [4.0.0] - 2026-06-11
15+
16+
### Added
17+
18+
- Added native ESM output alongside CJS [[#367](https://github.com/plotly/react-plotly.js/pull/367)]
19+
- Published artifacts now live under `dist/` instead of at the repo root; the `main` entry moved from `react-plotly.js` to `./dist/index.cjs`
20+
- Dropped the unminified UMD bundle
21+
- `import Plot from 'react-plotly.js'` now resolves correctly in Rolldown and any other strict ESM environment
22+
- Added TypeScript declaration files (`index.d.ts` / `factory.d.ts`) [[#368](https://github.com/plotly/react-plotly.js/pull/368)]
23+
24+
### Changed
25+
26+
- Update linting dependencies [[#366](https://github.com/plotly/react-plotly.js/pull/366)]
27+
- Refactored the wrapper from a class component to a functional component using hooks [[#369](https://github.com/plotly/react-plotly.js/pull/369)]
28+
- Refs forwarded to `<Plot>` now resolve to the rendered `<div>` element (the plotly graph div) directly via `forwardRef`, instead of to the class instance
29+
- **Migration:** replace `ref.current.el` with `ref.current`
30+
1431
## [3.0.0] - 2026-06-09
1532

1633
### Added

0 commit comments

Comments
 (0)