Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rename swv to swr on CacheMetadata
this was a typo, short for stale while revalidate fix #6 BREAKING CHANGE: CacheMetadata.swv has been renamed to CacheMetadata.swr for the most part this will be handled by the library (existing cache entries with `swv` will continue to work, only new ones will use `swr`) Migration: When you worked with `CacheMetadata` (for example in a custom cache adapter) you need to adapt your code to: 1. write `swr` instead of `swv` 👍 new: `const metadata: CacheMetadata = { swr: 1000, /* ... */ }` ⛔️ old: `const metadata: CacheMetadata = { swv: 1000, /* ... */ }` 2. read using the `staleWhileRevalidate` helper 👍 new: `const staleMs = staleWhileRevalidate(metadata)` ⛔️ old: `const staleMs = metadata.swv`
- Loading branch information