You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(storage): add custom serializer hook for BaseStorageManager (#58)
## Summary
- Add configurable `serializer`/`deserializer` options to
`StorageConfig` (defaults to `JSON.stringify`/`JSON.parse` for backwards
compatibility)
- Replace hardcoded JSON calls in `BaseStorageManager` and
`StorageManager` with config hooks
- Add `withSerializer()` fluent method to `StorageConfig`
Closes#6
## Test plan
- [x] Default behavior unchanged (JSON.stringify/JSON.parse)
- [x] Custom serializer/deserializer roundtrip via set/get
- [x] Custom serializer works with entries() and getResult()
- [x] Date revival with custom deserializer reviver
- [x] Fluent chain preserves serializer through all with* methods
- [x] 100% line coverage maintained
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments