Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 2.14 KB

CHANGELOG.md

File metadata and controls

71 lines (45 loc) · 2.14 KB

4.0.0 (2024-06-20)

  • BREAKING CHANGE: The maxAge option now ensures that the cache becomes invalid after the specified cache lifetime is reached based on stats.mtimeMs (last modification time of the cache file) instead of relying on an in memory timeout that invalidates the cache. This ensures that cache life times are evaluated correctly between multiple processes.

How to upgrade

If you are using the maxAge option, ensure that you add the option to every memoizer.fn call (if you have multiple) to reliably check cache validity. Most probably this is already the case in your application, and you don't need to change anything.

3.0.4 (2024-03-06)

  • style: improve typing by using Awaited instead of our custom EnsurePromise type

3.0.3 (2024-03-03)

  • fix: void 0 build issue
  • fix: do not minify (mangle) identifiers in bundle
  • fix: do not bundle meriyah dependency

3.0.2 (2024-03-01)

  • fix: importing fails with moduleResolution set to node16

3.0.1 (2024-03-01)

  • fix: instead of Promise<Promise<T>>, return Promise<T>

3.0.0 (2023-02-20)

  • BREAKING CHANGE: drop support for node < 18
  • BREAKING CHANGE: memoize-fs is now an esm module
  • BREAKING CHANGE: stricter types (see dist/index.d.ts)

2.2.0 (2020-08-31)

  • feat: add retryOnInvalidCache option (#27)

2.1.0 (2020-02-28)

  • feat: support custom serialize & deserialize through options

2.0.0 (2020-02-03)

  • BREAKING CHANGE: drop support for node < 10
  • fix: shift-parser throws when we try to use astBody: true (#17)
  • update all dependencies

1.4.1 (2018-07-29)

  • fix: run the memoized function once even when called with the same arguments on the same tick
  • updated dependencies

1.4.0 (2017-08-27)

  • adding getCacheFilePath to constructed memoizer

1.3.0 (2017-08-26)

  • exporting getCacheFilePath method

1.2.0 (2017-08-26)

  • added astBody option

1.1.0 (2017-02-05)

  • added timed cache invalidation with option maxAge

1.0.5 (2016-11-22)

  • updated es6-promise@^4.0.5

1.0.4 (2015-08-11)

  • updated es6-promise@^3.0.0

1.0.3 (2015-06-14)

  • updated rimraf@^2.4.0
  • using mkdirp@^0.5.0
  • added CHANGELOG.md