# What changed in d3-random

> 5 changes in d3-random 2 to 3 from its official release notes, upgrade guides and advisories: 5 breaking. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/d3-random/

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

## d3-random 3

### Breaking changes

- The package is published as an ES module bundle instead of separate source files, changing how consumers receive its code. (3.0.2) — [release notes](https://github.com/d3/d3-random/releases/tag/v3.0.2)
- The package now requires Node.js 12 or higher. (3.0.0) — [release notes](https://github.com/d3/d3-random/releases/tag/v3.0.0)
- The package adopts type: module, affecting how Node.js interprets its JavaScript files. (3.0.0) — [release notes](https://github.com/d3/d3-random/releases/tag/v3.0.0)

## d3-random 2

### Breaking changes

- The default source no longer wraps Math.random. (2.0.0) — [release notes](https://github.com/d3/d3-random/releases/tag/v2.0.0)
- Imports now use explicit paths. (2.0.0) — [release notes](https://github.com/d3/d3-random/releases/tag/v2.0.0)
