From 4823bd5c2fc4604bf74d4dae2c17847fd2b446c9 Mon Sep 17 00:00:00 2001 From: "@solaris" Date: Mon, 20 May 2024 16:13:10 +0300 Subject: [PATCH 1/6] add setItems for cloudflare-kv-http --- src/drivers/cloudflare-kv-http.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/drivers/cloudflare-kv-http.ts b/src/drivers/cloudflare-kv-http.ts index 7a54414b..baade43d 100644 --- a/src/drivers/cloudflare-kv-http.ts +++ b/src/drivers/cloudflare-kv-http.ts @@ -39,6 +39,12 @@ interface KVAuthEmailKey { apiKey: string; } +interface KVItem { + key: string; + value: string; + ttl?: number; +} + export type KVHTTPOptions = { /** * Cloudflare account ID (required) @@ -144,6 +150,13 @@ export default defineDriver((opts) => { return await kvFetch(`/values/${r(key)}`, { method: "PUT", body: value }); }; + const setItems = async (items: KVItem[])=> { + return kvFetch("/bulk", { + method: "PUT", + body: items, + }); + } + const removeItem = async (key: string) => { return await kvFetch(`/values/${r(key)}`, { method: "DELETE" }); }; @@ -209,6 +222,7 @@ export default defineDriver((opts) => { hasItem, getItem, setItem, + setItems, removeItem, getKeys: (base?: string) => getKeys(base).then((keys) => From 3a1aecad0982757cd730f3d272404b3cd5a4fef1 Mon Sep 17 00:00:00 2001 From: "@solaris" Date: Mon, 20 May 2024 17:02:48 +0300 Subject: [PATCH 2/6] add ttl to set item --- src/drivers/cloudflare-kv-http.ts | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/drivers/cloudflare-kv-http.ts b/src/drivers/cloudflare-kv-http.ts index baade43d..cdfdc813 100644 --- a/src/drivers/cloudflare-kv-http.ts +++ b/src/drivers/cloudflare-kv-http.ts @@ -39,12 +39,6 @@ interface KVAuthEmailKey { apiKey: string; } -interface KVItem { - key: string; - value: string; - ttl?: number; -} - export type KVHTTPOptions = { /** * Cloudflare account ID (required) @@ -146,16 +140,13 @@ export default defineDriver((opts) => { } }; - const setItem = async (key: string, value: any) => { - return await kvFetch(`/values/${r(key)}`, { method: "PUT", body: value }); - }; - - const setItems = async (items: KVItem[])=> { - return kvFetch("/bulk", { + const setItem = async (key: string, value: any, opt: any) => { + return await kvFetch(`/values/${r(key)}`, { method: "PUT", - body: items, + body: value, + query: opt?.ttl ? { expiration_ttl: opt?.ttl } : {} }); - } + }; const removeItem = async (key: string) => { return await kvFetch(`/values/${r(key)}`, { method: "DELETE" }); @@ -222,7 +213,6 @@ export default defineDriver((opts) => { hasItem, getItem, setItem, - setItems, removeItem, getKeys: (base?: string) => getKeys(base).then((keys) => From 9a179d708fd3faee2fc6fec745c254dc143e5a2d Mon Sep 17 00:00:00 2001 From: "@solaris" Date: Mon, 20 May 2024 18:04:57 +0300 Subject: [PATCH 3/6] update readme --- docs/2.drivers/cloudflare.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/2.drivers/cloudflare.md b/docs/2.drivers/cloudflare.md index b8229cb3..f1e53846 100644 --- a/docs/2.drivers/cloudflare.md +++ b/docs/2.drivers/cloudflare.md @@ -106,6 +106,10 @@ const storage = createStorage({ - `apiURL`: Custom API URL. Default is `https://api.cloudflare.com`. - `base`: Adds prefix to all stored keys +**Transaction options:** + +- `ttl`: Supported for `setItem(key, value, { ttl: number /* seconds min 60 */ })` + **Supported methods:** - `getItem`: Maps to [Read key-value pair](https://api.cloudflare.com/#workers-kv-namespace-read-key-value-pair) `GET accounts/:account_identifier/storage/kv/namespaces/:namespace_identifier/values/:key_name` From 60b91cf7bb9a75460335c2402c65bc05c3f5d57c Mon Sep 17 00:00:00 2001 From: "@solaris" Date: Tue, 21 May 2024 13:00:36 +0300 Subject: [PATCH 4/6] fix styles --- src/drivers/cloudflare-kv-http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/cloudflare-kv-http.ts b/src/drivers/cloudflare-kv-http.ts index cdfdc813..37763343 100644 --- a/src/drivers/cloudflare-kv-http.ts +++ b/src/drivers/cloudflare-kv-http.ts @@ -144,7 +144,7 @@ export default defineDriver((opts) => { return await kvFetch(`/values/${r(key)}`, { method: "PUT", body: value, - query: opt?.ttl ? { expiration_ttl: opt?.ttl } : {} + query: opt?.ttl ? { expiration_ttl: opt?.ttl } : {}, }); }; From 9e20917e7d3b96dec465e9dae7041a67a9c80e4b Mon Sep 17 00:00:00 2001 From: "@solaris" Date: Tue, 21 May 2024 14:13:59 +0300 Subject: [PATCH 5/6] chore(release): v2.0.0 --- CHANGELOG.md | 463 +++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 9 +- 2 files changed, 468 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 532f0757..968fbc36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,469 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## v2.0.0 + + +### 🚀 Enhancements + +- Data serialization ([3e96b26](https://github.com/unjs/unstorage/commit/3e96b26)) +- State hydration ([4253c52](https://github.com/unjs/unstorage/commit/4253c52)) +- Support base for getKeys and clear ([d278fab](https://github.com/unjs/unstorage/commit/d278fab)) +- Snapshot ([7052380](https://github.com/unjs/unstorage/commit/7052380)) +- Mount improvements and unmount ([7dd731b](https://github.com/unjs/unstorage/commit/7dd731b)) +- Watcher ([ebcf1f1](https://github.com/unjs/unstorage/commit/ebcf1f1)) +- Support base for drivers ([6844cd1](https://github.com/unjs/unstorage/commit/6844cd1)) +- Http driver ([438db64](https://github.com/unjs/unstorage/commit/438db64)) +- Support storage server ([5240591](https://github.com/unjs/unstorage/commit/5240591)) +- Support more http methods ([45d4771](https://github.com/unjs/unstorage/commit/45d4771)) +- **server:** Returns keys on get if val not found ([79fd997](https://github.com/unjs/unstorage/commit/79fd997)) +- Unstorage command for standalone server ([171eb37](https://github.com/unjs/unstorage/commit/171eb37)) +- ⚠️ Simplify mount usage ([3eccf84](https://github.com/unjs/unstorage/commit/3eccf84)) +- ⚠️ RestoreSnapshot ([6e75a61](https://github.com/unjs/unstorage/commit/6e75a61)) +- Allow passing default driver to factory fn ([bbca3c3](https://github.com/unjs/unstorage/commit/bbca3c3)) +- Redis driver ([7562af2](https://github.com/unjs/unstorage/commit/7562af2)) +- Meta support ([3a5d865](https://github.com/unjs/unstorage/commit/3a5d865)) +- Support readonly drivers without `setItem`, `removeItem` and `clear` ([22de631](https://github.com/unjs/unstorage/commit/22de631)) +- Namespaced storage (prefixStorage) ([d58beaa](https://github.com/unjs/unstorage/commit/d58beaa)) +- Allow driver getKey to receive base key ([#26](https://github.com/unjs/unstorage/pull/26)) +- **pkg:** ⚠️ Update depenencies and use explicit `cjs` extension ([477aa26](https://github.com/unjs/unstorage/commit/477aa26)) +- Create driver for Cloudflare KV store ([#30](https://github.com/unjs/unstorage/pull/30)) +- Overlay driver ([588881e](https://github.com/unjs/unstorage/commit/588881e)) +- Expose key utils `normalizeKey`, `joinKeys` and `normalizeBaseKey` ([be81fa8](https://github.com/unjs/unstorage/commit/be81fa8)) +- `github` driver ([#61](https://github.com/unjs/unstorage/pull/61)) +- `cloudflare-kv-http` driver ([#55](https://github.com/unjs/unstorage/pull/55)) +- Expose `builtinDrivers` ([be34d5e](https://github.com/unjs/unstorage/commit/be34d5e)) +- Export `BuiltinDriverName` type and kebab-case names ([f6a941c](https://github.com/unjs/unstorage/commit/f6a941c)) +- Add unwatch functions ([#82](https://github.com/unjs/unstorage/pull/82)) +- Serialize values implementing `toJSON()` ([#139](https://github.com/unjs/unstorage/pull/139)) +- Experimental raw data support ([#141](https://github.com/unjs/unstorage/pull/141)) +- **driver:** Add planetscale driver ([#140](https://github.com/unjs/unstorage/pull/140)) +- **fs:** Support `readOnly` and `noClear` options ([f2dddbd](https://github.com/unjs/unstorage/commit/f2dddbd)) +- **fs:** Support `birthtime` and `ctime` meta ([#136](https://github.com/unjs/unstorage/pull/136)) +- `lru-cache` driver ([#146](https://github.com/unjs/unstorage/pull/146)) +- `mongodb` driver ([#155](https://github.com/unjs/unstorage/pull/155)) +- `azure-storage-blob` driver ([#154](https://github.com/unjs/unstorage/pull/154)) +- `azure-cosmos` driver ([#158](https://github.com/unjs/unstorage/pull/158)) +- `azure-key-vault` driver ([#159](https://github.com/unjs/unstorage/pull/159)) +- `azure-app-configuration` driver ([#156](https://github.com/unjs/unstorage/pull/156)) +- `azure-storage-table` ([#148](https://github.com/unjs/unstorage/pull/148)) +- `getMount` and `getMounts` utils ([#167](https://github.com/unjs/unstorage/pull/167)) +- Allow passing transaction options to drivers ([#168](https://github.com/unjs/unstorage/pull/168)) +- **redis:** Support native `ttl` ([#169](https://github.com/unjs/unstorage/pull/169)) +- `http` and server improvements ([#170](https://github.com/unjs/unstorage/pull/170)) +- **server:** Support authorize ([#175](https://github.com/unjs/unstorage/pull/175)) +- **server:** Support `resolvePath` ([4717851](https://github.com/unjs/unstorage/commit/4717851)) +- **lru-cache:** Support size calculation ([#177](https://github.com/unjs/unstorage/pull/177)) +- Expose `name` and `options` from driver instances ([#178](https://github.com/unjs/unstorage/pull/178)) +- **http:** Support custom headers ([4fe7da7](https://github.com/unjs/unstorage/commit/4fe7da7)) +- **drivers:** Added session storage driver ([#179](https://github.com/unjs/unstorage/pull/179)) +- **lru-cache:** Upgrade to lru-cache v9 ([5b8fc62](https://github.com/unjs/unstorage/commit/5b8fc62)) +- Add `vercel-kv` driver ([#213](https://github.com/unjs/unstorage/pull/213)) +- Generic type support ([#237](https://github.com/unjs/unstorage/pull/237)) +- Experimental operation batching ([#240](https://github.com/unjs/unstorage/pull/240)) +- **cloudflare-kv:** Support `base` option for keys ([#261](https://github.com/unjs/unstorage/pull/261)) +- `cloudflare-r2-binding` driver ([#235](https://github.com/unjs/unstorage/pull/235)) +- Expose `BuiltinDriverOptions` type ([#273](https://github.com/unjs/unstorage/pull/273)) +- **vercel-kv:** Support `ttl` for `setItem` ([#269](https://github.com/unjs/unstorage/pull/269)) +- Add `indexedb` driver ([#221](https://github.com/unjs/unstorage/pull/221)) +- Add `capacitor-preferences` driver ([#283](https://github.com/unjs/unstorage/pull/283)) +- `fs-lite` driver ([#284](https://github.com/unjs/unstorage/pull/284)) +- Add `netlify-blobs` driver ([#337](https://github.com/unjs/unstorage/pull/337)) +- Add `keys`, `get`, `set`, `has` and `del` aliases ([#402](https://github.com/unjs/unstorage/pull/402)) +- Expose underlying client instance ([#446](https://github.com/unjs/unstorage/pull/446)) + +### 🔥 Performance + +- **getKeys:** Avoid duplicate iteration ([#386](https://github.com/unjs/unstorage/pull/386)) +- Use direct array access instead of `endsWIth` ([#387](https://github.com/unjs/unstorage/pull/387)) + +### 🩹 Fixes + +- **fs:** Safe readdir ([627cad3](https://github.com/unjs/unstorage/commit/627cad3)) +- Remove mountpoint prefix ([fd6b865](https://github.com/unjs/unstorage/commit/fd6b865)) +- Add mount prefix to watch key ([0bb634d](https://github.com/unjs/unstorage/commit/0bb634d)) +- Handle mountpoints qurty shorter than mountpoint ([9cc1904](https://github.com/unjs/unstorage/commit/9cc1904)) +- **http:** GetKeys await ([59b87c5](https://github.com/unjs/unstorage/commit/59b87c5)) +- **pkg:** Fix exports ([a846fc0](https://github.com/unjs/unstorage/commit/a846fc0)) +- Move defineDriver to driver/utils ([6ddaceb](https://github.com/unjs/unstorage/commit/6ddaceb)) +- **pkg:** Avoid extra index build ([5233de6](https://github.com/unjs/unstorage/commit/5233de6)) +- **fs-drivers:** Typo in error message ([0e7e063](https://github.com/unjs/unstorage/commit/0e7e063)) +- **fs:** Race condition for ensuredir ([437cc76](https://github.com/unjs/unstorage/commit/437cc76)) +- Fallback value for readdir ([ea7d73b](https://github.com/unjs/unstorage/commit/ea7d73b)) +- **http:** Use isolated utils ([fc4b23b](https://github.com/unjs/unstorage/commit/fc4b23b)) +- **pkg:** Use unbuild and fix drivers/* export ([251182b](https://github.com/unjs/unstorage/commit/251182b)) +- Update mkdist ([#5](https://github.com/unjs/unstorage/pull/5)) +- **pkg:** Update exports ([#6](https://github.com/unjs/unstorage/pull/6)) +- Omit meta keys for `getKeys` ([34dec7d](https://github.com/unjs/unstorage/commit/34dec7d)) +- **prefixStorage:** Handle when key is not provided ([#18](https://github.com/unjs/unstorage/pull/18)) +- **build:** Use cjs extension for drivers ([#29](https://github.com/unjs/unstorage/pull/29)) +- **prefixStorage:** Strip keys ([#34](https://github.com/unjs/unstorage/pull/34)) +- Handle mount overrides ([#45](https://github.com/unjs/unstorage/pull/45)) +- **cloudflare:** Add prefix key for cloudflare kv list operation ([#64](https://github.com/unjs/unstorage/pull/64)) +- **cloudflare:** Use `@cloudflare/workers-types` ([eeeac83](https://github.com/unjs/unstorage/commit/eeeac83)) +- Upgrade mkdist ([ad216c6](https://github.com/unjs/unstorage/commit/ad216c6)) +- Update builtinDrivers mapping ([ebf8d1b](https://github.com/unjs/unstorage/commit/ebf8d1b)) +- **redis:** Fix reference in `clear()` method ([#70](https://github.com/unjs/unstorage/pull/70)) +- **github:** Trim leading slash on `dir` prefix paths ([#74](https://github.com/unjs/unstorage/pull/74)) +- **fs:** Disallow keys containing `..` ([d628fab](https://github.com/unjs/unstorage/commit/d628fab)) +- **server:** Fix typo in 405 `statusMessage` ([#84](https://github.com/unjs/unstorage/pull/84)) +- **cloudflare-kv-http:** HasItem and getItem ([#81](https://github.com/unjs/unstorage/pull/81)) +- **cloudflare:** Pass params to kv request ([#138](https://github.com/unjs/unstorage/pull/138)) +- **planetscale:** Use `birthtime` for `created_at` value ([#144](https://github.com/unjs/unstorage/pull/144)) +- Update driver defenition types ([#143](https://github.com/unjs/unstorage/pull/143)) +- Allow stringify array ([#147](https://github.com/unjs/unstorage/pull/147)) +- Strip query param from keys ([cc3ebb7](https://github.com/unjs/unstorage/commit/cc3ebb7)) +- **redis:** Fix clear method ([#163](https://github.com/unjs/unstorage/pull/163)) +- **redis:** Remove strict options validation ([9294121](https://github.com/unjs/unstorage/commit/9294121)) +- **redis:** Respect both global and operation options for `ttl` ([a491333](https://github.com/unjs/unstorage/commit/a491333)) +- **pkg:** Move `types` field to the first ([f2b08f6](https://github.com/unjs/unstorage/commit/f2b08f6)) +- **pkg:** Export compat types for `/server` subpath ([3cc2c48](https://github.com/unjs/unstorage/commit/3cc2c48)) +- **lru-cache:** Use `max` instead of `maxSize` ([012fc62](https://github.com/unjs/unstorage/commit/012fc62)) +- **redis:** Remove trailing `:` from `base` ([82647e0](https://github.com/unjs/unstorage/commit/82647e0)) +- **pkg:** Use optional peer dependencies ([#183](https://github.com/unjs/unstorage/pull/183)) +- Removed duplicate line ([#190](https://github.com/unjs/unstorage/pull/190)) +- **planetscale:** Fix `hasItem` ([#200](https://github.com/unjs/unstorage/pull/200)) +- **github:** Optional properties ([#196](https://github.com/unjs/unstorage/pull/196)) +- **cloudflare:** Allow lazy access to env bindings ([#202](https://github.com/unjs/unstorage/pull/202)) +- **redis:** Support `getKeys` and `clear` with base ([#216](https://github.com/unjs/unstorage/pull/216)) +- **azure-cosmos:** Always cast `mtime` to `Date` ([129a935](https://github.com/unjs/unstorage/commit/129a935)) +- **prefixStorage:** Prefix `getItemRaw` and `setItemRaw` ([#232](https://github.com/unjs/unstorage/pull/232)) +- **github:** FetchFiles should return files ([#229](https://github.com/unjs/unstorage/pull/229)) +- Add missing `cloudflareR2Binding` to the `builtinDrivers` ([48d6842](https://github.com/unjs/unstorage/commit/48d6842)) +- **cloudflare-r2-binding:** Get binding for r2 `getMeta` ([#272](https://github.com/unjs/unstorage/pull/272)) +- **server:** Read body as string ([dfda25f](https://github.com/unjs/unstorage/commit/dfda25f)) +- **azure-key-vault-driver:** Fix character encoding ([#308](https://github.com/unjs/unstorage/pull/308)) +- **lru-cache, memory, mongodb, redis:** Return falsy values when set in storage ([#320](https://github.com/unjs/unstorage/pull/320)) +- **http, server:** Handle missing resources with http 404 ([#367](https://github.com/unjs/unstorage/pull/367)) +- **pkg:** Make `ioredis` dependency optional ([#410](https://github.com/unjs/unstorage/pull/410)) +- **vercel-kv:** Add missing driver name ([#355](https://github.com/unjs/unstorage/pull/355)) +- **setItems:** Call driver native `setItems` only to avoid duplicate write ([#392](https://github.com/unjs/unstorage/pull/392)) +- `getItems`, `setItems` types ([#395](https://github.com/unjs/unstorage/pull/395)) +- **cloudflare-kv-binding:** Allow passing transaction options for `setItem` to `binding.put` ([#423](https://github.com/unjs/unstorage/pull/423)) +- Fix driver types ([#433](https://github.com/unjs/unstorage/pull/433)) +- **server:** Avoid decoding raw request body ([#434](https://github.com/unjs/unstorage/pull/434)) + +### 💅 Refactors + +- NormalizeBase and more clear naming ([6e9af3e](https://github.com/unjs/unstorage/commit/6e9af3e)) +- DefineDriver ([6b4d7ac](https://github.com/unjs/unstorage/commit/6b4d7ac)) +- Remove duplicate unmount logic ([ebe8aa6](https://github.com/unjs/unstorage/commit/ebe8aa6)) +- Simplify types ([#57](https://github.com/unjs/unstorage/pull/57)) +- ⚠️ Rename `cloudflare-kv` to `cloudflare-kv-binding` ([e361f36](https://github.com/unjs/unstorage/commit/e361f36)) +- Update repository ([ae352da](https://github.com/unjs/unstorage/commit/ae352da)) +- Use type import for node builtin ([#133](https://github.com/unjs/unstorage/pull/133)) +- **redis:** Driver improvements ([#160](https://github.com/unjs/unstorage/pull/160)) +- Use shared util for driver errors ([5ecca54](https://github.com/unjs/unstorage/commit/5ecca54)) +- Remove unused variable ([97d3e3e](https://github.com/unjs/unstorage/commit/97d3e3e)) +- Fix issues with typescript strict ([#250](https://github.com/unjs/unstorage/pull/250)) +- Fix typo in `removeMeta` option for `removeItem` ([#281](https://github.com/unjs/unstorage/pull/281)) +- **cloudflare-kv, cloudflare-r2:** Move `getBindings` to utils and add default `BUCKET` for r2 ([#292](https://github.com/unjs/unstorage/pull/292)) +- **netlify-blobs:** Update to v7 ([#407](https://github.com/unjs/unstorage/pull/407)) + +### 📖 Documentation + +- Add watch ([0d5fa49](https://github.com/unjs/unstorage/commit/0d5fa49)) +- Add custom drivers section ([4e586f7](https://github.com/unjs/unstorage/commit/4e586f7)) +- Typo in package name ([#1](https://github.com/unjs/unstorage/pull/1)) +- Update overlay ([#48](https://github.com/unjs/unstorage/pull/48)) +- Fix typo ([#60](https://github.com/unjs/unstorage/pull/60)) +- Fix `storageServer.handle` example ([#83](https://github.com/unjs/unstorage/pull/83)) +- Fix readme typo ([#134](https://github.com/unjs/unstorage/pull/134)) +- Add experimental link for raw support ([98a6466](https://github.com/unjs/unstorage/commit/98a6466)) +- Start splitting docs ([6bca2a8](https://github.com/unjs/unstorage/commit/6bca2a8)) +- Add docs website ([#166](https://github.com/unjs/unstorage/pull/166)) +- Update snapshots page ([4619326](https://github.com/unjs/unstorage/commit/4619326)) +- Improvements on http server ([a4b8fb8](https://github.com/unjs/unstorage/commit/a4b8fb8)) +- Fix 404 links in readme ([4a63a54](https://github.com/unjs/unstorage/commit/4a63a54)) +- Upgrade docus ([cf48620](https://github.com/unjs/unstorage/commit/cf48620)) +- Fix typo ([#201](https://github.com/unjs/unstorage/pull/201)) +- **vercel-kv:** Add beta notice ([7a75f5f](https://github.com/unjs/unstorage/commit/7a75f5f)) +- Add social share image ([97b8a87](https://github.com/unjs/unstorage/commit/97b8a87)) +- Fix typo ([#239](https://github.com/unjs/unstorage/pull/239)) +- Fix typo ([#252](https://github.com/unjs/unstorage/pull/252)) +- Upgrade Docus ([cc9cb6e](https://github.com/unjs/unstorage/commit/cc9cb6e)) +- Fix 404 link ([1e37246](https://github.com/unjs/unstorage/commit/1e37246)) +- Update ([b43e0d4](https://github.com/unjs/unstorage/commit/b43e0d4)) +- Typo for the option dir in github driver ([#278](https://github.com/unjs/unstorage/pull/278)) +- Fix memory driver description ([#286](https://github.com/unjs/unstorage/pull/286)) +- **fs:** Fix typo ([#290](https://github.com/unjs/unstorage/pull/290)) +- Fix typo in `getMount` usage ([#297](https://github.com/unjs/unstorage/pull/297)) +- Update deps ([#310](https://github.com/unjs/unstorage/pull/310)) +- **indexedb:** Fix typo in import ([#327](https://github.com/unjs/unstorage/pull/327)) +- **planetscale:** Correct `table` option name ([#359](https://github.com/unjs/unstorage/pull/359)) +- **vercel-kv:** Fix typo ([#362](https://github.com/unjs/unstorage/pull/362)) +- Refactor with `unjs-docs` and nuxt ui pro ([#374](https://github.com/unjs/unstorage/pull/374)) +- Improvements ([a64e941](https://github.com/unjs/unstorage/commit/a64e941)) +- Fix links and add redirects ([166498f](https://github.com/unjs/unstorage/commit/166498f)) +- Update unjs-docs version and add redirects ([f2a408d](https://github.com/unjs/unstorage/commit/f2a408d)) +- Fix typo in http-server ([#385](https://github.com/unjs/unstorage/pull/385)) +- Update deps ([bfbf423](https://github.com/unjs/unstorage/commit/bfbf423)) +- Update link ([#408](https://github.com/unjs/unstorage/pull/408)) +- Using undocs package manager component ([#414](https://github.com/unjs/unstorage/pull/414)) +- Fix link ([#429](https://github.com/unjs/unstorage/pull/429)) +- Fix typographical errors ([#432](https://github.com/unjs/unstorage/pull/432)) +- Jsdocs for the server functions ([#438](https://github.com/unjs/unstorage/pull/438)) + +### 📦 Build + +- ⚠️ Use `./dist` for all subpath exports ([4f2a211](https://github.com/unjs/unstorage/commit/4f2a211)) +- Provide backwards-compatible type entries ([#132](https://github.com/unjs/unstorage/pull/132)) +- Fix output drivers to top level drivers ([ff3959c](https://github.com/unjs/unstorage/commit/ff3959c)) +- Update mkdist ([3839ab3](https://github.com/unjs/unstorage/commit/3839ab3)) +- Update mkdist for cjs dist hotfix ([cae8533](https://github.com/unjs/unstorage/commit/cae8533)) + +### 🏡 Chore + +- Add basic diagram ([96806ac](https://github.com/unjs/unstorage/commit/96806ac)) +- Fix asset link ([6cacd2d](https://github.com/unjs/unstorage/commit/6cacd2d)) +- **release:** 0.0.1 ([9059e96](https://github.com/unjs/unstorage/commit/9059e96)) +- Add toc to docs ([9267582](https://github.com/unjs/unstorage/commit/9267582)) +- Update docs ([a9178a3](https://github.com/unjs/unstorage/commit/a9178a3)) +- Update docs ([e2b07f7](https://github.com/unjs/unstorage/commit/e2b07f7)) +- Fix lint error ([117f4aa](https://github.com/unjs/unstorage/commit/117f4aa)) +- **release:** 0.0.2 ([a174664](https://github.com/unjs/unstorage/commit/a174664)) +- Update toc ([7df42a3](https://github.com/unjs/unstorage/commit/7df42a3)) +- Simplify toc ([85ce672](https://github.com/unjs/unstorage/commit/85ce672)) +- Remove drievers todo list ([c072756](https://github.com/unjs/unstorage/commit/c072756)) +- Fix readme ([03c3bb0](https://github.com/unjs/unstorage/commit/03c3bb0)) +- Fix lint errors ([cec5268](https://github.com/unjs/unstorage/commit/cec5268)) +- **release:** 0.0.3 ([d4f9e48](https://github.com/unjs/unstorage/commit/d4f9e48)) +- Add editor demo ([9892b69](https://github.com/unjs/unstorage/commit/9892b69)) +- **release:** 0.0.4 ([6185464](https://github.com/unjs/unstorage/commit/6185464)) +- Update mount docs ([6a71c48](https://github.com/unjs/unstorage/commit/6a71c48)) +- **release:** 0.1.0 ([f2f7a32](https://github.com/unjs/unstorage/commit/f2f7a32)) +- Fix fs driver usage ([18982ee](https://github.com/unjs/unstorage/commit/18982ee)) +- **release:** 0.1.1 ([5ac3a62](https://github.com/unjs/unstorage/commit/5ac3a62)) +- Fix eslint warning ([9ec0721](https://github.com/unjs/unstorage/commit/9ec0721)) +- **release:** 0.1.2 ([90654fd](https://github.com/unjs/unstorage/commit/90654fd)) +- **release:** 0.1.3 ([c42054f](https://github.com/unjs/unstorage/commit/c42054f)) +- Generate driver declarations ([1421306](https://github.com/unjs/unstorage/commit/1421306)) +- **release:** 0.1.4 ([ebc65f4](https://github.com/unjs/unstorage/commit/ebc65f4)) +- **release:** 0.1.5 ([1c73d0a](https://github.com/unjs/unstorage/commit/1c73d0a)) +- **release:** 0.1.6 ([05037ec](https://github.com/unjs/unstorage/commit/05037ec)) +- Update org ([43f928a](https://github.com/unjs/unstorage/commit/43f928a)) +- ⚠️ Update dependencies and use mjs for drivers build ([e7a6c27](https://github.com/unjs/unstorage/commit/e7a6c27)) +- Fix exports ([688dc46](https://github.com/unjs/unstorage/commit/688dc46)) +- **release:** 0.2.0 ([f6935f2](https://github.com/unjs/unstorage/commit/f6935f2)) +- **release:** 0.2.1 ([bf45fd4](https://github.com/unjs/unstorage/commit/bf45fd4)) +- **release:** 0.2.2 ([270ccb4](https://github.com/unjs/unstorage/commit/270ccb4)) +- **release:** 0.2.3 ([821db77](https://github.com/unjs/unstorage/commit/821db77)) +- Update readme ([7b18572](https://github.com/unjs/unstorage/commit/7b18572)) +- Update dependencies ([869ccb6](https://github.com/unjs/unstorage/commit/869ccb6)) +- Fix markdown format ([55132e5](https://github.com/unjs/unstorage/commit/55132e5)) +- Readme improvements ([d388283](https://github.com/unjs/unstorage/commit/d388283)) +- **pkg:** Use `.cjs` extension ([066f840](https://github.com/unjs/unstorage/commit/066f840)) +- **pkg:** Add description ([f03763c](https://github.com/unjs/unstorage/commit/f03763c)) +- **release:** 0.2.4 ([dc41b0b](https://github.com/unjs/unstorage/commit/dc41b0b)) +- **release:** 0.2.5 ([bcc5cb7](https://github.com/unjs/unstorage/commit/bcc5cb7)) +- Update examples ([#14](https://github.com/unjs/unstorage/pull/14)) +- **release:** 0.2.6 ([2ff9be6](https://github.com/unjs/unstorage/commit/2ff9be6)) +- Update readme ([3511658](https://github.com/unjs/unstorage/commit/3511658)) +- Fix typos in readme ([0fd50ed](https://github.com/unjs/unstorage/commit/0fd50ed)) +- Small typo in README.md ([#16](https://github.com/unjs/unstorage/pull/16)) +- Update readme ([d4a9205](https://github.com/unjs/unstorage/commit/d4a9205)) +- **pkg:** Use `.js` ([#17](https://github.com/unjs/unstorage/pull/17)) +- **release:** 0.2.7 ([15fec29](https://github.com/unjs/unstorage/commit/15fec29)) +- Fix typos ([#19](https://github.com/unjs/unstorage/pull/19)) +- **release:** 0.2.8 ([fe941c2](https://github.com/unjs/unstorage/commit/fe941c2)) +- **release:** 0.2.9 ([1cd20f5](https://github.com/unjs/unstorage/commit/1cd20f5)) +- Update test ([f88bd67](https://github.com/unjs/unstorage/commit/f88bd67)) +- Temporary disable jest until migrating to mocha ([1399400](https://github.com/unjs/unstorage/commit/1399400)) +- **release:** 0.3.0 ([61a0b3c](https://github.com/unjs/unstorage/commit/61a0b3c)) +- Update dependencies ([e1fb319](https://github.com/unjs/unstorage/commit/e1fb319)) +- **release:** 0.3.1 ([50ce976](https://github.com/unjs/unstorage/commit/50ce976)) +- Update ohmyfetch ([f05ad99](https://github.com/unjs/unstorage/commit/f05ad99)) +- **release:** 0.3.2 ([fa199ba](https://github.com/unjs/unstorage/commit/fa199ba)) +- **release:** 0.3.3 ([d40f149](https://github.com/unjs/unstorage/commit/d40f149)) +- Update repo ([3b4b32d](https://github.com/unjs/unstorage/commit/3b4b32d)) +- Fix redis type import ([9985cda](https://github.com/unjs/unstorage/commit/9985cda)) +- Update toc ([5fe2e41](https://github.com/unjs/unstorage/commit/5fe2e41)) +- **release:** 0.4.0 ([20ba91d](https://github.com/unjs/unstorage/commit/20ba91d)) +- Fix lint issue ([e7a259c](https://github.com/unjs/unstorage/commit/e7a259c)) +- **release:** 0.4.1 ([0da9595](https://github.com/unjs/unstorage/commit/0da9595)) +- **release:** 0.5.0 ([9cc61ac](https://github.com/unjs/unstorage/commit/9cc61ac)) +- **release:** 0.5.1 ([324955d](https://github.com/unjs/unstorage/commit/324955d)) +- **release:** 0.5.2 ([e7f3664](https://github.com/unjs/unstorage/commit/e7f3664)) +- **release:** 0.5.3 ([5188fec](https://github.com/unjs/unstorage/commit/5188fec)) +- **release:** 0.5.4 ([f5efe4a](https://github.com/unjs/unstorage/commit/f5efe4a)) +- **release:** 0.5.5 ([03619f4](https://github.com/unjs/unstorage/commit/03619f4)) +- **release:** 0.5.6 ([6ad10d2](https://github.com/unjs/unstorage/commit/6ad10d2)) +- Update h3 to 0.8.0 and other dependencies to latest ([7ffb38f](https://github.com/unjs/unstorage/commit/7ffb38f)) +- Fix ci ([b3a249f](https://github.com/unjs/unstorage/commit/b3a249f)) +- Ignore local test files ([38ae640](https://github.com/unjs/unstorage/commit/38ae640)) +- Swtich to changelogen ([e6234c4](https://github.com/unjs/unstorage/commit/e6234c4)) +- **release:** V0.6.0 ([0b8e1c7](https://github.com/unjs/unstorage/commit/0b8e1c7)) +- Manually update changelog ([b576f8d](https://github.com/unjs/unstorage/commit/b576f8d)) +- Update lockfile ([7670fe2](https://github.com/unjs/unstorage/commit/7670fe2)) +- Update package.json ([7ca757a](https://github.com/unjs/unstorage/commit/7ca757a)) +- **release:** 1.0.0 ([308e9c6](https://github.com/unjs/unstorage/commit/308e9c6)) +- Update h3 to 1.x ([17d947b](https://github.com/unjs/unstorage/commit/17d947b)) +- Migrate to `ofetch` ([9e4224c](https://github.com/unjs/unstorage/commit/9e4224c)) +- **release:** 1.0.1 ([d184d4d](https://github.com/unjs/unstorage/commit/d184d4d)) +- Update dependencies ([2cf6697](https://github.com/unjs/unstorage/commit/2cf6697)) +- Update readme ([229a0eb](https://github.com/unjs/unstorage/commit/229a0eb)) +- Update readme ([960dd43](https://github.com/unjs/unstorage/commit/960dd43)) +- **release:** V1.1.0 ([59ec8f4](https://github.com/unjs/unstorage/commit/59ec8f4)) +- **release:** V1.1.1 ([6ce3e51](https://github.com/unjs/unstorage/commit/6ce3e51)) +- **release:** V1.1.2 ([5204f2a](https://github.com/unjs/unstorage/commit/5204f2a)) +- **release:** V1.1.3 ([313628b](https://github.com/unjs/unstorage/commit/313628b)) +- **release:** V1.1.4 ([bcab34b](https://github.com/unjs/unstorage/commit/bcab34b)) +- Update h3 dependency ([1e2b822](https://github.com/unjs/unstorage/commit/1e2b822)) +- **release:** V1.1.5 ([014a969](https://github.com/unjs/unstorage/commit/014a969)) +- Remove unused dependencies ([#153](https://github.com/unjs/unstorage/pull/153)) +- Add vercel.json ([10d2610](https://github.com/unjs/unstorage/commit/10d2610)) +- **release:** V1.2.0 ([75b8f35](https://github.com/unjs/unstorage/commit/75b8f35)) +- **docs:** Lintfix ([45c0b38](https://github.com/unjs/unstorage/commit/45c0b38)) +- Update badge styles ([ecf0d74](https://github.com/unjs/unstorage/commit/ecf0d74)) +- **readme:** Small improvements ([790d762](https://github.com/unjs/unstorage/commit/790d762)) +- **readme:** Add license badge ([9f1d3aa](https://github.com/unjs/unstorage/commit/9f1d3aa)) +- **release:** V1.3.0 ([39aebb9](https://github.com/unjs/unstorage/commit/39aebb9)) +- Link to the docs ([0ec20f9](https://github.com/unjs/unstorage/commit/0ec20f9)) +- **release:** V1.4.0 ([e36cee8](https://github.com/unjs/unstorage/commit/e36cee8)) +- Update lockfile ([42fae46](https://github.com/unjs/unstorage/commit/42fae46)) +- **release:** V1.4.1 ([38b3dbe](https://github.com/unjs/unstorage/commit/38b3dbe)) +- **release:** V1.5.0 ([4a51abe](https://github.com/unjs/unstorage/commit/4a51abe)) +- Add `codecov.yml` ([d6e0da3](https://github.com/unjs/unstorage/commit/d6e0da3)) +- Fix docs ([333fd44](https://github.com/unjs/unstorage/commit/333fd44)) +- **release:** V1.6.0 ([7f8a6c3](https://github.com/unjs/unstorage/commit/7f8a6c3)) +- Update eslint ([4591831](https://github.com/unjs/unstorage/commit/4591831)) +- **release:** V1.6.1 ([271b7c9](https://github.com/unjs/unstorage/commit/271b7c9)) +- Update deps ([bcf9385](https://github.com/unjs/unstorage/commit/bcf9385)) +- Update dependencies ([ba82bf0](https://github.com/unjs/unstorage/commit/ba82bf0)) +- Add type check to ci ([57e6901](https://github.com/unjs/unstorage/commit/57e6901)) +- **release:** V1.7.0 ([843a9ba](https://github.com/unjs/unstorage/commit/843a9ba)) +- Update dev dependencies ([ba44aed](https://github.com/unjs/unstorage/commit/ba44aed)) +- **release:** V1.8.0 ([c392d45](https://github.com/unjs/unstorage/commit/c392d45)) +- Update docus ([bc0be1b](https://github.com/unjs/unstorage/commit/bc0be1b)) +- Update dependencies ([1d0395d](https://github.com/unjs/unstorage/commit/1d0395d)) +- Add autofix ci ([a0a1cdd](https://github.com/unjs/unstorage/commit/a0a1cdd)) +- **release:** V1.9.0 ([b0faff7](https://github.com/unjs/unstorage/commit/b0faff7)) +- Update dependencies ([2644320](https://github.com/unjs/unstorage/commit/2644320)) +- Update dependencies and lockfile ([061f74c](https://github.com/unjs/unstorage/commit/061f74c)) +- Remove unused imports ([9e975d9](https://github.com/unjs/unstorage/commit/9e975d9)) +- **docs:** Update dependencies ([db6c5b7](https://github.com/unjs/unstorage/commit/db6c5b7)) +- **release:** V1.10.0 ([10be739](https://github.com/unjs/unstorage/commit/10be739)) +- **release:** V1.10.1 ([7b9a8ad](https://github.com/unjs/unstorage/commit/7b9a8ad)) +- **docs:** Update dependencies ([8a1f81c](https://github.com/unjs/unstorage/commit/8a1f81c)) +- Update lockfile ([e63f16b](https://github.com/unjs/unstorage/commit/e63f16b)) +- Update dependencies ([bb471c1](https://github.com/unjs/unstorage/commit/bb471c1)) +- **docs:** Update lockfile ([9c5fe17](https://github.com/unjs/unstorage/commit/9c5fe17)) +- Update lockfile ([fc9f6a9](https://github.com/unjs/unstorage/commit/fc9f6a9)) +- Update docs ([f85112f](https://github.com/unjs/unstorage/commit/f85112f)) +- Update docs ([f78ffc4](https://github.com/unjs/unstorage/commit/f78ffc4)) +- Update lint script ([4d61c78](https://github.com/unjs/unstorage/commit/4d61c78)) +- Update deps ([e48cb59](https://github.com/unjs/unstorage/commit/e48cb59)) +- Update undocs ([8be788f](https://github.com/unjs/unstorage/commit/8be788f)) +- Update vercel kv banner ([53d23e8](https://github.com/unjs/unstorage/commit/53d23e8)) +- Update lockfile ([57e719c](https://github.com/unjs/unstorage/commit/57e719c)) +- **release:** V1.10.2 ([5e40ef4](https://github.com/unjs/unstorage/commit/5e40ef4)) +- **docs:** Update lock ([7350385](https://github.com/unjs/unstorage/commit/7350385)) +- Update undocs ([83c6696](https://github.com/unjs/unstorage/commit/83c6696)) +- Update docs ([26e9d73](https://github.com/unjs/unstorage/commit/26e9d73)) +- Update dependencies ([0b1aa9c](https://github.com/unjs/unstorage/commit/0b1aa9c)) +- Update to eslint v9 ([7b8c51e](https://github.com/unjs/unstorage/commit/7b8c51e)) +- Apply new lint rules ([be542fc](https://github.com/unjs/unstorage/commit/be542fc)) +- Add benchmark script ([d84bcc6](https://github.com/unjs/unstorage/commit/d84bcc6)) +- Add bench script ([d40c206](https://github.com/unjs/unstorage/commit/d40c206)) +- Lint ([922ada9](https://github.com/unjs/unstorage/commit/922ada9)) + +### ✅ Tests + +- Custom verification point ([c91e97e](https://github.com/unjs/unstorage/commit/c91e97e)) +- Write http driver tests using storage server ([1062693](https://github.com/unjs/unstorage/commit/1062693)) +- Update ([8342654](https://github.com/unjs/unstorage/commit/8342654)) +- Update kv-binding test ([ebddeb1](https://github.com/unjs/unstorage/commit/ebddeb1)) +- Choose random ports for tests ([#72](https://github.com/unjs/unstorage/pull/72)) +- Add unit test for redis driver ([#164](https://github.com/unjs/unstorage/pull/164)) +- Add test for `lru-cache` ([a9965a8](https://github.com/unjs/unstorage/commit/a9965a8)) +- Update redis test ([6ca1f06](https://github.com/unjs/unstorage/commit/6ca1f06)) +- Add basic test for `vercel-kv` ([b47acd1](https://github.com/unjs/unstorage/commit/b47acd1)) +- Fix `vercel-kv` test ([329496c](https://github.com/unjs/unstorage/commit/329496c)) +- Skip cloudflare-kv-http on node >= 18 ([33bc9c0](https://github.com/unjs/unstorage/commit/33bc9c0)) +- Add test for `github` driver ([#259](https://github.com/unjs/unstorage/pull/259)) +- **mongo:** Update and disable tests ([44ffe1d](https://github.com/unjs/unstorage/commit/44ffe1d)) +- Skip netlify-blobs for now ([75b2353](https://github.com/unjs/unstorage/commit/75b2353)) +- **http:** Add tests for `null` value ([#365](https://github.com/unjs/unstorage/pull/365)) + +### 🎨 Styles + +- Format and lint code ([fd4e006](https://github.com/unjs/unstorage/commit/fd4e006)) +- Format readme with prettier ([ec7c7c2](https://github.com/unjs/unstorage/commit/ec7c7c2)) +- Format with prettier v3 ([22b797e](https://github.com/unjs/unstorage/commit/22b797e)) + +### 🤖 CI + +- Skip flaky azure tests ([24cfbd7](https://github.com/unjs/unstorage/commit/24cfbd7)) +- Test against node 18 ([ad09e94](https://github.com/unjs/unstorage/commit/ad09e94)) + +#### ⚠️ Breaking Changes + +- ⚠️ Simplify mount usage ([3eccf84](https://github.com/unjs/unstorage/commit/3eccf84)) +- ⚠️ RestoreSnapshot ([6e75a61](https://github.com/unjs/unstorage/commit/6e75a61)) +- **pkg:** ⚠️ Update depenencies and use explicit `cjs` extension ([477aa26](https://github.com/unjs/unstorage/commit/477aa26)) +- ⚠️ Rename `cloudflare-kv` to `cloudflare-kv-binding` ([e361f36](https://github.com/unjs/unstorage/commit/e361f36)) +- ⚠️ Use `./dist` for all subpath exports ([4f2a211](https://github.com/unjs/unstorage/commit/4f2a211)) +- ⚠️ Update dependencies and use mjs for drivers build ([e7a6c27](https://github.com/unjs/unstorage/commit/e7a6c27)) + +### ❤️ Contributors + +- Hash Brown ([@xuzuodong](http://github.com/xuzuodong)) +- Michael Brevard +- Pooya Parsa ([@pi0](http://github.com/pi0)) +- Alexander Lichter ([@manniL](http://github.com/manniL)) +- Rgehbt ([@Gehbt](http://github.com/Gehbt)) +- Sébastien Chopin ([@Atinux](http://github.com/Atinux)) +- Selemondev ([@selemondev](http://github.com/selemondev)) +- Farnabaz +- Renato Lacerda +- Harlan Wilton ([@harlan-zw](http://github.com/harlan-zw)) +- Matt Kane +- Julius Marminge +- Connor Pearson +- Kongmoumou ([@kongmoumou](http://github.com/kongmoumou)) +- Alex +- Skosh +- Dominik Opyd +- Arkadiusz Sygulski +- Jan-Henrik Damaschke +- Masious +- Boe Reh +- Patryk Tomczyk ([@patzick](http://github.com/patzick)) +- Lsh ([@peterroe](http://github.com/peterroe)) +- Mehdi ([@meduzen](http://github.com/meduzen)) +- Gustavo Conte ([@gustavoconter](http://github.com/gustavoconter)) +- Brian Evans ([@mrbrianevans](http://github.com/mrbrianevans)) +- Marco +- João Pedro Antunes Silva +- Abdurrahman Shofy Adianto +- Timbological +- Daniel Roe ([@danielroe](http://github.com/danielroe)) +- Estéban ([@Barbapapazes](http://github.com/Barbapapazes)) +- Heb ([@Hebilicious](http://github.com/Hebilicious)) +- Hebilicious ([@Hebilicious](http://github.com/Hebilicious)) +- Alex Duval ([@xlanex6](http://github.com/xlanex6)) +- 魔王少年 ([@maou-shonen](http://github.com/maou-shonen)) +- Neelansh Mathur +- Andrei Dyldin +- Dave Stewart +- Winton Welsh ([@winton](http://github.com/winton)) +- Steady Gaze +- Corentin THOMASSET +- Tejas Magade +- Jamwong-ecosa +- Yasser Lahbibi ([@yassilah](http://github.com/yassilah)) +- Yu Le +- Sacha STAFYNIAK +- Qin Guan +- Ruben Del Rio +- Cyrus Collier +- Clément Ollivier ([@clemcode](http://github.com/clemcode)) +- Corey Psoinos +- Ahad Birang +- Markthree ([@markthree](http://github.com/markthree)) +- Jan Wystub +- Josh Deltener + ## v1.10.2 [compare changes](https://github.com/unjs/unstorage/compare/v1.10.1...v1.10.2) diff --git a/package.json b/package.json index bfcff0e2..f124c8ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unstorage", - "version": "1.10.2", + "version": "2.0.0", "description": "Universal Storage Layer", "repository": "unjs/unstorage", "license": "MIT", @@ -31,14 +31,15 @@ "server.d.ts" ], "scripts": { + "fetch": "pnpm install", "build": "unbuild", "demo": "vite demo", "dev": "vitest", - "lint": "eslint . && prettier -c src test demo", + "lint": "eslint . --fix && prettier -c src test demo", "lint:fix": "eslint . --fix && prettier -w src test demo", "prepack": "pnpm build", "release": "pnpm test && changelogen --release && git push --follow-tags && pnpm publish", - "test": "pnpm lint && pnpm test:types && vitest run --coverage", + "test": "pnpm lint --fix && pnpm test:types && vitest run --coverage", "bench": "jiti test/server.bench.ts", "test:types": "tsc --noEmit --skipLibCheck", "unstorage": "pnpm jiti src/cli" @@ -153,5 +154,5 @@ "optional": true } }, - "packageManager": "pnpm@9.1.1" + "packageManager": "pnpm@9.1.2" } From 2ddeba373616162e99e90983d3a95370fe71ea77 Mon Sep 17 00:00:00 2001 From: "@solaris" Date: Tue, 21 May 2024 16:36:45 +0300 Subject: [PATCH 6/6] Revert "chore(release): v2.0.0" This reverts commit 9e20917e7d3b96dec465e9dae7041a67a9c80e4b. --- CHANGELOG.md | 463 --------------------------------------------------- package.json | 9 +- 2 files changed, 4 insertions(+), 468 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 968fbc36..532f0757 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,469 +2,6 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. -## v2.0.0 - - -### 🚀 Enhancements - -- Data serialization ([3e96b26](https://github.com/unjs/unstorage/commit/3e96b26)) -- State hydration ([4253c52](https://github.com/unjs/unstorage/commit/4253c52)) -- Support base for getKeys and clear ([d278fab](https://github.com/unjs/unstorage/commit/d278fab)) -- Snapshot ([7052380](https://github.com/unjs/unstorage/commit/7052380)) -- Mount improvements and unmount ([7dd731b](https://github.com/unjs/unstorage/commit/7dd731b)) -- Watcher ([ebcf1f1](https://github.com/unjs/unstorage/commit/ebcf1f1)) -- Support base for drivers ([6844cd1](https://github.com/unjs/unstorage/commit/6844cd1)) -- Http driver ([438db64](https://github.com/unjs/unstorage/commit/438db64)) -- Support storage server ([5240591](https://github.com/unjs/unstorage/commit/5240591)) -- Support more http methods ([45d4771](https://github.com/unjs/unstorage/commit/45d4771)) -- **server:** Returns keys on get if val not found ([79fd997](https://github.com/unjs/unstorage/commit/79fd997)) -- Unstorage command for standalone server ([171eb37](https://github.com/unjs/unstorage/commit/171eb37)) -- ⚠️ Simplify mount usage ([3eccf84](https://github.com/unjs/unstorage/commit/3eccf84)) -- ⚠️ RestoreSnapshot ([6e75a61](https://github.com/unjs/unstorage/commit/6e75a61)) -- Allow passing default driver to factory fn ([bbca3c3](https://github.com/unjs/unstorage/commit/bbca3c3)) -- Redis driver ([7562af2](https://github.com/unjs/unstorage/commit/7562af2)) -- Meta support ([3a5d865](https://github.com/unjs/unstorage/commit/3a5d865)) -- Support readonly drivers without `setItem`, `removeItem` and `clear` ([22de631](https://github.com/unjs/unstorage/commit/22de631)) -- Namespaced storage (prefixStorage) ([d58beaa](https://github.com/unjs/unstorage/commit/d58beaa)) -- Allow driver getKey to receive base key ([#26](https://github.com/unjs/unstorage/pull/26)) -- **pkg:** ⚠️ Update depenencies and use explicit `cjs` extension ([477aa26](https://github.com/unjs/unstorage/commit/477aa26)) -- Create driver for Cloudflare KV store ([#30](https://github.com/unjs/unstorage/pull/30)) -- Overlay driver ([588881e](https://github.com/unjs/unstorage/commit/588881e)) -- Expose key utils `normalizeKey`, `joinKeys` and `normalizeBaseKey` ([be81fa8](https://github.com/unjs/unstorage/commit/be81fa8)) -- `github` driver ([#61](https://github.com/unjs/unstorage/pull/61)) -- `cloudflare-kv-http` driver ([#55](https://github.com/unjs/unstorage/pull/55)) -- Expose `builtinDrivers` ([be34d5e](https://github.com/unjs/unstorage/commit/be34d5e)) -- Export `BuiltinDriverName` type and kebab-case names ([f6a941c](https://github.com/unjs/unstorage/commit/f6a941c)) -- Add unwatch functions ([#82](https://github.com/unjs/unstorage/pull/82)) -- Serialize values implementing `toJSON()` ([#139](https://github.com/unjs/unstorage/pull/139)) -- Experimental raw data support ([#141](https://github.com/unjs/unstorage/pull/141)) -- **driver:** Add planetscale driver ([#140](https://github.com/unjs/unstorage/pull/140)) -- **fs:** Support `readOnly` and `noClear` options ([f2dddbd](https://github.com/unjs/unstorage/commit/f2dddbd)) -- **fs:** Support `birthtime` and `ctime` meta ([#136](https://github.com/unjs/unstorage/pull/136)) -- `lru-cache` driver ([#146](https://github.com/unjs/unstorage/pull/146)) -- `mongodb` driver ([#155](https://github.com/unjs/unstorage/pull/155)) -- `azure-storage-blob` driver ([#154](https://github.com/unjs/unstorage/pull/154)) -- `azure-cosmos` driver ([#158](https://github.com/unjs/unstorage/pull/158)) -- `azure-key-vault` driver ([#159](https://github.com/unjs/unstorage/pull/159)) -- `azure-app-configuration` driver ([#156](https://github.com/unjs/unstorage/pull/156)) -- `azure-storage-table` ([#148](https://github.com/unjs/unstorage/pull/148)) -- `getMount` and `getMounts` utils ([#167](https://github.com/unjs/unstorage/pull/167)) -- Allow passing transaction options to drivers ([#168](https://github.com/unjs/unstorage/pull/168)) -- **redis:** Support native `ttl` ([#169](https://github.com/unjs/unstorage/pull/169)) -- `http` and server improvements ([#170](https://github.com/unjs/unstorage/pull/170)) -- **server:** Support authorize ([#175](https://github.com/unjs/unstorage/pull/175)) -- **server:** Support `resolvePath` ([4717851](https://github.com/unjs/unstorage/commit/4717851)) -- **lru-cache:** Support size calculation ([#177](https://github.com/unjs/unstorage/pull/177)) -- Expose `name` and `options` from driver instances ([#178](https://github.com/unjs/unstorage/pull/178)) -- **http:** Support custom headers ([4fe7da7](https://github.com/unjs/unstorage/commit/4fe7da7)) -- **drivers:** Added session storage driver ([#179](https://github.com/unjs/unstorage/pull/179)) -- **lru-cache:** Upgrade to lru-cache v9 ([5b8fc62](https://github.com/unjs/unstorage/commit/5b8fc62)) -- Add `vercel-kv` driver ([#213](https://github.com/unjs/unstorage/pull/213)) -- Generic type support ([#237](https://github.com/unjs/unstorage/pull/237)) -- Experimental operation batching ([#240](https://github.com/unjs/unstorage/pull/240)) -- **cloudflare-kv:** Support `base` option for keys ([#261](https://github.com/unjs/unstorage/pull/261)) -- `cloudflare-r2-binding` driver ([#235](https://github.com/unjs/unstorage/pull/235)) -- Expose `BuiltinDriverOptions` type ([#273](https://github.com/unjs/unstorage/pull/273)) -- **vercel-kv:** Support `ttl` for `setItem` ([#269](https://github.com/unjs/unstorage/pull/269)) -- Add `indexedb` driver ([#221](https://github.com/unjs/unstorage/pull/221)) -- Add `capacitor-preferences` driver ([#283](https://github.com/unjs/unstorage/pull/283)) -- `fs-lite` driver ([#284](https://github.com/unjs/unstorage/pull/284)) -- Add `netlify-blobs` driver ([#337](https://github.com/unjs/unstorage/pull/337)) -- Add `keys`, `get`, `set`, `has` and `del` aliases ([#402](https://github.com/unjs/unstorage/pull/402)) -- Expose underlying client instance ([#446](https://github.com/unjs/unstorage/pull/446)) - -### 🔥 Performance - -- **getKeys:** Avoid duplicate iteration ([#386](https://github.com/unjs/unstorage/pull/386)) -- Use direct array access instead of `endsWIth` ([#387](https://github.com/unjs/unstorage/pull/387)) - -### 🩹 Fixes - -- **fs:** Safe readdir ([627cad3](https://github.com/unjs/unstorage/commit/627cad3)) -- Remove mountpoint prefix ([fd6b865](https://github.com/unjs/unstorage/commit/fd6b865)) -- Add mount prefix to watch key ([0bb634d](https://github.com/unjs/unstorage/commit/0bb634d)) -- Handle mountpoints qurty shorter than mountpoint ([9cc1904](https://github.com/unjs/unstorage/commit/9cc1904)) -- **http:** GetKeys await ([59b87c5](https://github.com/unjs/unstorage/commit/59b87c5)) -- **pkg:** Fix exports ([a846fc0](https://github.com/unjs/unstorage/commit/a846fc0)) -- Move defineDriver to driver/utils ([6ddaceb](https://github.com/unjs/unstorage/commit/6ddaceb)) -- **pkg:** Avoid extra index build ([5233de6](https://github.com/unjs/unstorage/commit/5233de6)) -- **fs-drivers:** Typo in error message ([0e7e063](https://github.com/unjs/unstorage/commit/0e7e063)) -- **fs:** Race condition for ensuredir ([437cc76](https://github.com/unjs/unstorage/commit/437cc76)) -- Fallback value for readdir ([ea7d73b](https://github.com/unjs/unstorage/commit/ea7d73b)) -- **http:** Use isolated utils ([fc4b23b](https://github.com/unjs/unstorage/commit/fc4b23b)) -- **pkg:** Use unbuild and fix drivers/* export ([251182b](https://github.com/unjs/unstorage/commit/251182b)) -- Update mkdist ([#5](https://github.com/unjs/unstorage/pull/5)) -- **pkg:** Update exports ([#6](https://github.com/unjs/unstorage/pull/6)) -- Omit meta keys for `getKeys` ([34dec7d](https://github.com/unjs/unstorage/commit/34dec7d)) -- **prefixStorage:** Handle when key is not provided ([#18](https://github.com/unjs/unstorage/pull/18)) -- **build:** Use cjs extension for drivers ([#29](https://github.com/unjs/unstorage/pull/29)) -- **prefixStorage:** Strip keys ([#34](https://github.com/unjs/unstorage/pull/34)) -- Handle mount overrides ([#45](https://github.com/unjs/unstorage/pull/45)) -- **cloudflare:** Add prefix key for cloudflare kv list operation ([#64](https://github.com/unjs/unstorage/pull/64)) -- **cloudflare:** Use `@cloudflare/workers-types` ([eeeac83](https://github.com/unjs/unstorage/commit/eeeac83)) -- Upgrade mkdist ([ad216c6](https://github.com/unjs/unstorage/commit/ad216c6)) -- Update builtinDrivers mapping ([ebf8d1b](https://github.com/unjs/unstorage/commit/ebf8d1b)) -- **redis:** Fix reference in `clear()` method ([#70](https://github.com/unjs/unstorage/pull/70)) -- **github:** Trim leading slash on `dir` prefix paths ([#74](https://github.com/unjs/unstorage/pull/74)) -- **fs:** Disallow keys containing `..` ([d628fab](https://github.com/unjs/unstorage/commit/d628fab)) -- **server:** Fix typo in 405 `statusMessage` ([#84](https://github.com/unjs/unstorage/pull/84)) -- **cloudflare-kv-http:** HasItem and getItem ([#81](https://github.com/unjs/unstorage/pull/81)) -- **cloudflare:** Pass params to kv request ([#138](https://github.com/unjs/unstorage/pull/138)) -- **planetscale:** Use `birthtime` for `created_at` value ([#144](https://github.com/unjs/unstorage/pull/144)) -- Update driver defenition types ([#143](https://github.com/unjs/unstorage/pull/143)) -- Allow stringify array ([#147](https://github.com/unjs/unstorage/pull/147)) -- Strip query param from keys ([cc3ebb7](https://github.com/unjs/unstorage/commit/cc3ebb7)) -- **redis:** Fix clear method ([#163](https://github.com/unjs/unstorage/pull/163)) -- **redis:** Remove strict options validation ([9294121](https://github.com/unjs/unstorage/commit/9294121)) -- **redis:** Respect both global and operation options for `ttl` ([a491333](https://github.com/unjs/unstorage/commit/a491333)) -- **pkg:** Move `types` field to the first ([f2b08f6](https://github.com/unjs/unstorage/commit/f2b08f6)) -- **pkg:** Export compat types for `/server` subpath ([3cc2c48](https://github.com/unjs/unstorage/commit/3cc2c48)) -- **lru-cache:** Use `max` instead of `maxSize` ([012fc62](https://github.com/unjs/unstorage/commit/012fc62)) -- **redis:** Remove trailing `:` from `base` ([82647e0](https://github.com/unjs/unstorage/commit/82647e0)) -- **pkg:** Use optional peer dependencies ([#183](https://github.com/unjs/unstorage/pull/183)) -- Removed duplicate line ([#190](https://github.com/unjs/unstorage/pull/190)) -- **planetscale:** Fix `hasItem` ([#200](https://github.com/unjs/unstorage/pull/200)) -- **github:** Optional properties ([#196](https://github.com/unjs/unstorage/pull/196)) -- **cloudflare:** Allow lazy access to env bindings ([#202](https://github.com/unjs/unstorage/pull/202)) -- **redis:** Support `getKeys` and `clear` with base ([#216](https://github.com/unjs/unstorage/pull/216)) -- **azure-cosmos:** Always cast `mtime` to `Date` ([129a935](https://github.com/unjs/unstorage/commit/129a935)) -- **prefixStorage:** Prefix `getItemRaw` and `setItemRaw` ([#232](https://github.com/unjs/unstorage/pull/232)) -- **github:** FetchFiles should return files ([#229](https://github.com/unjs/unstorage/pull/229)) -- Add missing `cloudflareR2Binding` to the `builtinDrivers` ([48d6842](https://github.com/unjs/unstorage/commit/48d6842)) -- **cloudflare-r2-binding:** Get binding for r2 `getMeta` ([#272](https://github.com/unjs/unstorage/pull/272)) -- **server:** Read body as string ([dfda25f](https://github.com/unjs/unstorage/commit/dfda25f)) -- **azure-key-vault-driver:** Fix character encoding ([#308](https://github.com/unjs/unstorage/pull/308)) -- **lru-cache, memory, mongodb, redis:** Return falsy values when set in storage ([#320](https://github.com/unjs/unstorage/pull/320)) -- **http, server:** Handle missing resources with http 404 ([#367](https://github.com/unjs/unstorage/pull/367)) -- **pkg:** Make `ioredis` dependency optional ([#410](https://github.com/unjs/unstorage/pull/410)) -- **vercel-kv:** Add missing driver name ([#355](https://github.com/unjs/unstorage/pull/355)) -- **setItems:** Call driver native `setItems` only to avoid duplicate write ([#392](https://github.com/unjs/unstorage/pull/392)) -- `getItems`, `setItems` types ([#395](https://github.com/unjs/unstorage/pull/395)) -- **cloudflare-kv-binding:** Allow passing transaction options for `setItem` to `binding.put` ([#423](https://github.com/unjs/unstorage/pull/423)) -- Fix driver types ([#433](https://github.com/unjs/unstorage/pull/433)) -- **server:** Avoid decoding raw request body ([#434](https://github.com/unjs/unstorage/pull/434)) - -### 💅 Refactors - -- NormalizeBase and more clear naming ([6e9af3e](https://github.com/unjs/unstorage/commit/6e9af3e)) -- DefineDriver ([6b4d7ac](https://github.com/unjs/unstorage/commit/6b4d7ac)) -- Remove duplicate unmount logic ([ebe8aa6](https://github.com/unjs/unstorage/commit/ebe8aa6)) -- Simplify types ([#57](https://github.com/unjs/unstorage/pull/57)) -- ⚠️ Rename `cloudflare-kv` to `cloudflare-kv-binding` ([e361f36](https://github.com/unjs/unstorage/commit/e361f36)) -- Update repository ([ae352da](https://github.com/unjs/unstorage/commit/ae352da)) -- Use type import for node builtin ([#133](https://github.com/unjs/unstorage/pull/133)) -- **redis:** Driver improvements ([#160](https://github.com/unjs/unstorage/pull/160)) -- Use shared util for driver errors ([5ecca54](https://github.com/unjs/unstorage/commit/5ecca54)) -- Remove unused variable ([97d3e3e](https://github.com/unjs/unstorage/commit/97d3e3e)) -- Fix issues with typescript strict ([#250](https://github.com/unjs/unstorage/pull/250)) -- Fix typo in `removeMeta` option for `removeItem` ([#281](https://github.com/unjs/unstorage/pull/281)) -- **cloudflare-kv, cloudflare-r2:** Move `getBindings` to utils and add default `BUCKET` for r2 ([#292](https://github.com/unjs/unstorage/pull/292)) -- **netlify-blobs:** Update to v7 ([#407](https://github.com/unjs/unstorage/pull/407)) - -### 📖 Documentation - -- Add watch ([0d5fa49](https://github.com/unjs/unstorage/commit/0d5fa49)) -- Add custom drivers section ([4e586f7](https://github.com/unjs/unstorage/commit/4e586f7)) -- Typo in package name ([#1](https://github.com/unjs/unstorage/pull/1)) -- Update overlay ([#48](https://github.com/unjs/unstorage/pull/48)) -- Fix typo ([#60](https://github.com/unjs/unstorage/pull/60)) -- Fix `storageServer.handle` example ([#83](https://github.com/unjs/unstorage/pull/83)) -- Fix readme typo ([#134](https://github.com/unjs/unstorage/pull/134)) -- Add experimental link for raw support ([98a6466](https://github.com/unjs/unstorage/commit/98a6466)) -- Start splitting docs ([6bca2a8](https://github.com/unjs/unstorage/commit/6bca2a8)) -- Add docs website ([#166](https://github.com/unjs/unstorage/pull/166)) -- Update snapshots page ([4619326](https://github.com/unjs/unstorage/commit/4619326)) -- Improvements on http server ([a4b8fb8](https://github.com/unjs/unstorage/commit/a4b8fb8)) -- Fix 404 links in readme ([4a63a54](https://github.com/unjs/unstorage/commit/4a63a54)) -- Upgrade docus ([cf48620](https://github.com/unjs/unstorage/commit/cf48620)) -- Fix typo ([#201](https://github.com/unjs/unstorage/pull/201)) -- **vercel-kv:** Add beta notice ([7a75f5f](https://github.com/unjs/unstorage/commit/7a75f5f)) -- Add social share image ([97b8a87](https://github.com/unjs/unstorage/commit/97b8a87)) -- Fix typo ([#239](https://github.com/unjs/unstorage/pull/239)) -- Fix typo ([#252](https://github.com/unjs/unstorage/pull/252)) -- Upgrade Docus ([cc9cb6e](https://github.com/unjs/unstorage/commit/cc9cb6e)) -- Fix 404 link ([1e37246](https://github.com/unjs/unstorage/commit/1e37246)) -- Update ([b43e0d4](https://github.com/unjs/unstorage/commit/b43e0d4)) -- Typo for the option dir in github driver ([#278](https://github.com/unjs/unstorage/pull/278)) -- Fix memory driver description ([#286](https://github.com/unjs/unstorage/pull/286)) -- **fs:** Fix typo ([#290](https://github.com/unjs/unstorage/pull/290)) -- Fix typo in `getMount` usage ([#297](https://github.com/unjs/unstorage/pull/297)) -- Update deps ([#310](https://github.com/unjs/unstorage/pull/310)) -- **indexedb:** Fix typo in import ([#327](https://github.com/unjs/unstorage/pull/327)) -- **planetscale:** Correct `table` option name ([#359](https://github.com/unjs/unstorage/pull/359)) -- **vercel-kv:** Fix typo ([#362](https://github.com/unjs/unstorage/pull/362)) -- Refactor with `unjs-docs` and nuxt ui pro ([#374](https://github.com/unjs/unstorage/pull/374)) -- Improvements ([a64e941](https://github.com/unjs/unstorage/commit/a64e941)) -- Fix links and add redirects ([166498f](https://github.com/unjs/unstorage/commit/166498f)) -- Update unjs-docs version and add redirects ([f2a408d](https://github.com/unjs/unstorage/commit/f2a408d)) -- Fix typo in http-server ([#385](https://github.com/unjs/unstorage/pull/385)) -- Update deps ([bfbf423](https://github.com/unjs/unstorage/commit/bfbf423)) -- Update link ([#408](https://github.com/unjs/unstorage/pull/408)) -- Using undocs package manager component ([#414](https://github.com/unjs/unstorage/pull/414)) -- Fix link ([#429](https://github.com/unjs/unstorage/pull/429)) -- Fix typographical errors ([#432](https://github.com/unjs/unstorage/pull/432)) -- Jsdocs for the server functions ([#438](https://github.com/unjs/unstorage/pull/438)) - -### 📦 Build - -- ⚠️ Use `./dist` for all subpath exports ([4f2a211](https://github.com/unjs/unstorage/commit/4f2a211)) -- Provide backwards-compatible type entries ([#132](https://github.com/unjs/unstorage/pull/132)) -- Fix output drivers to top level drivers ([ff3959c](https://github.com/unjs/unstorage/commit/ff3959c)) -- Update mkdist ([3839ab3](https://github.com/unjs/unstorage/commit/3839ab3)) -- Update mkdist for cjs dist hotfix ([cae8533](https://github.com/unjs/unstorage/commit/cae8533)) - -### 🏡 Chore - -- Add basic diagram ([96806ac](https://github.com/unjs/unstorage/commit/96806ac)) -- Fix asset link ([6cacd2d](https://github.com/unjs/unstorage/commit/6cacd2d)) -- **release:** 0.0.1 ([9059e96](https://github.com/unjs/unstorage/commit/9059e96)) -- Add toc to docs ([9267582](https://github.com/unjs/unstorage/commit/9267582)) -- Update docs ([a9178a3](https://github.com/unjs/unstorage/commit/a9178a3)) -- Update docs ([e2b07f7](https://github.com/unjs/unstorage/commit/e2b07f7)) -- Fix lint error ([117f4aa](https://github.com/unjs/unstorage/commit/117f4aa)) -- **release:** 0.0.2 ([a174664](https://github.com/unjs/unstorage/commit/a174664)) -- Update toc ([7df42a3](https://github.com/unjs/unstorage/commit/7df42a3)) -- Simplify toc ([85ce672](https://github.com/unjs/unstorage/commit/85ce672)) -- Remove drievers todo list ([c072756](https://github.com/unjs/unstorage/commit/c072756)) -- Fix readme ([03c3bb0](https://github.com/unjs/unstorage/commit/03c3bb0)) -- Fix lint errors ([cec5268](https://github.com/unjs/unstorage/commit/cec5268)) -- **release:** 0.0.3 ([d4f9e48](https://github.com/unjs/unstorage/commit/d4f9e48)) -- Add editor demo ([9892b69](https://github.com/unjs/unstorage/commit/9892b69)) -- **release:** 0.0.4 ([6185464](https://github.com/unjs/unstorage/commit/6185464)) -- Update mount docs ([6a71c48](https://github.com/unjs/unstorage/commit/6a71c48)) -- **release:** 0.1.0 ([f2f7a32](https://github.com/unjs/unstorage/commit/f2f7a32)) -- Fix fs driver usage ([18982ee](https://github.com/unjs/unstorage/commit/18982ee)) -- **release:** 0.1.1 ([5ac3a62](https://github.com/unjs/unstorage/commit/5ac3a62)) -- Fix eslint warning ([9ec0721](https://github.com/unjs/unstorage/commit/9ec0721)) -- **release:** 0.1.2 ([90654fd](https://github.com/unjs/unstorage/commit/90654fd)) -- **release:** 0.1.3 ([c42054f](https://github.com/unjs/unstorage/commit/c42054f)) -- Generate driver declarations ([1421306](https://github.com/unjs/unstorage/commit/1421306)) -- **release:** 0.1.4 ([ebc65f4](https://github.com/unjs/unstorage/commit/ebc65f4)) -- **release:** 0.1.5 ([1c73d0a](https://github.com/unjs/unstorage/commit/1c73d0a)) -- **release:** 0.1.6 ([05037ec](https://github.com/unjs/unstorage/commit/05037ec)) -- Update org ([43f928a](https://github.com/unjs/unstorage/commit/43f928a)) -- ⚠️ Update dependencies and use mjs for drivers build ([e7a6c27](https://github.com/unjs/unstorage/commit/e7a6c27)) -- Fix exports ([688dc46](https://github.com/unjs/unstorage/commit/688dc46)) -- **release:** 0.2.0 ([f6935f2](https://github.com/unjs/unstorage/commit/f6935f2)) -- **release:** 0.2.1 ([bf45fd4](https://github.com/unjs/unstorage/commit/bf45fd4)) -- **release:** 0.2.2 ([270ccb4](https://github.com/unjs/unstorage/commit/270ccb4)) -- **release:** 0.2.3 ([821db77](https://github.com/unjs/unstorage/commit/821db77)) -- Update readme ([7b18572](https://github.com/unjs/unstorage/commit/7b18572)) -- Update dependencies ([869ccb6](https://github.com/unjs/unstorage/commit/869ccb6)) -- Fix markdown format ([55132e5](https://github.com/unjs/unstorage/commit/55132e5)) -- Readme improvements ([d388283](https://github.com/unjs/unstorage/commit/d388283)) -- **pkg:** Use `.cjs` extension ([066f840](https://github.com/unjs/unstorage/commit/066f840)) -- **pkg:** Add description ([f03763c](https://github.com/unjs/unstorage/commit/f03763c)) -- **release:** 0.2.4 ([dc41b0b](https://github.com/unjs/unstorage/commit/dc41b0b)) -- **release:** 0.2.5 ([bcc5cb7](https://github.com/unjs/unstorage/commit/bcc5cb7)) -- Update examples ([#14](https://github.com/unjs/unstorage/pull/14)) -- **release:** 0.2.6 ([2ff9be6](https://github.com/unjs/unstorage/commit/2ff9be6)) -- Update readme ([3511658](https://github.com/unjs/unstorage/commit/3511658)) -- Fix typos in readme ([0fd50ed](https://github.com/unjs/unstorage/commit/0fd50ed)) -- Small typo in README.md ([#16](https://github.com/unjs/unstorage/pull/16)) -- Update readme ([d4a9205](https://github.com/unjs/unstorage/commit/d4a9205)) -- **pkg:** Use `.js` ([#17](https://github.com/unjs/unstorage/pull/17)) -- **release:** 0.2.7 ([15fec29](https://github.com/unjs/unstorage/commit/15fec29)) -- Fix typos ([#19](https://github.com/unjs/unstorage/pull/19)) -- **release:** 0.2.8 ([fe941c2](https://github.com/unjs/unstorage/commit/fe941c2)) -- **release:** 0.2.9 ([1cd20f5](https://github.com/unjs/unstorage/commit/1cd20f5)) -- Update test ([f88bd67](https://github.com/unjs/unstorage/commit/f88bd67)) -- Temporary disable jest until migrating to mocha ([1399400](https://github.com/unjs/unstorage/commit/1399400)) -- **release:** 0.3.0 ([61a0b3c](https://github.com/unjs/unstorage/commit/61a0b3c)) -- Update dependencies ([e1fb319](https://github.com/unjs/unstorage/commit/e1fb319)) -- **release:** 0.3.1 ([50ce976](https://github.com/unjs/unstorage/commit/50ce976)) -- Update ohmyfetch ([f05ad99](https://github.com/unjs/unstorage/commit/f05ad99)) -- **release:** 0.3.2 ([fa199ba](https://github.com/unjs/unstorage/commit/fa199ba)) -- **release:** 0.3.3 ([d40f149](https://github.com/unjs/unstorage/commit/d40f149)) -- Update repo ([3b4b32d](https://github.com/unjs/unstorage/commit/3b4b32d)) -- Fix redis type import ([9985cda](https://github.com/unjs/unstorage/commit/9985cda)) -- Update toc ([5fe2e41](https://github.com/unjs/unstorage/commit/5fe2e41)) -- **release:** 0.4.0 ([20ba91d](https://github.com/unjs/unstorage/commit/20ba91d)) -- Fix lint issue ([e7a259c](https://github.com/unjs/unstorage/commit/e7a259c)) -- **release:** 0.4.1 ([0da9595](https://github.com/unjs/unstorage/commit/0da9595)) -- **release:** 0.5.0 ([9cc61ac](https://github.com/unjs/unstorage/commit/9cc61ac)) -- **release:** 0.5.1 ([324955d](https://github.com/unjs/unstorage/commit/324955d)) -- **release:** 0.5.2 ([e7f3664](https://github.com/unjs/unstorage/commit/e7f3664)) -- **release:** 0.5.3 ([5188fec](https://github.com/unjs/unstorage/commit/5188fec)) -- **release:** 0.5.4 ([f5efe4a](https://github.com/unjs/unstorage/commit/f5efe4a)) -- **release:** 0.5.5 ([03619f4](https://github.com/unjs/unstorage/commit/03619f4)) -- **release:** 0.5.6 ([6ad10d2](https://github.com/unjs/unstorage/commit/6ad10d2)) -- Update h3 to 0.8.0 and other dependencies to latest ([7ffb38f](https://github.com/unjs/unstorage/commit/7ffb38f)) -- Fix ci ([b3a249f](https://github.com/unjs/unstorage/commit/b3a249f)) -- Ignore local test files ([38ae640](https://github.com/unjs/unstorage/commit/38ae640)) -- Swtich to changelogen ([e6234c4](https://github.com/unjs/unstorage/commit/e6234c4)) -- **release:** V0.6.0 ([0b8e1c7](https://github.com/unjs/unstorage/commit/0b8e1c7)) -- Manually update changelog ([b576f8d](https://github.com/unjs/unstorage/commit/b576f8d)) -- Update lockfile ([7670fe2](https://github.com/unjs/unstorage/commit/7670fe2)) -- Update package.json ([7ca757a](https://github.com/unjs/unstorage/commit/7ca757a)) -- **release:** 1.0.0 ([308e9c6](https://github.com/unjs/unstorage/commit/308e9c6)) -- Update h3 to 1.x ([17d947b](https://github.com/unjs/unstorage/commit/17d947b)) -- Migrate to `ofetch` ([9e4224c](https://github.com/unjs/unstorage/commit/9e4224c)) -- **release:** 1.0.1 ([d184d4d](https://github.com/unjs/unstorage/commit/d184d4d)) -- Update dependencies ([2cf6697](https://github.com/unjs/unstorage/commit/2cf6697)) -- Update readme ([229a0eb](https://github.com/unjs/unstorage/commit/229a0eb)) -- Update readme ([960dd43](https://github.com/unjs/unstorage/commit/960dd43)) -- **release:** V1.1.0 ([59ec8f4](https://github.com/unjs/unstorage/commit/59ec8f4)) -- **release:** V1.1.1 ([6ce3e51](https://github.com/unjs/unstorage/commit/6ce3e51)) -- **release:** V1.1.2 ([5204f2a](https://github.com/unjs/unstorage/commit/5204f2a)) -- **release:** V1.1.3 ([313628b](https://github.com/unjs/unstorage/commit/313628b)) -- **release:** V1.1.4 ([bcab34b](https://github.com/unjs/unstorage/commit/bcab34b)) -- Update h3 dependency ([1e2b822](https://github.com/unjs/unstorage/commit/1e2b822)) -- **release:** V1.1.5 ([014a969](https://github.com/unjs/unstorage/commit/014a969)) -- Remove unused dependencies ([#153](https://github.com/unjs/unstorage/pull/153)) -- Add vercel.json ([10d2610](https://github.com/unjs/unstorage/commit/10d2610)) -- **release:** V1.2.0 ([75b8f35](https://github.com/unjs/unstorage/commit/75b8f35)) -- **docs:** Lintfix ([45c0b38](https://github.com/unjs/unstorage/commit/45c0b38)) -- Update badge styles ([ecf0d74](https://github.com/unjs/unstorage/commit/ecf0d74)) -- **readme:** Small improvements ([790d762](https://github.com/unjs/unstorage/commit/790d762)) -- **readme:** Add license badge ([9f1d3aa](https://github.com/unjs/unstorage/commit/9f1d3aa)) -- **release:** V1.3.0 ([39aebb9](https://github.com/unjs/unstorage/commit/39aebb9)) -- Link to the docs ([0ec20f9](https://github.com/unjs/unstorage/commit/0ec20f9)) -- **release:** V1.4.0 ([e36cee8](https://github.com/unjs/unstorage/commit/e36cee8)) -- Update lockfile ([42fae46](https://github.com/unjs/unstorage/commit/42fae46)) -- **release:** V1.4.1 ([38b3dbe](https://github.com/unjs/unstorage/commit/38b3dbe)) -- **release:** V1.5.0 ([4a51abe](https://github.com/unjs/unstorage/commit/4a51abe)) -- Add `codecov.yml` ([d6e0da3](https://github.com/unjs/unstorage/commit/d6e0da3)) -- Fix docs ([333fd44](https://github.com/unjs/unstorage/commit/333fd44)) -- **release:** V1.6.0 ([7f8a6c3](https://github.com/unjs/unstorage/commit/7f8a6c3)) -- Update eslint ([4591831](https://github.com/unjs/unstorage/commit/4591831)) -- **release:** V1.6.1 ([271b7c9](https://github.com/unjs/unstorage/commit/271b7c9)) -- Update deps ([bcf9385](https://github.com/unjs/unstorage/commit/bcf9385)) -- Update dependencies ([ba82bf0](https://github.com/unjs/unstorage/commit/ba82bf0)) -- Add type check to ci ([57e6901](https://github.com/unjs/unstorage/commit/57e6901)) -- **release:** V1.7.0 ([843a9ba](https://github.com/unjs/unstorage/commit/843a9ba)) -- Update dev dependencies ([ba44aed](https://github.com/unjs/unstorage/commit/ba44aed)) -- **release:** V1.8.0 ([c392d45](https://github.com/unjs/unstorage/commit/c392d45)) -- Update docus ([bc0be1b](https://github.com/unjs/unstorage/commit/bc0be1b)) -- Update dependencies ([1d0395d](https://github.com/unjs/unstorage/commit/1d0395d)) -- Add autofix ci ([a0a1cdd](https://github.com/unjs/unstorage/commit/a0a1cdd)) -- **release:** V1.9.0 ([b0faff7](https://github.com/unjs/unstorage/commit/b0faff7)) -- Update dependencies ([2644320](https://github.com/unjs/unstorage/commit/2644320)) -- Update dependencies and lockfile ([061f74c](https://github.com/unjs/unstorage/commit/061f74c)) -- Remove unused imports ([9e975d9](https://github.com/unjs/unstorage/commit/9e975d9)) -- **docs:** Update dependencies ([db6c5b7](https://github.com/unjs/unstorage/commit/db6c5b7)) -- **release:** V1.10.0 ([10be739](https://github.com/unjs/unstorage/commit/10be739)) -- **release:** V1.10.1 ([7b9a8ad](https://github.com/unjs/unstorage/commit/7b9a8ad)) -- **docs:** Update dependencies ([8a1f81c](https://github.com/unjs/unstorage/commit/8a1f81c)) -- Update lockfile ([e63f16b](https://github.com/unjs/unstorage/commit/e63f16b)) -- Update dependencies ([bb471c1](https://github.com/unjs/unstorage/commit/bb471c1)) -- **docs:** Update lockfile ([9c5fe17](https://github.com/unjs/unstorage/commit/9c5fe17)) -- Update lockfile ([fc9f6a9](https://github.com/unjs/unstorage/commit/fc9f6a9)) -- Update docs ([f85112f](https://github.com/unjs/unstorage/commit/f85112f)) -- Update docs ([f78ffc4](https://github.com/unjs/unstorage/commit/f78ffc4)) -- Update lint script ([4d61c78](https://github.com/unjs/unstorage/commit/4d61c78)) -- Update deps ([e48cb59](https://github.com/unjs/unstorage/commit/e48cb59)) -- Update undocs ([8be788f](https://github.com/unjs/unstorage/commit/8be788f)) -- Update vercel kv banner ([53d23e8](https://github.com/unjs/unstorage/commit/53d23e8)) -- Update lockfile ([57e719c](https://github.com/unjs/unstorage/commit/57e719c)) -- **release:** V1.10.2 ([5e40ef4](https://github.com/unjs/unstorage/commit/5e40ef4)) -- **docs:** Update lock ([7350385](https://github.com/unjs/unstorage/commit/7350385)) -- Update undocs ([83c6696](https://github.com/unjs/unstorage/commit/83c6696)) -- Update docs ([26e9d73](https://github.com/unjs/unstorage/commit/26e9d73)) -- Update dependencies ([0b1aa9c](https://github.com/unjs/unstorage/commit/0b1aa9c)) -- Update to eslint v9 ([7b8c51e](https://github.com/unjs/unstorage/commit/7b8c51e)) -- Apply new lint rules ([be542fc](https://github.com/unjs/unstorage/commit/be542fc)) -- Add benchmark script ([d84bcc6](https://github.com/unjs/unstorage/commit/d84bcc6)) -- Add bench script ([d40c206](https://github.com/unjs/unstorage/commit/d40c206)) -- Lint ([922ada9](https://github.com/unjs/unstorage/commit/922ada9)) - -### ✅ Tests - -- Custom verification point ([c91e97e](https://github.com/unjs/unstorage/commit/c91e97e)) -- Write http driver tests using storage server ([1062693](https://github.com/unjs/unstorage/commit/1062693)) -- Update ([8342654](https://github.com/unjs/unstorage/commit/8342654)) -- Update kv-binding test ([ebddeb1](https://github.com/unjs/unstorage/commit/ebddeb1)) -- Choose random ports for tests ([#72](https://github.com/unjs/unstorage/pull/72)) -- Add unit test for redis driver ([#164](https://github.com/unjs/unstorage/pull/164)) -- Add test for `lru-cache` ([a9965a8](https://github.com/unjs/unstorage/commit/a9965a8)) -- Update redis test ([6ca1f06](https://github.com/unjs/unstorage/commit/6ca1f06)) -- Add basic test for `vercel-kv` ([b47acd1](https://github.com/unjs/unstorage/commit/b47acd1)) -- Fix `vercel-kv` test ([329496c](https://github.com/unjs/unstorage/commit/329496c)) -- Skip cloudflare-kv-http on node >= 18 ([33bc9c0](https://github.com/unjs/unstorage/commit/33bc9c0)) -- Add test for `github` driver ([#259](https://github.com/unjs/unstorage/pull/259)) -- **mongo:** Update and disable tests ([44ffe1d](https://github.com/unjs/unstorage/commit/44ffe1d)) -- Skip netlify-blobs for now ([75b2353](https://github.com/unjs/unstorage/commit/75b2353)) -- **http:** Add tests for `null` value ([#365](https://github.com/unjs/unstorage/pull/365)) - -### 🎨 Styles - -- Format and lint code ([fd4e006](https://github.com/unjs/unstorage/commit/fd4e006)) -- Format readme with prettier ([ec7c7c2](https://github.com/unjs/unstorage/commit/ec7c7c2)) -- Format with prettier v3 ([22b797e](https://github.com/unjs/unstorage/commit/22b797e)) - -### 🤖 CI - -- Skip flaky azure tests ([24cfbd7](https://github.com/unjs/unstorage/commit/24cfbd7)) -- Test against node 18 ([ad09e94](https://github.com/unjs/unstorage/commit/ad09e94)) - -#### ⚠️ Breaking Changes - -- ⚠️ Simplify mount usage ([3eccf84](https://github.com/unjs/unstorage/commit/3eccf84)) -- ⚠️ RestoreSnapshot ([6e75a61](https://github.com/unjs/unstorage/commit/6e75a61)) -- **pkg:** ⚠️ Update depenencies and use explicit `cjs` extension ([477aa26](https://github.com/unjs/unstorage/commit/477aa26)) -- ⚠️ Rename `cloudflare-kv` to `cloudflare-kv-binding` ([e361f36](https://github.com/unjs/unstorage/commit/e361f36)) -- ⚠️ Use `./dist` for all subpath exports ([4f2a211](https://github.com/unjs/unstorage/commit/4f2a211)) -- ⚠️ Update dependencies and use mjs for drivers build ([e7a6c27](https://github.com/unjs/unstorage/commit/e7a6c27)) - -### ❤️ Contributors - -- Hash Brown ([@xuzuodong](http://github.com/xuzuodong)) -- Michael Brevard -- Pooya Parsa ([@pi0](http://github.com/pi0)) -- Alexander Lichter ([@manniL](http://github.com/manniL)) -- Rgehbt ([@Gehbt](http://github.com/Gehbt)) -- Sébastien Chopin ([@Atinux](http://github.com/Atinux)) -- Selemondev ([@selemondev](http://github.com/selemondev)) -- Farnabaz -- Renato Lacerda -- Harlan Wilton ([@harlan-zw](http://github.com/harlan-zw)) -- Matt Kane -- Julius Marminge -- Connor Pearson -- Kongmoumou ([@kongmoumou](http://github.com/kongmoumou)) -- Alex -- Skosh -- Dominik Opyd -- Arkadiusz Sygulski -- Jan-Henrik Damaschke -- Masious -- Boe Reh -- Patryk Tomczyk ([@patzick](http://github.com/patzick)) -- Lsh ([@peterroe](http://github.com/peterroe)) -- Mehdi ([@meduzen](http://github.com/meduzen)) -- Gustavo Conte ([@gustavoconter](http://github.com/gustavoconter)) -- Brian Evans ([@mrbrianevans](http://github.com/mrbrianevans)) -- Marco -- João Pedro Antunes Silva -- Abdurrahman Shofy Adianto -- Timbological -- Daniel Roe ([@danielroe](http://github.com/danielroe)) -- Estéban ([@Barbapapazes](http://github.com/Barbapapazes)) -- Heb ([@Hebilicious](http://github.com/Hebilicious)) -- Hebilicious ([@Hebilicious](http://github.com/Hebilicious)) -- Alex Duval ([@xlanex6](http://github.com/xlanex6)) -- 魔王少年 ([@maou-shonen](http://github.com/maou-shonen)) -- Neelansh Mathur -- Andrei Dyldin -- Dave Stewart -- Winton Welsh ([@winton](http://github.com/winton)) -- Steady Gaze -- Corentin THOMASSET -- Tejas Magade -- Jamwong-ecosa -- Yasser Lahbibi ([@yassilah](http://github.com/yassilah)) -- Yu Le -- Sacha STAFYNIAK -- Qin Guan -- Ruben Del Rio -- Cyrus Collier -- Clément Ollivier ([@clemcode](http://github.com/clemcode)) -- Corey Psoinos -- Ahad Birang -- Markthree ([@markthree](http://github.com/markthree)) -- Jan Wystub -- Josh Deltener - ## v1.10.2 [compare changes](https://github.com/unjs/unstorage/compare/v1.10.1...v1.10.2) diff --git a/package.json b/package.json index f124c8ef..bfcff0e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unstorage", - "version": "2.0.0", + "version": "1.10.2", "description": "Universal Storage Layer", "repository": "unjs/unstorage", "license": "MIT", @@ -31,15 +31,14 @@ "server.d.ts" ], "scripts": { - "fetch": "pnpm install", "build": "unbuild", "demo": "vite demo", "dev": "vitest", - "lint": "eslint . --fix && prettier -c src test demo", + "lint": "eslint . && prettier -c src test demo", "lint:fix": "eslint . --fix && prettier -w src test demo", "prepack": "pnpm build", "release": "pnpm test && changelogen --release && git push --follow-tags && pnpm publish", - "test": "pnpm lint --fix && pnpm test:types && vitest run --coverage", + "test": "pnpm lint && pnpm test:types && vitest run --coverage", "bench": "jiti test/server.bench.ts", "test:types": "tsc --noEmit --skipLibCheck", "unstorage": "pnpm jiti src/cli" @@ -154,5 +153,5 @@ "optional": true } }, - "packageManager": "pnpm@9.1.2" + "packageManager": "pnpm@9.1.1" }