ysocorp / koa2-ratelimit

Rate-limiting middleware for Koa2 ES6. Use to limit repeated requests to APIs and/or endpoints such as password reset.
MIT License
120 stars 37 forks source link

Optional store dependencies #41

Closed yveskaufmann closed 2 years ago

yveskaufmann commented 2 years ago

The package currently installs all dependencies that are required for all stores even if you need only one or none of them.

This PR addressed that by marking these dependencies as peering dependencies and that these packages are only loaded when the store is used.

I think this PR addresses also the issue: https://github.com/ysocorp/koa2-ratelimit/issues/20.