koajs / session

Simple session middleware for koa
MIT License
902 stars 113 forks source link

Mention Node ^7.6 or ^8 as requirement in Docs #79

Closed myyellowshoe closed 7 years ago

myyellowshoe commented 7 years ago

I recently installed this package, and got some fun errors around async/await in the package:

koa-session/index.js:37
  return async function session(ctx, next) {
               ^^^^^^^^
SyntaxError: Unexpected token function

Upon to updating to Node 8.10 all is well, and right in the world. Normally this probaby wouldn't be needed, but since I'm sure alot of folks (like me) are still running a node v6 of some kind, would be handy to mention it.

Created a pull request: https://github.com/koajs/session/pull/78

dead-horse commented 7 years ago

closed via #78