features
- [
4cd3bef
] - feat: Add Session.regenerate() method (#221) (Jürg Lehni <[email protected]>)
fixes
- [
e2de39e
] - fix: keep crc v3 (#223) (fengmk2 <[email protected]>)
features
- [
878669e
] - feat: update uuid to v8 (#218) (zhennann <[email protected]>)
others
- [
df2d28f
] - test: run ci on GitHub Action (#222) (fengmk2 <[email protected]>)
features
- [
7cde341
] - feat: add session.externalKey (#207) (Yiyu He <[email protected]>)
features
- [
32e3526
] - feat: add context to external store .get() and .set() options params (#201) (Ngorror <[email protected]>)
others
- [
f765595
] - chore: Create LICENSE File (#195) (Dominic Egginton <[email protected]>) 6.0.0 / 2020-04-26 ==================
fixes
- [
d34fc8e
] - fix: RFC6265 compliant default cookie name (#197) (zacanger <[email protected]>)- [BREAKING CHANGE]: Default cookie is now
koa.sess
rather thankoa:sess
- [BREAKING CHANGE]: Default cookie is now
fixes
- [
ecd1f5e
] - fix: don't set any value to sameSite by default (#194) (fengmk2 <[email protected]>)
features
- [
cb09a09
] - feat: support session cookie sameSite options (#193) (fengmk2 <[email protected]>)
fixes
- [
909d93f
] - fix: correctly expire cookies for nullified sessions (Justin <[email protected]>)
fixes
- [
c23bab4
] - fix: remvoe unused code (dead-horse <[email protected]>)
fixes
- [
77968e3
] - fix: ensure ctx.session always has value (dead-horse <[email protected]>)
features
- [
39ca830
] - feat: add the parameter "ctx" to the function "genid" so can get the … (#173) (松松 <[email protected]>)
others
- [
3d57a44
] - docs: add genid(ctx) in readme (dead-horse <[email protected]>)
features
- [
b79134d
] - feat: make sure session id is global unique (#170) (fengmk2 <[email protected]>)
fixes
- [
c2b4259
] - fix: remove package-lock.json (fengmk2 <[email protected]>)
others
- [
23ad871
] - deps: Fix security vulnerabilities from npm audit (#163) (Douglas Wade <[email protected]>) - [
1600aab
] - test: changed "ctx.session is mockable" tests names to more appropriate (#158) (Vitaliy Zaytsev <[email protected]>)
features
- [
5f12f70
] - feat: allow init multi session middleware (#159) (killa <[email protected]>)
fixes
- [
89c048a
] - fix: moved "pedding" package to dev dependencies (#155) (Vitaliy Zaytsev <[email protected]>)
features
- [
81906f7
] - feat: support options.externalKey #88 (#149) (Tree Xie <[email protected]>)
features
- [
7241400
] - feat: Add autoCommit option (#139) (Jonas Galvez <[email protected]>)
fixes
- [
6f1a41c
] - fix: session not works (#136) (吖猩 <[email protected]>)
others
- [
95272ff
] - fix typo in README.md (#134) (Maples7 <[email protected]>)
fixes
- [
c487944
] - fix: Fixes a bug that reset the cookie expire date to the default (1 day) when using browser sessions (maxAge: 'session') (#117) (Adriano <[email protected]>)
others
- [
9050605
] - deps: Upgrade debug@^3.1.0 (#107) (Daniel Tseng <[email protected]>) - [
c48e1e0
] - Update Readme.md (#123) (Wellington Soares <[email protected]>)
fixes
- [
bdb4fd4
] - fix: ensure store expired after cookie (dead-horse <[email protected]>)
features
- [
bb5f4bf
] - feat: support opts.renew (#111) (Yiyu He <[email protected]>)
fixes
- [
72fa5fe
] - fix: emit event in next tick (dead-horse <[email protected]>)
features
- [
a2401c8
] - feat: emit event expose ctx (dead-horse <[email protected]>)
features
- [
f00c1ef
] - feat: emit events when session invalid (#108) (Yiyu He <[email protected]>)
others
- [
b976b10
] - perf: no need to assign opts (#103) (Yiyu He <[email protected]>) - [
c040b59
] - chore: fix example bug and use syntactic sugar (#97) (Runrioter Wung <[email protected]>) - [
906277a
] - docs: copyediting (#85) (Nate Silva <[email protected]>)
features
- [
ec88cfb
] - feat: support options.prefix for external store (#93) (Yiyu He <[email protected]>)
- 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()