Skip to content

Bump react-plotly.js from 2.6.0 to 4.1.0 - #19

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

Bump react-plotly.js from 2.6.0 to 4.1.0#19
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/react-plotly.js-4.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 7, 2026

Copy link
Copy Markdown

Bumps react-plotly.js from 2.6.0 to 4.1.0.

Release notes

Sourced from react-plotly.js's releases.

v4.1.0

Added

  • Added missing onTreemapClick and onIcicleClick event props for the plotly_treemapclick and plotly_icicleclick events [#376]
  • Added additional missing events: onLegendTitleClick, onLegendTitleDoubleClick, onBeforePlot, onAnimating, and onTransitioned [#376]

Fixed

  • Returning false from onSunburstClick, onTreemapClick, or onIcicleClick now prevents the drill-down [#376]
    • onUpdate now fires for these via plotly_animated, so it reports the figure after the new level is applied and no longer fires when the drill-down is cancelled

Removed

  • Removed the errantly added onClickAnywhere and onHoverAnywhere props [#376]
    • plotly.js has no plotly_clickanywhere or plotly_hoveranywhere events, so these never fired
    • clickanywhere and hoveranywhere are layout attributes that widen the ordinary plotly_click / plotly_hover, so the feature is reached through onClick / onHover with the layout flag set — see the README

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

... (truncated)

Changelog

Sourced from react-plotly.js's changelog.

[4.1.0] - 2026-07-29

Added

  • Added missing onTreemapClick and onIcicleClick event props for the plotly_treemapclick and plotly_icicleclick events [#376]
  • Added additional missing events: onLegendTitleClick, onLegendTitleDoubleClick, onBeforePlot, onAnimating, and onTransitioned [#376]

Fixed

  • Returning false from onSunburstClick, onTreemapClick, or onIcicleClick now prevents the drill-down [#376]
    • onUpdate now fires for these via plotly_animated, so it reports the figure after the new level is applied and no longer fires when the drill-down is cancelled

Removed

  • Removed the errantly added onClickAnywhere and onHoverAnywhere props [#376]
    • plotly.js has no plotly_clickanywhere or plotly_hoveranywhere events, so these never fired
    • clickanywhere and hoveranywhere are layout attributes that widen the ordinary plotly_click / plotly_hover, so the feature is reached through onClick / onHover with the layout flag set — see the README

[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 [#360]
    • Correction: plotly.js v3 introduced clickanywhere / hoveranywhere as layout attributes, not as events, so these props never fired. They are removed in the next release.

Changed

... (truncated)

Commits
  • 806a069 Merge pull request #377 from plotly/release-4.1.0
  • f58e64d chore: Update files for v4.1.0
  • f986dc9 Merge pull request #376 from plotly/cam/375/add-missing-events
  • 8b353e8 Update CHANGELOG
  • 793c875 Update README events table
  • 10b05f8 Fix typo
  • f17059b Add missing plotly.js events
  • 1edac4a Remove cancelable events from updateEvents to avoid two listeners issue
  • dc508ad Add events tests, fix plotly mock
  • e6f9c0c Add missing types
  • 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.1.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.1.0)

---
updated-dependencies:
- dependency-name: react-plotly.js
  dependency-version: 4.1.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 Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

0 participants