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@solid-primitives/media 46 changes
Breaking changes 3
Solid.js v2 replaces classList with class using object or array forms in consuming code.
Solid.js v2.0 beta.14 is now required as a peer dependency.
@solidjs/web v2.0 beta.14 is now required as a peer dependency.
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.
Fixes CLEANUP_IN_FORBIDDEN_SCOPE during hydration when watchChange is enabled by registering media query change listeners in the owner scope.
Import isServer from @solidjs/web instead of solid-js/web.