features
- [
ec88cfb] - feat: support options.prefix for external store (#93) (Yiyu He <dead_horse@qq.com>)
- feat: opts.genid (#87)
- feat: support rolling (#84)
- feat: support options.ContextStore (#81)
- Create capability to create cookies that expire when browser is close… (#77)
- feat: async/await support (#70)
- fix: ctx.session should be configurable (#67)
- [BREAKING CHANGE]: Drop support for node < 4.
- [BREAKING CHANGE]: Internal implementations are changed, so some private API is changed.
- Change private api
session.save(), won't set cookie immediately now. - Remove private api
session.changed(). - Remove undocumented property context.sessionKey, can use opts.key instead.
- Change undocumented property context.sessionOptions to getter.
- Change private api
- feat: Support external store by pass options.store.
- feat: Throw when encode session error, consider a breaking change.
- feat: Clean cookie when decode session throw error, ensure next request won't throw again.
- fix: Customize options.decode will check expired now
- docs: Remove Semantics in README because it's not "guest" sessions any more
- fix: add 'session' name for middleware function (#58)
- chore(package): update dependencies
- readme: ignore favicon in example
- code: fix error in variable referencing
- custom encode/decode support
- feat: add opts.valid() and opts.beforeSave() hooks
- deps: upgrade deep-equal to 1.0.0
- fix: allow get session property before enter session middleware
- add session.maxAge
- set expire in cookie value
- improve performance by reduce hiddin class on every request
- refactor with commit() helper
- refactor error handling with finally statement
- changed cookies to be base64-encoded (somewhat breaks backwards compatibility)
- fix saving sessions when a downstream error is thrown
- remove sid from docs
- remove uid2 dep
- change: only save new sessions if populated
- update to use new middleware signature
- add change check, removing the need for
.save() - add sane defaults. Closes #4
- add session clearing support. Closes #9
- remove public
.save()