Closed ayal closed 2 years ago
I'd suggest using babeljs or similar.
The ES5 compatibility was dropped when classes were used in commit https://github.com/isaacs/node-lru-cache/commit/9ce69193c4cefbeee27e759b1cf94e02a3eadf8b, which was released with v5.0.0
This is written for node. If someone wants to use the code in browsers, deno, refrigerators, that's lovely, but it's on them to make it work.
Is this package written only for node? some packages already use it in client side code:
https://github.com/kuitos/axios-extensions/issues/74
So maybe it makes sense to keep es5 compatibility when releasing?