Version Packages (next) - #1006
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
Deploying solid-primitives with
|
| Latest commit: |
a065fe1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ac4bf903.solid-primitives.pages.dev |
| Branch Preview URL: | https://changeset-release-next.solid-primitives.pages.dev |
github-actions
Bot
force-pushed
the
changeset-release/next
branch
from
August 12, 2026 02:23
d2b623e to
a065fe1
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 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/sortable@1.0.0-next.0
Major Changes
a402fce: Initial release of
@solid-primitives/sortableReactive sorting primitives, combining ideas from VueUse's
useSortedand d3-array's comparatorutilities, built directly on Solid 2.0's
mapArrayandcreateProjectionrather than a bespokediffing engine.
ascending/descending/by/combine/reverseComparator building blocks.
ascending/descendingalways sortnull/undefined/NaNto theend, regardless of direction — unlike a naive
a < b ? -1 : a > b ? 1 : 0, which silently treatsthem as equal to everything.
byderives a comparator from a key accessor;combinecomposescomparators for multi-key tie-breaking;
reverseflips any comparator.makeSorted/createSortedNon-reactive and reactive sort.
createSorted's default path (a static comparator, non-dirty)delegates directly to
@solid-primitives/signal-builders's existingsort(). It adds a reactivecomparator (an accessor, so toggling sort direction/column doesn't rebuild the primitive) and a
dirty: trueoption that sorts the source array in place and reuses its reference — mirroringVueUse's
useSorted'sdirtyoption under Solid's signal model.sortedIndex/sortedIndexBy/insertSortedBinary search over an already-sorted array, and an O(log n) immutable insert — versus an
O(n log n) full re-sort for a single insertion.
createSortedIndexPer-item reactive rank tracking: an item's index accessor only updates when that item's position
actually changes, never for unrelated moves elsewhere in the list. Built on
mapArray— the samecore primitive that powers
<For>— rather than a hand-rolled diffing engine.createSortedProjectionA store-shaped sorted view, reconciled by key via
createProjection, so unrelated rows don'tnotify when one row's data changes. Pairs naturally with
<For each={projection} keyed={...}>formove-not-recreate DOM behavior with no bespoke tracking code.