koajs / koa-hbs

Handlebars templates for Koa.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for generators will be removed

wzalazar opened this issue · comments

Hi, I have the following issue, I'm using koa 2.4.1

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

@wzalazar hey there. you didn't actually state what your issue was. might want to start there.

The problem is Koa2 no support generator anymore. Do you have any plan for supporting Koa2?
This is explained in the link https://github.com/koajs/koa/blob/master/docs/migration.md

I think what you wanted to say was that Koa v3 doesn't support the generator patterns any longer. Koa v2 has deprecated support for them. We have no immediate plans for updating this module, but if you're interested in opening a Pull Request to add support, we'd happily examine it for a new major version of koa-hbs.

Closing in favor of #77. Please do take a look at that list and contribute. Invitation is open to all.

I think what you wanted to say was that Koa v3 doesn't support the generator patterns any longer. Koa v2 has deprecated support for them. We have no immediate plans for updating this module, but if you're interested in opening a Pull Request to add support, we'd happily examine it for a new major version of koa-hbs.

Why is Koa no longer supporting generator functions?