# What changed in @solid-primitives/storage

> 18 changes in @solid-primitives/storage 2 to 5 from its official release notes, upgrade guides and advisories: 3 breaking, 1 deprecations, 8 new APIs and options. Each one cited. Sources checked 2026-11-26. HTML: https://unstale.sh/npm/@solid-primitives/storage/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @solid-primitives/storage 5

### Breaking changes

- The setter is simplified and adapted for Solid 2.0, with simpler types using function overloads. (5.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%405.0.0)
- 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.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%405.0.0)

### New APIs and options

- 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.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%405.0.0)
- Returns an explicit disposer as the fourth value to unsubscribe sync listeners and cancel pending initialization. (5.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%405.0.0)
- The sync API allows a URL to be specified. (5.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%405.0.0)

### Fixes and other changes

- Writes made before deferred initialization are preserved. (5.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%405.0.0)
- A hydration mismatch is fixed. (5.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%405.0.0)
- Persists the value returned by the setter directly, avoiding stale data when signal writes remain pending until the next flush. (5.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%405.0.0)

## @solid-primitives/storage 4

### Breaking changes

- Deprecated storage primitives were removed. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%404.0.0)

### New APIs and options

- Added makeObjectStorage. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%404.0.0)

### Behavior and default changes

- Types and resource usage changed; the notes provide no further details. (4.4.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%404.4.0)

### Fixes and other changes

- Storage types were simplified. (4.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%404.0.0)

## @solid-primitives/storage 3

### New APIs and options

- Multiplexing was added. (3.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%403.0.0)
- A new synchronous API was added. (3.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%403.0.0)
- withOptions was added. (3.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%403.0.0)

### Fixes and other changes

- Fixes were made to cookieStorage. (3.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%403.0.0)

## @solid-primitives/storage 2

### Deprecations

- The old API was deprecated. (2.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%402.0.0)

### New APIs and options

- A new makePersisted primitive was added. (2.0.0) — [release notes](https://github.com/solidjs-community/solid-primitives/releases/tag/%40solid-primitives/storage%402.0.0)
