Skip to content

chore(deps): bump react-plotly.js from 2.6.0 to 4.0.0 in /frontend#224

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/react-plotly.js-4.0.0
Open

chore(deps): bump react-plotly.js from 2.6.0 to 4.0.0 in /frontend#224
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/react-plotly.js-4.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 1, 2026

Copy link
Copy Markdown
Contributor

Bumps react-plotly.js from 2.6.0 to 4.0.0.

Release notes

Sourced from react-plotly.js's releases.

v4.0.0

Added

  • Added native ESM output alongside CJS [#367]
    • Published artifacts now live under dist/ instead of at the repo root; the main entry moved from react-plotly.js to ./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
  • 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 via forwardRef, instead of to the class instance
    • Migration: replace ref.current.el with ref.current

Fixed

  • onPurge now fires and Plotly.purge runs on unmount [#372]
  • Plot is re-initialized correctly after React StrictMode's dev-only simulated unmount/remount [#372]
  • TypeScript declarations now expose ref forwarding so consumers can attach a typed ref prop without a TS error [#373]

v3.0.0

Added

  • onClickAnywhere and onHoverAnywhere event props for the corresponding plotly_clickanywhere and plotly_hoveranywhere events introduced in plotly.js v3 [#360]

Changed

  • Migrated CI from CircleCI to GitHub Actions [#362]
  • Migrated test framework from enzyme to @testing-library/react and bumped jest from 26 to 29 [#363]

Removed

  • Dropped support for plotly.js v1.x and v2.x; the plotly.js peer dependency now requires >=3.0.0 [#360]
  • Dropped support for React versions older than 18; the react peer dependency now requires ^18.0.0 || ^19.0.0 [#364]
Changelog

Sourced from react-plotly.js's changelog.

[4.0.0] - 2026-06-18

Added

  • Added native ESM output alongside CJS [#367]
    • Published artifacts now live under dist/ instead of at the repo root; the main entry moved from react-plotly.js to ./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
  • 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 via forwardRef, instead of to the class instance
    • Migration: replace ref.current.el with ref.current

Fixed

  • onPurge now fires and Plotly.purge runs on unmount [#372]
  • Plot is re-initialized correctly after React StrictMode's dev-only simulated unmount/remount [#372]
  • TypeScript declarations now expose ref forwarding so consumers can attach a typed ref prop without a TS error [#373]

[3.0.0] - 2026-06-09

Added

  • onClickAnywhere and onHoverAnywhere event props for the corresponding plotly_clickanywhere and plotly_hoveranywhere events introduced in plotly.js v3 [#360]

Changed

  • Migrated CI from CircleCI to GitHub Actions [#362]
  • Migrated test framework from enzyme to @testing-library/react and bumped jest from 26 to 29 [#363]

Removed

  • Dropped support for plotly.js v1.x and v2.x; the plotly.js peer dependency now requires >=3.0.0 [#360]
  • Dropped support for React versions older than 18; the react peer dependency now requires ^18.0.0 || ^19.0.0 [#364]
Commits
  • ea168dc Merge pull request #371 from plotly/release-4.0.0
  • 26d8d0c Update CHANGELOG
  • a7a6bc6 Merge remote-tracking branch 'origin/v4' into release-4.0.0
  • 15945a6 Merge pull request #373 from plotly/cam/update-type-forwardRef
  • f104e09 fix: Update type to reflect forwardRef wrapped component
  • 81a0cc8 Merge remote-tracking branch 'origin/v4' into release-4.0.0
  • 0f14332 Merge pull request #372 from plotly:cam/fix-plotComponentFactory-effect-cleanup
  • 61fabea Add fix for StrictMode destroying plot
  • 2e1d84b fix: Save ref at higher scope than useEffect cleanup function
  • 06917bb chore: Version updates for v4.0.0
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by packages-team-plotly, a new releaser for react-plotly.js since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [react-plotly.js](https://github.com/plotly/react-plotly.js) from 2.6.0 to 4.0.0.
- [Release notes](https://github.com/plotly/react-plotly.js/releases)
- [Changelog](https://github.com/plotly/react-plotly.js/blob/main/CHANGELOG.md)
- [Commits](plotly/react-plotly.js@v2.6.0...v4.0.0)

---
updated-dependencies:
- dependency-name: react-plotly.js
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 1, 2026
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/frontend dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant