I convert the sources to use async/await syntax for koa 2. All test passed, the tests has been rewritten too of course to be compatible with koa 2.
But, I think there is a serious problem in ctx.session getter/setter. It has side effect when accessing
ctx.session which can cause problem. Even though all tests pass, I think that getter/setter API
should be changed.
I convert the sources to use
async/await
syntax for koa 2. All test passed, the tests has been rewritten too of course to be compatible with koa 2.But, I think there is a serious problem in
ctx.session
getter/setter. It has side effect when accessingctx.session
which can cause problem. Even though all tests pass, I think that getter/setter API should be changed.