isaacs / node-lru-cache

A fast cache that automatically deletes the least recently used items
http://isaacs.github.io/node-lru-cache/
ISC License
5.38k stars 353 forks source link

Deprecation checks in v7 break browser compatability #206

Closed tavogel closed 2 years ago

tavogel commented 2 years ago

The deprecation checks are using process, which is only available in a Node.js context.

https://github.com/isaacs/node-lru-cache/blob/2be1d2436218360dbf4c673088323b88840bcd24/index.js#L27-L31

Uncaught (in promise) TypeError: process.emitWarning is not a function