Skip to content

upgrade: media package upgrade for Solid 2.0#849

Draft
davedbase wants to merge 1 commit intosolidjs-community:nextfrom
davedbase:update/v2/media
Draft

upgrade: media package upgrade for Solid 2.0#849
davedbase wants to merge 1 commit intosolidjs-community:nextfrom
davedbase:update/v2/media

Conversation

@davedbase
Copy link
Copy Markdown
Member

Upgrades the media primitive and all of its workspace dependencies to Solid.js 2.0.0-beta.7. The package is bumped to 3.0.0 as a breaking major release.

What changed

@solid-primitives/media

  • isServer import moved from solid-js/web@solidjs/web
  • Peer deps updated to solid-js@^2.0.0-beta.7 and @solidjs/web@^2.0.0-beta.7
  • Tests cleaned up — onMount removed, assertions made synchronous
  • README examples updated for Solid 2.0 patterns (class array form, split createEffect)

@solid-primitives/utils

  • onMountonSettled in createHydratableSignal
  • sharedConfig.contextsharedConfig.hydrating for hydration detection
  • equalFnisEqual, INTERNAL_OPTIONS uses pureWrite: true (was internal: true)
  • AccessorArray<T> removed (gone from Solid 2.0) — replaced with Accessor<T>[]

@solid-primitives/static-store

  • getListenergetObserver, { internal: true }{ pureWrite: true }
  • Explicit batch() calls removed — Solid 2.0 batches automatically on microtasks
  • sharedConfig.hydrating + onSettled in createHydratableStaticStore

@solid-primitives/rootless

  • batch removed from createRootPool, sharedConfig.hydrating in createHydratableSingletonRoot

@solid-primitives/event-listener

  • All isServer imports updated to @solidjs/web
  • createEventListener and createRenderEffect converted to the required Solid 2.0 split compute/apply pattern — listeners now attach in the apply phase with cleanup returned as a function
  • eventListener directive likewise converted; no longer uses onCleanup inside an effect

Notes

  • @solidjs/web@latest points to experimental.0 which is incompatible with beta.7 — the correct version is @solidjs/web@2.0.0-beta.7 (the next dist-tag).
  • All 11 tests pass (9 browser, 2 SSR).

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 21, 2026

🦋 Changeset detected

Latest commit: 4a5bf32

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 50 packages
Name Type
@solid-primitives/media Major
@solid-primitives/event-listener Major
@solid-primitives/rootless Major
@solid-primitives/static-store Major
@solid-primitives/utils Major
@solid-primitives/masonry Patch
@solid-primitives/active-element Patch
@solid-primitives/bounds Patch
@solid-primitives/connectivity Patch
@solid-primitives/date Patch
@solid-primitives/keyboard Patch
@solid-primitives/mouse Patch
@solid-primitives/page-visibility Patch
@solid-primitives/pointer Patch
@solid-primitives/resize-observer Patch
@solid-primitives/scroll Patch
@solid-primitives/styles Patch
@solid-primitives/audio Patch
@solid-primitives/geolocation Patch
@solid-primitives/autofocus Patch
@solid-primitives/clipboard Patch
@solid-primitives/controlled-props Patch
@solid-primitives/cursor Patch
@solid-primitives/destructure Patch
@solid-primitives/event-bus Patch
@solid-primitives/fullscreen Patch
@solid-primitives/graphql Patch
@solid-primitives/history Patch
@solid-primitives/immutable Patch
@solid-primitives/intersection-observer Patch
@solid-primitives/jsx-tokenizer Patch
@solid-primitives/memo Patch
@solid-primitives/mutation-observer Patch
@solid-primitives/pagination Patch
@solid-primitives/presence Patch
@solid-primitives/promise Patch
@solid-primitives/props Patch
@solid-primitives/raf Patch
@solid-primitives/range Patch
@solid-primitives/refs Patch
@solid-primitives/signal-builders Patch
@solid-primitives/sse Patch
@solid-primitives/storage Patch
@solid-primitives/stream Patch
@solid-primitives/trigger Patch
@solid-primitives/upload Patch
@solid-primitives/virtual Patch
@solid-primitives/deep Patch
@solid-primitives/map Patch
@solid-primitives/set Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davedbase davedbase changed the title upgrade: fullscreen package upgrade for Solid 2.0 upgrade: media package upgrade for Solid 2.0 Apr 21, 2026
@davedbase davedbase changed the base branch from main to next April 21, 2026 01:47
@davedbase davedbase added this to the Solid 2.0 Upgrade milestone Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant