Skip to content

Version Packages - #1146

Merged
davedbase merged 2 commits into
mainfrom
changeset-release/main
Nov 28, 2026
Merged

davedbase merged 2 commits into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@solid-primitives/clipboard@2.1.0

Minor Changes

  • a176399: Add createCopyToClipboard: copy with a transient, auto-resetting copied/error status (copy-button helper).

@solid-primitives/dismissable@0.1.0

Minor Changes

  • 0e88ead: New package: @solid-primitives/dismissable

    Dismissable layers with a shared layer stack. makeDismissableLayer / createDismissableLayer handle Escape, outside pointer presses and outside focus (reusing makeInteractOutside from @solid-primitives/interaction), report a reason (escape, outside-pointer, outside-focus, programmatic), and only let the topmost non-persistent layer react so nested layers close one at a time. Supports dismissible + onDismissAttempt, exclude, persistent layers, parent registration for portaled children and disableOutsidePointerEvents. getLayerStack, useLayerStack, getTopLayer and isTopLayer expose the stack.

    An outside press and the focus move it causes are one interaction (no double onDismiss / onDismissAttempt for a layer that stays registered), and a touch tap dismisses the layer that was on top when the press began even if the tapped trigger opened a new layer.

Patch Changes

  • Updated dependencies [ae9fb08]
    • @solid-primitives/interaction@1.1.0

@solid-primitives/floating@0.1.0

Minor Changes

  • 0e88ead: Initial release of @solid-primitives/floating: computePosition and computePositionFromRects (placement, offset, flip, shift, size, arrow, RTL, boundaries), makeAutoUpdate, the reactive createFloating, and size CSS variable helpers. computePosition handles transformed containing blocks for strategy: "fixed" and scaled offset parents. Containing-block detection covers offset-path, content-visibility, transform-style: preserve-3d and exact will-change tokens (filter is ignored on html), a positioned html is honoured for "absolute", top-layer elements (popover, modal dialog, fullscreen) ignore ancestor transforms, slotted elements find their containing block across shadow roots, and an RTL scrollbar on the left is excluded from the viewport boundary.

@solid-primitives/focus@1.1.0

Minor Changes

  • a176399: Add makeRovingScope / createRovingScope (roving tabindex for container items with orientation, loop, RTL, disabled skipping, MutationObserver tracking, remembered active item and independent nested scopes) and makePressKeepsFocus / createPressKeepsFocus (pressing non-text controls does not steal focus from the focused element). Existing APIs are unchanged.

@solid-primitives/interaction@1.1.0

Minor Changes

  • ae9fb08: Add makeInertOthers and createInertOthers: mark every subtree outside one or more modal layer elements as aria-hidden and/or inert, with restoration of previous attribute values, ref-counted stacking of layers, an ignore list, live-region protection and a MutationObserver that also covers nodes added later. Their shared state lives on globalThis, so duplicate copies of the package stay consistent. Protected elements inside a target no longer get their siblings hidden, a root equal to a target is handled, live regions added later inside hidden branches are re-evaluated, and createInertOthers keeps its stack position when its inputs change (stacking order is opening order: re-enabling a layer puts it on top). aria-hidden is deferred on nodes that contain the focused element until focus leaves them, because Chrome ignores it there, and when every target is removed the layer keeps what it holds until it is updated or closed. ariaHideOutside and createHideOutside are unchanged.

    makeInteractOutside (and createInteractOutside / interactOutside) no longer leave a touch press armed after it turns into a scroll or drag: the pending touch is dropped on pointercancel / touchcancel, on movement beyond 10px, on a key press and after a short timeout, and the click must match the stored press.

@solid-primitives/keyboard@2.1.0

Minor Changes

  • a176399: Add createShortcuts and makeShortcutRegistry: register many keyboard shortcuts through a single keydown/keyup listener pair, with dynamic registration, per-shortcut enabled/ignoreInputs/requireReset/preventDefault, an optional scope element, and a deterministic conflict policy (most recently registered eligible shortcut wins). createShortcut is unchanged.

    Fix pressed-key tracking: keys are now released by the value recorded at keydown per physical key (event.code), so releasing Shift before a digit (! -> 1) no longer leaves a stuck key in useKeyDownList, createShortcut and the registry. A scoped registry now also tracks key releases on window and resets when focus leaves the scope, so Tab moving focus out no longer leaves a stuck key. A scope that is not an ancestor of window in the event path (a bare EventTarget) also listens for keyup on itself, so its releases are seen too.

    Key releases are now always tracked on window in the capture phase in useKeyDownList, createShortcut and the registry, so an app handler calling stopPropagation() on keyup no longer leaves keys stuck. CapsLock, NumLock and ScrollLock are ignored (macOS sends only one of keydown/keyup for CapsLock, which broke every shortcut afterwards). ignoreWithinInputs / ignoreInputs now work for inputs inside iframes and open shadow roots, and a registry scope may be an iframe document.

    Holding both physical keys of a modifier (for example ControlLeft and ControlRight) no longer drops the modifier from the pressed set when only one of them is released while its event flag (ctrlKey, shiftKey, altKey, metaKey) is still set. Previously a requireReset shortcut could fire again before every key was released, and useKeyDownList briefly omitted the held modifier.

    Behavior change: ignoreWithinInputs (createShortcut) and ignoreInputs (registry) no longer suppress shortcuts while an <input> whose type never accepts typed characters has focus: checkbox, button, submit, reset and image (case-insensitive). Previously every <input> was treated as editable. Text-like inputs, radio, range, file, color, textarea, select and contenteditable are still ignored, since they consume typed characters or keys such as arrows.

    Keys whose event.code is empty or "Unidentified" (virtual/IME and some Android keyboards) no longer share one tracking slot, so pressing and releasing several of them can no longer leave a key stuck in useKeyDownList, createShortcut or the registry; they are tracked by event.key instead. In +-joined shortcut strings a literal plus key is now recognised in any position ("Control+++K", "a+++b"), not only at the end.

@solid-primitives/post-message@0.1.0

Minor Changes

  • 0e88ead: Initial release of @solid-primitives/post-message: makePostMessage and createPostMessage for window, iframe and MessagePort messaging with allowedOrigins, explicit targetOrigin, source filtering, type-narrowing validators and namespaced channels.

    Target detection is cross-origin safe: a Window is recognised first via the cross-origin-accessible window property, so iframe.contentWindow, window.opener and window.parent of another origin work without throwing a SecurityError.

@solid-primitives/presence@1.1.0

Minor Changes

  • a176399: Add opt-in animation-aware transitions: animations: true waits for element.getAnimations({ subtree: true }) to settle (CSS transitions, CSS animations, Web Animations) instead of the fixed duration, falling back to the timer when no element is known or getAnimations is unavailable. The element comes from the new element option or the returned ref. Also returns attrs() with data-starting-style / data-ending-style for styling hooks. Fully backward compatible.

@solid-primitives/resize-observer@4.1.0

Minor Changes

  • a176399: Add getVisualViewport, makeVisualViewportListener, createVisualViewport and useVisualViewport for tracking window.visualViewport (size, offsets, pinch-zoom scale) with a window.innerWidth/innerHeight fallback and SSR/hydration-safe defaults.

@solid-primitives/scroll@3.1.0

Minor Changes

  • a176399: Add opt-in requestAnimationFrame throttling: createScrollPosition(target, { throttle: "raf" }), a non-reactive makeScrollPositionListener, and useWindowScrollPositionRaf. Default behavior is unchanged.

@solid-primitives/timer@1.5.0

Minor Changes

  • a176399: Add makePausableTimer and createPausableTimer: one-shot timeouts that track remaining time across pause/resume, with a reactive delay, signal accessors (remaining, isActive, isPaused) and an opt-in pauseWhenHidden option.

@solid-primitives/virtual@1.1.0

Minor Changes

  • a176399: Support variable row heights: rowHeight can now be a (index) => number function, and an opt-in measured mode (estimatedRowHeight plus measureElement, using ResizeObserver) records real heights. createVirtualList returns a third helpers tuple element (getRowOffset, getRowHeight, measureElement, unmeasureElement, resetMeasurements, scrollToIndex) and the state gains offsets. The fixed-height path is unchanged.

