Closed tunniclm closed 2 years ago
Any PR you want to add to the changelog in the v7 section https://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md#v7---2022-02 would be welcome, sure.
Sure! Been a bit busy this week, here it is: https://github.com/isaacs/node-lru-cache/pull/242
Fixed by #242, thanks!
I was upgrading to latest LRUCache (from v5.x to v7.x) and didn't spot that the parameter order for the function option
dispose
has changed from(key, value)
to(value, key, reason)
. I probably would have spotted this if it were mentioned in the breaking changes forv7.0.0
in the CHANGELOG, would you consider adding a note about this?Also, I see that
del()
got (mostly) removed from the README, should it be avoided now/is it deprecated?