npm / @solid-primitives/storage
@solid-primitives/storage
What changed in @solid-primitives/storage 2 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-26.
3 breaking1 deprecations8 new APIs and options1 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@solid-primitives/storage 58 changes
Breaking changes 2
The setter is simplified and adapted for Solid 2.0, with simpler types using function overloads.
With asynchronous storages,
getItemandkeyuse the first storage in order that returns a value; rejecting storages are skipped unless no storage returns a value.
New APIs and options 3
The
mergeoption applies stored data on top of the initial value, preserving defaults for keys added after older data was persisted. It supports deep-merging plain objects or a custom merge function.Returns an explicit disposer as the fourth value to unsubscribe sync listeners and cancel pending initialization.
The sync API allows a URL to be specified.
Fixes and other changes 3
Writes made before deferred initialization are preserved.
A hydration mismatch is fixed.
Persists the value returned by the setter directly, avoiding stale data when signal writes remain pending until the next flush.
@solid-primitives/storage 44 changes
Breaking changes 1
Deprecated storage primitives were removed.
New APIs and options 1
Added makeObjectStorage.
Behavior and default changes 1
Types and resource usage changed; the notes provide no further details.
Fixes and other changes 1
Storage types were simplified.
@solid-primitives/storage 34 changes
New APIs and options 3
Multiplexing was added.
A new synchronous API was added.
withOptions was added.
Fixes and other changes 1
Fixes were made to cookieStorage.
@solid-primitives/storage 22 changes
Deprecations 1
The old API was deprecated.
New APIs and options 1
A new makePersisted primitive was added.