🤑 wrap virtually everything that can store by key to act as cache with ttl/max-age, stale-while-validate, parallel fetch protection and type-safety support
MIT License
916
stars
26
forks
source link
Prefer type inference from options#getFreshValue over reporter #93
This fixes an issue where the unknown Value type of some reporters has been infered by cachified thereby ignoring the much more useful return type of getFreshValue
This fixes an issue where the
unknown
Value type of some reporters has been infered by cachified thereby ignoring the much more useful return type ofgetFreshValue
fix https://github.com/epicweb-dev/cachified/issues/70
BREAKING CHANGE:
CachifiedOptions#reporter
has been removed in favor of passing a reporter as second argument to cachifiedMIGRATION: Change
cachified({ reporter: myReporter /* ... */ })
tocachified({ /* ... */ }, myReporter)