I believe there is a bug in the storage options object. The documentation references options.invalidation, the code base expects options.invalidate (also referenced in the TS types), and the underlying createCache() method from async-cache-dedupe expects options.invalidation.
I believe there is a bug in the storage options object. The documentation references
options.invalidation
, the code base expectsoptions.invalidate
(also referenced in the TS types), and the underlyingcreateCache()
method fromasync-cache-dedupe
expectsoptions.invalidation
.References to the code points Storage object validation - https://github.com/mercurius-js/cache/blob/main/lib/validation.js#L152 Storage object passed directly to
async-cache-dedupe
- https://github.com/mercurius-js/cache/blob/main/index.js#L43 Usage inasync-cache-dedupe
- https://github.com/mcollina/async-cache-dedupe/blob/main/src/storage/memory.js#L30I'm happy to raise a PR for this, just wanted to check I'm not missing something first