unstale

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

@unstale/cli on npm

@solid-primitives/storage 58 changes

Breaking changes 2

  • The setter is simplified and adapted for Solid 2.0, with simpler types using function overloads.

    5.0.0release notes

  • With asynchronous storages, getItem and key use the first storage in order that returns a value; rejecting storages are skipped unless no storage returns a value.

    5.0.0release notes

New APIs and options 3

  • The merge option 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.

    5.0.0release notes

  • Returns an explicit disposer as the fourth value to unsubscribe sync listeners and cancel pending initialization.

    5.0.0release notes

  • The sync API allows a URL to be specified.

    5.0.0release notes

Fixes and other changes 3

  • Writes made before deferred initialization are preserved.

    5.0.0release notes

  • A hydration mismatch is fixed.

    5.0.0release notes

  • Persists the value returned by the setter directly, avoiding stale data when signal writes remain pending until the next flush.

    5.0.0release notes

@solid-primitives/storage 44 changes

Breaking changes 1

New APIs and options 1

Behavior and default changes 1

  • Types and resource usage changed; the notes provide no further details.

    4.4.0release notes

Fixes and other changes 1

@solid-primitives/storage 34 changes

New APIs and options 3

Fixes and other changes 1

@solid-primitives/storage 22 changes

Deprecations 1

New APIs and options 1