bestfetch
bestfetch copied to clipboard
v5.0.0
Todo:
- [x] More tests
- [x] Test read policy based on access count
- [x] Settle on final names for options
- [x] cache policy fn naming
- [x]
activeRequests=>duplicateRequests - [x]
cachePolicy/saveToCacheoptions / names - [x]
cacheWritePolicy=> something related to cacheable responses - [x]
cacheReadPolicy=> something related to freshness - [x]
defineFreshness=>defineStaleness - [x] Default writes to
"no-cache"
- [x] Update docs
- [x] Rename things
- [x] Add freshness definition docs
- [x] Add
responseCache.isFreshdocs - [x] Add
no-cachecachePolicy docs - [x] Add warning to
activeRequests.clear() - [x] Add docs for
defineCacheableResponse - [ ] New filesize (< 2kb gzipped)
- [x] TypeScript ( #72 )
- [ ] Consistent error format when Promise rejects
- [ ] Update docs with rejected Promise
- [ ] Go through the code once more in detail
- [ ] Go through the docs once more in detail
- [ ] Publish beta to try it out