Repository navigation
Description
plotly.js 4.0.0 (released 2026-08-24) is a breaking major that reflex-components-plotly cannot take as a straight version bump. The pin is currently held at [email protected], and plotly.js is filtered out of the release branch's outdated-dependency check with a pointer to this issue's problem.
Why it's blocked
plotly.js 4.0.0 removes the mapbox traces and the mapbox subplot outright:
scattermapbox,choroplethmapbox, anddensitymapboxtrace types are gone- the
mapboxsubplot and themapboxAccessTokenconfig option are gone - upstream's guidance is to migrate to the equivalent
*maptraces (scattermap,choroplethmap,densitymap), which are MapLibre-based and need no access token
Reflex ships PlotlyMapbox in packages/reflex-components-plotly/src/reflex_components_plotly/plotly.py, built on the plotly.js-mapbox-dist-min bundle. That bundle and the component both need a deprecation path before the pin can move.
Other 4.0.0 changes worth checking while migrating:
- MathJax v2 support dropped (v3/v4 only)
- Chart Studio config attributes removed:
showLink,linkText,sendData,showSources - all
*srcattributes andlayout.hidesourcesremoved from the schema - color processing switched from TinyColor to culori, which changes decimal-fraction handling in
rgb()/rgba()strings and now rejects invalid CSS colors - overlaying axes default to
tickmode: 'sync';splom.axis.matchesdefaults totrue; geo plots auto-fit to trace data - minimum Node raised to 22 (already satisfied —
Node.MIN_VERSIONis 22.22.0)
What needs doing
- Deprecate
PlotlyMapboxper the project's deprecation policy (console.deprecate()with adeprecation_versionof the next dot version,removal_versionof the next major), pointing users at a*map-based replacement - Add the replacement component backed by one of the 4.x map bundles
- Bump
plotly.js*pins inplotly.pyto 4.x, including the per-variantplotly.js-*-dist-minbundles (confirm each variant still exists in 4.x) - Audit the docs app's plotly usage for the removed config attributes and color-string forms
- Drop
plotly\.jsfrom the frontend ignore list in.github/workflows/check_outdated_dependencies.yml
Notes
react-plotly.js was already moved to 4.1.0 separately — its peer range is plotly.js >=3.0.0, so it is compatible with the 3.7.0 pin in the meantime and is not part of this migration.
Upstream changelog: https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md
Activity
linear-code commentedon Aug 28, 2026
ENG-11847
Record the new dependency holds in the outdated-check config
Record the new dependency holds in the outdated-check config
Refresh outdated dependencies flagged on the release branch (#7019)