npm p-memoize 6.0.0

latest releases: 7.1.1, 7.1.0, 7.0.0...
3 years ago

Breaking

  • Remove maxAge option 19b418e
    • For a custom cache, this means instead of .set() being provided an object with the properties value and maxAge, it will only be provided value as the first argument.
    • How to preserve max age functionality.

Improvements

  • The custom cache can now be async by returning a promise in the .get() and .has() cache methods
  • Promises returned from a memoized function will be cached internally and take priority over cache. The promise cache does not persist outside of the current instance and properties assigned to a returned promise will not be kept. The custom cache will be provided the values of resolved promises instead of the promises themselves.

v5.0.1...v6.0.0

Don't miss a new p-memoize release

NewReleases is sending notifications on new releases.