multimeric / koa-pg-session

A model implementation of sessions for koa using postgres as the backend
10 stars 7 forks source link

Update package.json #6

Closed vitaly-t closed 8 years ago

vitaly-t commented 8 years ago

Latest 2.6 implements proper support of ES6 generators alongside promises.

multimeric commented 8 years ago

Generator coroutines accept any promise that is yielded. And as far as I know the whole point of pg-promise is to return promises, so in theory any version of pg-promise should work here.

All that version 2.6 appears to add is support for generator 'tasks' (db.task) which are generators. I am not making use of this feature, and hence don't need to bump the pg-promise version.

vitaly-t commented 8 years ago

It's up to you, of course. By the way, the library was just upped to 2.7.0 ;)