# What changed in @solid-primitives/media

> 6 changes in @solid-primitives/media 4 from its official release notes, upgrade guides and advisories: 3 breaking. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@solid-primitives/media/

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

## @solid-primitives/media 4

### Breaking changes

- Solid.js v2 replaces classList with class using object or array forms in consuming code. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/media%404.0.0)
- Solid.js v2.0 beta.14 is now required as a peer dependency. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/media%404.0.0)
- @solidjs/web v2.0 beta.14 is now required as a peer dependency. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/media%404.0.0)

### Fixes and other changes

- Client-only effects are transparent to Solid 2 hydration, and hydratable helpers call onSettled on both server and client so later nodes bind correctly. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/media%404.0.0)
- Fixes CLEANUP_IN_FORBIDDEN_SCOPE during hydration when watchChange is enabled by registering media query change listeners in the owner scope. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/media%404.0.0)
- Import isServer from @solidjs/web instead of solid-js/web. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/media%404.0.0)
