danneu / koa-bouncer

⛔ an http param validator for koa apps
62 stars 12 forks source link

Koa 2.0 #8

Closed onbjerg closed 8 years ago

onbjerg commented 8 years ago

Does this work with Koa 2?

danneu commented 8 years ago

@onbjerg No. I happen to only be working on Koa 1 projects. It's definitely a TODO and involves basically changing all the this to ctx afaict.

onbjerg commented 8 years ago

@danneu Sort of. There's no generator functions in Koa 2 either.

Is this something you would be interested in having as a @2 or @next tag?

danneu commented 8 years ago

Thanks again. https://github.com/danneu/koa-bouncer/tree/next

varHarrie commented 8 years ago

How to install for Koa v2? koa-bouncer@next or koa-bouncer@2?

danneu commented 8 years ago

@varHarrie it's koa-bouncer@next. Sorry, need to document it better.

I look forward to the ecosystem advancing past the koa 1 vs 2 limbo.