Skip to content

Releases: unjs/unstorage

v1.14.1

19 Dec 21:11
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • types: Fallback to StorageValue for un-typed stores (#532)

📖 Documentation

  • Add driver name to each usage section (#533)

📦 Build

  • Fix netlify options type (756fee4)

❤️ Contributors

v1.14.0

19 Dec 00:35
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🌟 New drivers

🚀 Enhancements

  • cloudflare-r2-binding: Allow specify raw type (#519)
  • indexedb: Support raw storage (#520)
  • Typed storage Interface (#509)
  • Support raw conversion in runtimes without Buffer support (#364)

🩹 Fixes

  • cloudflare-r2-binding: Return null for non existing getItem (fb8e00e)
  • upstash: Drop base prefix from keyKeys (8711a94)
  • Capture stacktrace of thrown errors (c704fef)
  • http: Return arrayBuffer for getItemRaw (#527)
  • localstorage: Use base for clear and getKeys (#529)

💅 Refactors

  • More strict type checks (c8ed5cf)
  • cloudflare-kv-http: Use new bulk delete api for clear() (0231775)
  • Reuse localstorage logic for session-storage (#530)

📖 Documentation

  • Add notes about nightly channel (de31652)
  • netlify: Add consistency option (#525)
  • cloudflare: Add note about r2 over http (1f2d444)

📦 Build

  • Update unbuild to v3 (1528c3c)
  • Generate drivers meta (#526)

✅ Tests

  • cloudflare: Use wrangler dev proxy (#518)
  • Enable cloudflare-r2-binding tests (0c4d9fd)
  • upstash, vercel-blob: Use random base (65a10cc)
  • cloudflare-kv-http: Use sandbox tests (8043897)

❤️ Contributors

v1.13.1

01 Nov 13:14
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Revert chokidar to v3 (#502)

v1.13.0

31 Oct 15:52
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Bump chokidar v4 (#489)
  • Add null driver (#495)

🩹 Fixes

  • cloudflare-kv: Use min TTL of 60 seconds (#496)

💅 Refactors

  • netlify: Support @netlify/blobs v8 and improve options types (#486)
  • cli: Migrate to citty (#498)

📖 Documentation

  • Missing values return null (#487)

❤️ Contributors

v1.12.0

06 Sep 13:39
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • http, server: Support native ttl (#479)

v1.11.1

04 Sep 14:15
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🔥 Performance

  • cloudflare-kv-binding: Add missing base argument on getKeys (#475)

❤️ Contributors

v1.11.0

04 Sep 10:35
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Add keys, get, set, has and del aliases (#402)
  • Expose underlying client instance with driver.getInstance() (#446)
  • cloudflare-kv-binding: Support ttl for setItem (#470)
  • cloudflare-kv-http: Support ttl for setItem (#448)

🔥 Performance

  • getKeys: Avoid duplicate iteration (#386)
  • Use direct array access instead of endsWIth (#387)

🩹 Fixes

  • cloudflare-kv-binding: Allow passing transaction options for setItem to binding.put (#423)
  • Fix driver types (#433)
  • server: Avoid decoding raw request body (#434)
  • cloudflare-kv-binding: Go through all pages to list the keys (#459)

📖 Documentation

  • Using undocs package manager component (#414)
  • Fix link (#429)
  • Fix typographical errors (#432)
  • Jsdocs for the server functions (#438)
  • Improve drivers (f6f547e)

❤️ Contributors

v1.10.2

14 Mar 12:17
@pi0 pi0
Compare
Choose a tag to compare

compare changes

Important

Redis: ioredis is an optional dependency. Please make sure to install it in your project.

Important

Netlify Blobs: There has been a change in the way global blob stores are stored in @netlify/blobs version 7.0.0 which means that you will not be able to access objects in global stores created by older versions until you migrate them. Please follow migration steps in the docs.

🩹 Fixes

  • http, server: Handle missing resources with http 404 (#367)
  • pkg: Make ioredis dependency optional (#410)
  • vercel-kv: Add missing driver name (#355)
  • setItems: Call driver native setItems only to avoid duplicate write (#392)
  • Fix getItems, setItems generic types (#395)

💅 Refactors

  • cloudflare-kv, cloudflare-r2: Move getBindings to utils and add default BUCKET for r2 (#292)
  • netlify-blobs: Update to v7 (#407)

📖 Documentation

  • planetscale: Correct table option name (#359)
  • vercel-kv: Fix typo (#362)
  • Improvements (a64e941)
  • Fix links and add redirects (166498f)
  • Fix typo in http-server (#385)

✅ Tests

  • http: Add tests for null value (#365)

❤️ Contributors

v1.10.1

15 Nov 00:43
@pi0 pi0
Compare
Choose a tag to compare

compare changes

📦 Build

  • Update mkdist for cjs dist hotfix (cae8533)

❤️ Contributors

  • Pooya Parsa (@pi0)

v1.10.0

14 Nov 17:42
@pi0 pi0
df064af
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

🩹 Fixes

  • server: Read body as string (dfda25f)
  • azure-key-vault-driver: Fix character encoding (#308)
  • lru-cache, memory, mongodb, redis: Return falsy values when set in storage (#320)

📖 Documentation

  • Fix memory driver description (#286)
  • fs: Fix typo (#290)
  • Fix typo in getMount usage (#297)
  • Update deps (#310)
  • indexedb: Fix typo in import (#327)

🤖 CI

  • Test against Node.js 18 (ad09e94)

❤️ Contributors