Breaking change both for p-memoize (because rejections are cached by default) and for mem because mem.clear(() => {}) now throws.
But probably the next breaking change for mem would probably be dropping the cachePromiseRejection there and moving it to p-memoize, so p-memoize has a reason to exist.
🤷♂️
Breaking change both for
p-memoize
(because rejections are cached by default) and formem
becausemem.clear(() => {})
now throws.But probably the next breaking change for
mem
would probably be dropping thecachePromiseRejection
there and moving it top-memoize
, sop-memoize
has a reason to exist.