diff --git a/.changeset/standard-schema-codec.md b/.changeset/standard-schema-codec.md deleted file mode 100644 index 7d3a9a1..0000000 --- a/.changeset/standard-schema-codec.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@stainless-code/persist": minor ---- - -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). diff --git a/CHANGELOG.md b/CHANGELOG.md index 75b8c9f..7f09bf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index f899fa1..cbb7f8a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/skills/tanstack-store/SKILL.md b/skills/tanstack-store/SKILL.md index 2a5810c..6b8ebaf 100644 --- a/skills/tanstack-store/SKILL.md +++ b/skills/tanstack-store/SKILL.md @@ -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