Skip to content

v0.1.0

Choose a tag to compare

@sandros94 sandros94 released this 04 Feb 15:17
· 79 commits to main since this release
014791d

⚠️ 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:

  • useMem for in-memory KV store, with ttl support and useful metadata information.
  • useFS to handle data on your filesystem
  • useS3 to 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

compare 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 .gz by default (28d8147)

🩹 Fixes

  • Types (830a15c)
  • valibot disabled 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

  • server: ⚠️ useMem (22b716c)
  • ⚠️ Improve storage namespacing (29a0eb7)

❤️ Contributors