tunnckoCore / koa-better-ratelimit

:rocket: Smart and easy request rate limiter for your APIs built on `koa`, using `koa-ip-filter`. Support custom stores, custom ID, custom error messages and custom headers.
http://j.mp/1stW47C
MIT License
38 stars 6 forks source link

Koa 2 full support for async/await [feature request] #14

Open damianobarbati opened 7 years ago

damianobarbati commented 7 years ago

Currently throwing this alert because of old generator signature.

0|react-ap | Mon, 09 Oct 2017 08:47:12 GMT koa deprecated Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/master/docs/migration.md
0|react-ap |     at Object.<anonymous> (/Users/damz/Desktop/react-app/index.js:23:5)
0|react-ap |     at Module._compile (module.js:624:30)
0|react-ap |     at Object.Module._extensions..js (module.js:635:10)
0|react-ap |     at Module.load (module.js:545:32)
0|react-ap |     at tryModuleLoad (module.js:508:12)
0|react-ap |     at Function.Module._load (module.js:500:3)
tunnckoCore commented 7 years ago

I know. but they are just warnings, because koa still handles/accepts generators. I will get it done when get time or before koa v3