v0.1.0
⚠️ Breaking change
useKV is no longer the default cache provider for your Nuxt project. This has become an opt-in feature.
📝 Release Notes
New storage utils
This release introduces many tools related to server-side storage and some quality of life changes.
In addition to useKV that was already available I've added:
useMemfor in-memory KV store, withttlsupport and useful metadata information.useFSto handle data on your filesystemuseS3to handle data on any S3 compatible stores
all of them come with optional support for zlib, to quickly compress and decompress data.
New cache configuration
Any of the server storage utils in this module can be used as cache adapters for your Nuxt project. This by default is disabled and you can enable it by simply configuring it via lab.cache in your nuxt.config.ts.
⚙️ Changes
🚀 Enhancements
- server:
⚠️ useMem(22b716c) useFS: New server util (f48c88f)⚠️ Improve storage namespacing (29a0eb7)- Improve module typing (75f2429)
useS3: New optional server util (7fa5a8a)useFS,useS3: Suffix zlib with.gzby default (28d8147)
🩹 Fixes
- Types (830a15c)
valibotdisabled by default (4c82ddc)useMem: Driver (de48690)- Non-conditional driver mounting (c480165)
useMem: Stop serializing/deserializing compressed data (6254e9d)
💅 Refactors
✅ Tests
- Update playground naming (2d894bc)
- Update playground naming" (ec0a717)
- Fix naming and cleanup (663abea)
- Make sure to clear storages as last test (376555f)
⚠️ Breaking Changes
❤️ Contributors
- Sandro Circi (@sandros94)