Repository navigation
Version Packages - #1146
Merged
Merged
Version Packages#1146
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 28, 2026 03:26
61449b4 to
e8bf11a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
createCopyToClipboard: copy with a transient, auto-resettingcopied/errorstatus (copy-button helper).@solid-primitives/dismissable@0.1.0
Minor Changes
0e88ead: New package:
@solid-primitives/dismissableDismissable layers with a shared layer stack.
makeDismissableLayer/createDismissableLayerhandle Escape, outside pointer presses and outside focus (reusingmakeInteractOutsidefrom@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. Supportsdismissible+onDismissAttempt,exclude,persistentlayers,parentregistration for portaled children anddisableOutsidePointerEvents.getLayerStack,useLayerStack,getTopLayerandisTopLayerexpose the stack.An outside press and the focus move it causes are one interaction (no double
onDismiss/onDismissAttemptfor 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
@solid-primitives/floating@0.1.0
Minor Changes
@solid-primitives/floating:computePositionandcomputePositionFromRects(placement, offset, flip, shift, size, arrow, RTL, boundaries),makeAutoUpdate, the reactivecreateFloating, and size CSS variable helpers.computePositionhandles transformed containing blocks forstrategy: "fixed"and scaled offset parents. Containing-block detection coversoffset-path,content-visibility,transform-style: preserve-3dand exactwill-changetokens (filteris ignored onhtml), a positionedhtmlis 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
makeRovingScope/createRovingScope(roving tabindex for container items with orientation, loop, RTL, disabled skipping, MutationObserver tracking, remembered active item and independent nested scopes) andmakePressKeepsFocus/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
makeInertOthersandcreateInertOthers: mark every subtree outside one or more modal layer elements asaria-hiddenand/orinert, with restoration of previous attribute values, ref-counted stacking of layers, anignorelist, live-region protection and aMutationObserverthat also covers nodes added later. Their shared state lives onglobalThis, 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, andcreateInertOtherskeeps its stack position when its inputs change (stacking order is opening order: re-enabling a layer puts it on top).aria-hiddenis 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.ariaHideOutsideandcreateHideOutsideare unchanged.makeInteractOutside(andcreateInteractOutside/interactOutside) no longer leave a touch press armed after it turns into a scroll or drag: the pending touch is dropped onpointercancel/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
createShortcutsandmakeShortcutRegistry: register many keyboard shortcuts through a single keydown/keyup listener pair, with dynamic registration, per-shortcutenabled/ignoreInputs/requireReset/preventDefault, an optional scope element, and a deterministic conflict policy (most recently registered eligible shortcut wins).createShortcutis 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 inuseKeyDownList,createShortcutand the registry. A scoped registry now also tracks key releases onwindowand resets when focus leaves the scope, so Tab moving focus out no longer leaves a stuck key. A scope that is not an ancestor ofwindowin the event path (a bareEventTarget) also listens for keyup on itself, so its releases are seen too.Key releases are now always tracked on
windowin the capture phase inuseKeyDownList,createShortcutand the registry, so an app handler callingstopPropagation()on keyup no longer leaves keys stuck.CapsLock,NumLockandScrollLockare ignored (macOS sends only one of keydown/keyup for CapsLock, which broke every shortcut afterwards).ignoreWithinInputs/ignoreInputsnow 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 arequireResetshortcut could fire again before every key was released, anduseKeyDownListbriefly omitted the held modifier.Behavior change:
ignoreWithinInputs(createShortcut) andignoreInputs(registry) no longer suppress shortcuts while an<input>whose type never accepts typed characters has focus:checkbox,button,submit,resetandimage(case-insensitive). Previously every<input>was treated as editable. Text-like inputs,radio,range,file,color,textarea,selectandcontenteditableare still ignored, since they consume typed characters or keys such as arrows.Keys whose
event.codeis 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 inuseKeyDownList,createShortcutor the registry; they are tracked byevent.keyinstead. 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:makePostMessageandcreatePostMessagefor window, iframe andMessagePortmessaging withallowedOrigins, explicittargetOrigin, source filtering, type-narrowing validators and namespaced channels.Target detection is cross-origin safe: a
Windowis recognised first via the cross-origin-accessiblewindowproperty, soiframe.contentWindow,window.openerandwindow.parentof another origin work without throwing aSecurityError.@solid-primitives/presence@1.1.0
Minor Changes
animations: truewaits forelement.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 orgetAnimationsis unavailable. The element comes from the newelementoption or the returnedref. Also returnsattrs()withdata-starting-style/data-ending-stylefor styling hooks. Fully backward compatible.@solid-primitives/resize-observer@4.1.0
Minor Changes
getVisualViewport,makeVisualViewportListener,createVisualViewportanduseVisualViewportfor trackingwindow.visualViewport(size, offsets, pinch-zoom scale) with awindow.innerWidth/innerHeightfallback and SSR/hydration-safe defaults.@solid-primitives/scroll@3.1.0
Minor Changes
requestAnimationFramethrottling:createScrollPosition(target, { throttle: "raf" }), a non-reactivemakeScrollPositionListener, anduseWindowScrollPositionRaf. Default behavior is unchanged.@solid-primitives/timer@1.5.0
Minor Changes
makePausableTimerandcreatePausableTimer: one-shot timeouts that track remaining time across pause/resume, with a reactive delay, signal accessors (remaining,isActive,isPaused) and an opt-inpauseWhenHiddenoption.@solid-primitives/virtual@1.1.0
Minor Changes
rowHeightcan now be a(index) => numberfunction, and an opt-in measured mode (estimatedRowHeightplusmeasureElement, usingResizeObserver) records real heights.createVirtualListreturns a thirdhelperstuple element (getRowOffset,getRowHeight,measureElement,unmeasureElement,resetMeasurements,scrollToIndex) and the state gainsoffsets. The fixed-height path is unchanged.@solid-primitives/active-element@3.0.1
Patch Changes
6457c24: Fix
focus()throwingCLEANUP_IN_FORBIDDEN_SCOPEwhen used as a JSXrefcallback (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).Solid 2 forbids
onCleanupin arefcallback, andfocus()registered its listeners withmakeEventListener, which calls it. The callback now uses plainaddEventListenerand returns its teardown. Each element keeps its own teardown, so onefocus()value works on several elements, and all of them are also removed with the owner of thefocus()call because the runtime ignores a ref callback's return value.@solid-primitives/cursor@1.0.1
Patch Changes
6457c24: Fix
cursorRefthrowingPRIMITIVE_IN_EFFECT_CALLBACKwhen used as a JSXrefcallback (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).Solid 2 forbids creating effects inside a
refcallback, andcursorRefcreated one there viacreateElementCursor. The effect is now created whencursorRef(...)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 onecursorRefvalue can be attached to several elements.cursorRefalso 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.refandform.bind()throwingCLEANUP_IN_FORBIDDEN_SCOPE(andPRIMITIVE_IN_EFFECT_CALLBACK) when used as JSXrefcallbacks (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).Solid 2 runs a
refcallback in a restricted context whereonCleanupand creating roots, memos or effects are forbidden.refandbindregistered their listeners withmakeEventListener(which callsonCleanup) andbindcreated 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
addEventListenercalls inside the ref callback, which still returns its cleanup. The field → DOM sync effect is created whenform.bind("name")is evaluated (the component body), and the listeners are also torn down with the owner ofcreateForm/bind(), because the runtime ignores a ref callback's return value. The unused@solid-primitives/event-listenerdependency 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
onElementConnectthrowingCLEANUP_IN_FORBIDDEN_SCOPEinside arefcallback (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143). It no longer callsonCleanupand now returns a disposer. AddcreateConnectRefforrefusage that also cleans up with the owner.@solid-primitives/mediastream@1.0.1
Patch Changes
6457c24: Fix the README
createStreamandcreateScreenexamples, which created an effect inside a JSXrefcallback and threwPRIMITIVE_IN_EFFECT_CALLBACKin Solid 2 (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143). They now keep the element in a signal viaref={setVideo}and assignsrcObjectfrom 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) andcreateScreennow starts from a click, sincegetDisplayMediarequires 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)throwingPRIMITIVE_IN_EFFECT_CALLBACKwhen used as a JSXref(@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).The observer was created inside the ref callback, where Solid 2 forbids
onSettled,onCleanupand other primitives. It is now created once whenmutationObserver(...)is evaluated (the component body) and the ref callback only callsobserve. It disconnects with the owner of that call, and one factory value can be used on several elements.createMutationObserver(and somutationObserver) 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
createInfiniteScrollloader throwingCLEANUP_IN_FORBIDDEN_SCOPEwhen used as a JSXrefcallback (@solid-primitives/form CLEANUP_IN_FORBIDDEN_SCOPE #1143).The loader called
onCleanupinside 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 ofcreateInfiniteScroll.