Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Update to support Koa 3 version #56

Open
batjko opened this issue May 1, 2017 · 5 comments
Open

Update to support Koa 3 version #56

batjko opened this issue May 1, 2017 · 5 comments

Comments

@batjko
Copy link

batjko commented May 1, 2017

For example, Exercise 1 still tells you to use app = koa() instead of the class-based notation (app = new Koa()).
And once you change this, koa tells you that generators are now deprecated and will be removed:

PS D:\koa-test1> node server
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/mas
ter/docs/migration.md server.js:6:5

I don't know when v3 comes out, but it seems this repo is already out of date for the current version, so it makes sense to go straight to v3.

@batjko batjko changed the title Update to support new Koa version Update to support Koa 3 version May 1, 2017
@kenlyon
Copy link

kenlyon commented May 6, 2019

I was about to log something similar when I saw you already did so... two years ago! I think it'd be great if the examples used the newer syntax of ``async (ctx, next) => { }withawait next()` rather than generator functions.

Not holding my breath, though. Doesn't look like there's much activity on this project. Otherwise, it was very helpful for getting up and running with Koa, mind you!

@batjko
Copy link
Author

batjko commented May 6, 2019

I think it'd be great if the examples used the newer syntax of ``async (ctx, next) => { } with await next()` rather than generator functions.

Agreed

@kenlyon
Copy link

kenlyon commented May 7, 2019

I discovered that there is a pull request that does just that. Sadly, it's been waiting for approval since December. #58

@CharidimosTzedakis
Copy link

I see that #58 has been merged but no release made. Can I help somehow to move it on?

@scorbiclife
Copy link

scorbiclife commented Dec 10, 2021

While waiting for this to get published to npm, one could try installing from git as a workaround:
npm install git+https://github.com/koajs/kick-off-koa
(N.B. I installed kick-off-koa in a local directory and used npx kick-off-koa for running it, I don't think that's relevant here but just in case)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants