All notable changes to this project are documented on this page. This project adheres to Semantic Versioning.
A patch release focused on subpath exports and lifecycle cleanup.
useStorage in subpath entries: the React, Vue, Preact, Solid, Svelte, and Angular entries only exported useXxxStorage, so the documented import { useStorage } from 'ew-responsive-store/react' returned undefined. Both names are now available, and the old aliases still work.getSnapshot wrote to storage during render: version migration used to write back inside getSnapshot, violating the purity requirement of useSyncExternalStore. Migration results are now persisted on non-render paths such as subscribe, external changes, and setValue.console.error was still emitted when onError was configured: now only the callback runs."./package.json" to exports for tooling that reads the package manifest.retainStorageManager / releaseStorageManager. The registry decides whether to recycle based on the reference count and subscriber count, and defers removal to a microtask so React StrictMode's mount → unmount → remount does not drop an instance that is still in use.StorageService is providedIn: 'root', the caller component's DestroyRef is used; in Svelte, a recycled instance is re-acquired automatically on the next subscription.dedupe for duplicate installs, dynamic key cleanup, and a complete effectScope example for Vue usage outside setup.parse: 'auto', numbers and booleans are still written as JSON and may come back as strings; use the default json mode when strict types matter.A refactoring release focused on stability, predictability, and packaging.
immediate now defaults to false: the value is initialized from storage without an extra write on creation. Pass immediate: true explicitly if you want the initial value persisted immediately.ParseStrType.EVAL is deprecated: it relies on new Function, which throws under strict CSP (e.g. hardened Tauri / Electron). Use JSON or the new AUTO instead..cjs extension: main and every exports.require entry have been updated. Importing by package name or subpath is unaffected; only direct references to the old UMD filenames need updating.key and storage area shares one manager within a tab, so setValue syncs immediately.setValue(prev => next), matching the React useState updater pattern.parse mode: 'json' (default, strict JSON) and 'auto' (keeps legacy raw strings such as 'dark' and '1' readable).remove() / clear(): remove() deletes the current key and falls back to the initial value; clear() removes only keys owned by this library.version + migrate(oldValue, oldVersion) upgrades stored data on read and writes it back.serializer / deserializer for Date, Map, Set, etc. Returning null / undefined from serializer skips the write.equals(a, b) defaults to reference or JSON string comparison and skips writes and notifications when values are equal.memoryFallback (default true) switches to in-memory storage when storage is unavailable or a write fails; onError({ key, storage, operation, error }) makes logging and reporting easy.[value, setValue, { key, remove, clear, manager }]; the Svelte store adds remove / clear / destroy; Angular and Vanilla expose setValue / updateValue / reset / remove / clear.useSyncExternalStore, and getInitialSnapshot() returns the initial value during server rendering.StorageManager, getStorageManager, getRegisteredManagers, clearManagedStorage, clearStorageManagerRegistry, and related types.setItem failures in Safari private mode no longer break state updates.window during SSR no longer throws.storage events now handle clear() and version marker changes correctly.files whitelist so only dist and the READMEs are published.sideEffects: false; types is listed first in exports for better tree-shaking and type resolution.peerDependencies.react is now >=18.0.0, the self-dependency was removed, and the package has zero runtime dependencies.clear, and version migration.ew-responsive-store/react, /vue, /preact, /solid, /svelte, /angular, and /vanilla.useStorage function name.peerDependencies and are externalized from the bundle to keep the package small.useReactStorage from the legacy entry is replaced by useStorage imported from the React entry.useStorage built on Vue's reactivity system, making localStorage / sessionStorage data reactive.storage, deep, and immediate options.parseStr, isValidJSON, isStorageEnabled, and complete TypeScript types.Earlier
0.0.1-beta.0through0.0.1-beta.9were pre-release iterations that mainly introduced the ReactuseReactStoragehook, cross-tab synchronization, and type definitions, and are not listed individually.