@solid-primitives/active-element@3.0.1

Patch Changes

  • 6457c24: Fix focus() throwing CLEANUP_IN_FORBIDDEN_SCOPE when used as a JSX ref callback (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).

    Solid 2 forbids onCleanup in a ref callback, and focus() registered its listeners with makeEventListener, which calls it. The callback now uses plain addEventListener and returns its teardown. Each element keeps its own teardown, so one focus() value works on several elements, and all of them are also removed with the owner of the focus() call because the runtime ignores a ref callback's return value.

@solid-primitives/cursor@1.0.1

Patch Changes

  • 6457c24: Fix cursorRef throwing PRIMITIVE_IN_EFFECT_CALLBACK when used as a JSX ref callback (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).

    Solid 2 forbids creating effects inside a ref callback, and cursorRef created one there via createElementCursor. The effect is now created when cursorRef(...) is evaluated (the component body); the callback only registers the element and returns a teardown. The cursor is restored when the element unmounts or the owner is disposed, and one cursorRef value can be attached to several elements.

    cursorRef also mints a matching owner on the server, so the hydration ids of elements rendered after it stay aligned with the client.

@solid-primitives/form@1.0.2

Patch Changes

  • 2f75087: Fix form.ref and form.bind() throwing CLEANUP_IN_FORBIDDEN_SCOPE (and PRIMITIVE_IN_EFFECT_CALLBACK) when used as JSX ref callbacks (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).

    Solid 2 runs a ref callback in a restricted context where onCleanup and creating roots, memos or effects are forbidden. ref and bind registered their listeners with makeEventListener (which calls onCleanup) and bind created its DOM-sync effect inside the callback. In a hydrated app the throw aborted hydration, so the submit handler was never attached and a native GET submission put the fields, including passwords, into the URL.

    Listeners are now plain addEventListener calls inside the ref callback, which still returns its cleanup. The field → DOM sync effect is created when form.bind("name") is evaluated (the component body), and the listeners are also torn down with the owner of createForm / bind(), because the runtime ignores a ref callback's return value. The unused @solid-primitives/event-listener dependency is removed.

    A bind() callback created without an owner is also torn down, together with its sync root, when the owner that mounted the ref is disposed.

@solid-primitives/lifecycle@1.0.1

Patch Changes

@solid-primitives/mediastream@1.0.1

Patch Changes

  • 6457c24: Fix the README createStream and createScreen examples, which created an effect inside a JSX ref callback and threw PRIMITIVE_IN_EFFECT_CALLBACK in Solid 2 (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143). They now keep the element in a signal via ref={setVideo} and assign srcObject from an effect in the component body. Documentation only, no source change.

    The examples also no longer wrap in <Loading> (stream() is a plain signal, so it never shows a fallback; they render their own loading state) and createScreen now starts from a click, since getDisplayMedia requires a user gesture. The same inaccurate <Loading> claim is removed from the JSDoc.

@solid-primitives/mutation-observer@3.0.1

Patch Changes

  • 6457c24: Fix mutationObserver(options, callback) throwing PRIMITIVE_IN_EFFECT_CALLBACK when used as a JSX ref (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).

    The observer was created inside the ref callback, where Solid 2 forbids onSettled, onCleanup and other primitives. It is now created once when mutationObserver(...) is evaluated (the component body) and the ref callback only calls observe. It disconnects with the owner of that call, and one factory value can be used on several elements.

    createMutationObserver (and so mutationObserver) also mints a matching owner on the server, so the hydration ids of elements rendered after it stay aligned with the client.

@solid-primitives/pagination@1.0.1

Patch Changes

  • 6457c24: Fix the createInfiniteScroll loader throwing CLEANUP_IN_FORBIDDEN_SCOPE when used as a JSX ref callback (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).

    The loader called onCleanup inside the ref callback, which Solid 2 forbids. It now observes the element (unobserving a previous sentinel) and returns a teardown; observation is also torn down with the owner of createInfiniteScroll.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 71ebc017-c16b-4a52-9b58-14cdd29d7a6a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 61449b4 to e8bf11a Compare November 28, 2026 03:26
@davedbase
davedbase merged commit ee0e31a into main Nov 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant