- Breaking change: Now requires at least Node.js 12.x
- Possibly breaking change: Align session expiration logic with connect-redis which in turned aligned with connect-mongo. Fixes #54.
- Minor breaking change: The
.close()
method is now async and returns aPromise
that will be resolved when this session store is fully shut down. Fixes #183. - Feature: New option:
disableTouch
. Disables updating of TTL in database on touch. Fixes #55. - Feature: New option:
createTableIfMissing
. When set, the session table will be automatically created if missing. Fixes #158 and #173. Thanks @aadeshmisra! - Tweak: Slightly tweaked the pg-promise integration. Fixes #153.
- Tweak: Introduced a new internal
_asyncQuery()
function in a move to modernize internal code on top of Promise / async / await.