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
7 changes: 0 additions & 7 deletions .changeset/standard-schema-codec.md

This file was deleted.

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

## 0.4.0

### Minor Changes

- [#36](https://github.com/stainless-code/persist/pull/36) [`4cc9ec6`](https://github.com/stainless-code/persist/commit/4cc9ec672e881f054ec2da04c3b76cbe6779d592) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Add `./codecs/standard-schema` — sync `~standard` codec, `PersistStorage` wraps (`withStandardSchema` / `withStandardSchemaAsync`), and JSON factories. Types vendored; no runtime peer. `createStorage` rethrows `PersistDecodeRethrowError` from decode (wrong-lane / programmer errors — not clearCorrupt).

Remove `./codecs/zod`. Migrate to `createStandardSchemaStorage(getStorage, schema)` (Zod ≥3.24 / v4 via `~standard`). Encode writes schema `value` (defaults/transforms). Yup / async `~standard.validate` → async lane (async hydrate — gate UI).

## 0.3.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.3.0",
"version": "0.4.0",
"description": "Hydration-aware persistence for any reactive store — zero-dep persistSource core; codecs, backends, cross-tab transport, source + framework hydration adapters ship as opt-in recipes",
"keywords": [
"alpine",
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.3.0"
library_version: "0.4.0"
framework: "tanstack-store"
sources:
- README.md
Expand Down