unstale

npm / @solid-primitives/media

@solid-primitives/media

What changed in @solid-primitives/media 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

3 breaking3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@solid-primitives/media 46 changes

Breaking changes 3

  • Solid.js v2 replaces classList with class using object or array forms in consuming code.

    4.0.0release notes

  • Solid.js v2.0 beta.14 is now required as a peer dependency.

    4.0.0release notes

  • @solidjs/web v2.0 beta.14 is now required as a peer dependency.

    4.0.0release notes

Fixes and other changes 3

  • 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.0release notes

  • Fixes CLEANUP_IN_FORBIDDEN_SCOPE during hydration when watchChange is enabled by registering media query change listeners in the owner scope.

    4.0.0release notes

  • Import isServer from @solidjs/web instead of solid-js/web.

    4.0.0release notes