# What changed in plotly.js-dist-min

> 22 changes in plotly.js-dist-min 4 from its official release notes, upgrade guides and advisories: 2 breaking, 3 new APIs and options. Each one cited. Sources checked 2026-10-29. HTML: https://unstale.sh/npm/plotly.js-dist-min/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## plotly.js-dist-min 4

### Breaking changes

- Map traces now require Safari 15, Chrome 56, Firefox 51 or later because maplibre-gl v6 dropped WebGL1 support. (4.1.1) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.1)
- The default double-click delay threshold increases from 300ms to 500ms. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)

### New APIs and options

- `format` now accepts `full-json`. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- An opt-in modebar button lets users download Plotly figures as JSON. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)
- Sets the group behavior for a legend double-click. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)

### Behavior and default changes

- Responsive chart resizing uses ResizeObserver instead of listening for window resize events. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)

### Tooling

- Generated types include trace-contributed layout attributes. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)
- TypeScript declarations are added for the modular `lib/` entry points. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)
- Type definitions are included in the appropriate partial bundles. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)
- Type generation handles regex enum values. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)

### Fixes and other changes

- `filename` is optional because `downloadImage` supplies it. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- Plots redraw when a font they use finishes loading. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- Modebar hover colors now update after `color` or `activecolor` changes. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- On a hover tie, the trace drawn last is picked, matching `scatter`. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- On a hover tie, the trace drawn last is picked, matching `scatter`. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- `height` accepts `null` and is optional because `toImage` supplies it. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- `width` accepts `null` and is optional because `toImage` supplies it. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- Types for `arrayOk` number and color attributes now allow typed arrays. (4.1.2) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.2)
- Box and lasso selection of scattermap points now works on rotated or pitched maps. (4.1.1) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.1)
- Hover labels resolve per-point marker color. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)
- Hover labels resolve per-point marker color. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)
- TypeScript files under `src/` are compiled to JavaScript during packaging to fix Node resolution. (4.1.0) — [release notes](https://github.com/plotly/plotly.js/releases/tag/v4.1.0)
