Closed Richienb closed 3 years ago
CI is failing.
For future reference, it would have been better if this pull request was split into a separate pull request for each issue it fixed. Massive pull requests are a pain to review.
Does this introduce any breaking changes other than removal of maxAge
? Would you be able to list the changes in this PR which can be used for the release notes?
.get()
and .has()
cache methods to return a promisemaxAge
option. 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.cache
. The promise cache does not persist outside of the current instance and properties assigned to a returned promise will not be kept.cache
will be provided the values of resolved promises instead of the promises themselves.@Richienb Thanks for working on this. This is ready to be released right? There are no more planned breaking changes?
@sindresorhus Nothing else from me - it's good to go.
Hallelujah! Thanks for working on this @Richienb
Fixes #3, Fixes #14, Closes #19