Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/hot-badgers-run.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @stainless-code/persist

## 0.1.1

### Patch Changes

- [#4](https://github.com/stainless-code/persist/pull/4) [`efc5614`](https://github.com/stainless-code/persist/commit/efc5614799cd26c7e81b8a679d13f058deadd475) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - `createStorage` now shape-checks the resolved backend and treats one missing `getItem`/`setItem`/`removeItem` as unavailable. Fixes the Node 22+ SSR crash where `localStorage` exists as an object (so the availability lookup doesn't throw) but its methods are `undefined` without a valid `--localstorage-file` path — previously this passed availability and threw `storage.getItem is not a function` inside `hydrate`; now `persistSource`/`persistStore`/`persistAtom` collapse to the no-op `PersistApi`.

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stainless-code/persist",
"version": "0.1.0",
"version": "0.1.1",
"description": "Hydration-aware persistence middleware for reactive stores (storage × codec seams, TanStack Store adapters, React hydration hook)",
"keywords": [
"hydration",
Expand Down
2 changes: 1 addition & 1 deletion skills/tanstack-store/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Persist a @tanstack/store Store or writable Atom with @stainless-co
license: MIT
metadata:
library: "@stainless-code/persist"
library_version: "0.1.0"
library_version: "0.1.1"
framework: "tanstack-store"
sources:
- README.md
Expand Down