Version Packages (next)#995
Merged
Merged
Conversation
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 next, this PR will be updated.
nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonnext.Releases
@solid-primitives/focus@1.0.0-next.2
Minor Changes
b7ef2f3: Add
createFocusRestore— saves the currently focused element while active and restores focus to it once deactivated, without trapping focus or managing tab order. For non-modal surfaces (Popover, Tooltip, Menu) that should return focus to their trigger on close but must not intercept Tab navigation while open; for modal dialogs needing both behaviors, usecreateFocusTrap's existingrestoreFocusoption instead.Also fixed a stale-closure race shared between
createFocusTrapand the newcreateFocusRestore: the restore target used to be read from a mutable outer variable inside a deferredafterPaintcallback, so a fast reactivate-before-restore-fires cycle could restore focus to the wrong element. Both primitives now share one internal helper that captures the target synchronously at deactivation time.Patch Changes
@solid-primitives/interaction@1.0.0-next.3
Minor Changes
b7ef2f3:
createHideOutside/ariaHideOutsidegain an opt-ininertoption — in addition toaria-hidden, also sets theinertattribute on hidden elements, ref-counted alongsidearia-hidden.aria-hiddenalone only affects the accessibility tree;inertadditionally removes hidden content from focus order, tab order, and pointer/text-selection interaction. Defaults tofalse(no behavior change for existing callers).Also hardened the module-scope ref-counting/observer-stack state (used internally by both the existing
aria-hiddentracking and the newinerttracking) against duplicate installed copies of this package, via the sameglobalRegistrypattern used in@solid-primitives/scroll.Patch Changes
@solid-primitives/utils@7.0.0-next.3
Minor Changes
globalRegistry(key, init)— returns a singleton value keyed bykeyonglobalThis(viaSymbol.for), shared across every copy of the calling module loaded in the same JS realm. Use it instead of a plain module-scopelet/constfor state (ref-counts, active-instance stacks) that must stay consistent even if the app's dependency graph ends up with more than one installed copy of a package.@solid-primitives/a11y@1.0.0-next.2
Patch Changes
createFormControl'sdatasetaccessor is now a plain getter instead of acreateMemo— no behavior or type change, but it removes an unnecessary render-body compute-form memo (memoizing a handful of cheap string/undefined fields buys nothing) that would otherwise consume a hydration id in every consuming app.@solid-primitives/controlled-props@1.0.0-next.2
Patch Changes
BoolProp,NumberProp,RangeProp, andStringPropare now typedVoidComponentinstead ofComponent, since none of them accept or render children. Type-only change, no behavior difference.@solid-primitives/intersection-observer@3.0.0-next.2
Patch Changes
isVisible()/createVisibilityObserver()'svisible()throwing a locally-definedNotReadyErrorlookalike class instead of the real one exported fromsolid-js. Because the local class wasn'tinstanceofthe realNotReadyError,<Loading>boundaries never actually caught it — despite the documented<Loading>integration, callingisVisible/visiblebefore the first observation would crash rendering instead of showing the Loading fallback.NotReadyErroris now imported and re-exported fromsolid-jsdirectly, so<Loading>(and anyinstanceofcheck) works as documented.@solid-primitives/notification@1.0.0-next.2
Patch Changes
createNotificationPermission'srequestPermissionnow callsaffects(permission), soisPending(permission)readstruefor the duration of the request — the standard Solid 2.0 idiom for callers who don't want the existing bespokependingaccessor, which is unchanged and kept for backward compatibility.@solid-primitives/scroll@3.0.0-next.2
Patch Changes
createPreventScroll's active-instance stack and body-style ref-counts now live in aglobalRegistry(keyed onglobalThis, not module-scope bindings), so they stay correct even if the app's dependency graph ends up with more than one copy of this package installed — module-scope state would otherwise be split across copies, breaking the "topmost instance" ref-counting. Also replaced a hand-rolledcontains()helper with the equivalent one already exported from@solid-primitives/utils. No API changes.@solid-primitives/spring@1.0.0-next.2
Patch Changes