Skip to content

Releases: hoangvvo/next-session

v3.3.0

31 Aug 08:33
Compare
Choose a tag to compare
  • Remove the need to use promisifyStore and refactor (#257)
  • Bump dependencies

v3.2.5

17 Aug 20:47
Compare
Choose a tag to compare
  • Fix autoCommit usage with res.writeHead (#253)
  • Improve types and undo #240 (#252)

v3.2.4

07 Aug 04:20
Compare
Choose a tag to compare
  • Avoid calling session.commit more than once (#240)

3.2.3

30 May 12:57
Compare
Choose a tag to compare
  • Add new compatible layer for express-session stores (#157)

3.2.1

28 May 06:12
Compare
Choose a tag to compare

Patches

  • Improve type compatibility for promisifyStore (#151)

3.2.0

28 May 06:12
Compare
Choose a tag to compare

3.2.0

Minor

  • Rewrite in TypeScript (#147)

3.1.0

15 Apr 21:15
Compare
Choose a tag to compare
  • Add encode/decode options (#114)

Huge thanks to @ealtunyay and @andreisena for helping!

3.0.1

14 Mar 19:25
Compare
Choose a tag to compare
  • [Security] Bump acorn from 6.3.0 to 6.4.1 (#86)
  • Fix server hanging on redirect (#88)

3.0.0

12 Mar 06:18
Compare
Choose a tag to compare
  • Usage in Pages: Better integration with React.js and Next.js (#63) (Using HOC pattern)
  • Use nanoid for default session ID generation (#85) (Reduce 100kb of build size)
  • Store no longer has to extend nextSession.Store (#83)
  • Update documentation

💥 Breaking changes

  • maxAge is now in second and no longer parses date string (remove f487b1c).
  • useSession is replaced with applySession
  • connect middleware is now a named import:
//  BEFORE
import session from 'next-session';
//  AFTER
import { session } from 'next-session';
  • options.storePromisify is removed. You must promisify the store that uses callbacks using promisifyStore:
// BEFORE
const options = {
  storePromisify: true,
  store: new SessionStore({ ...storeOptions })
}

// AFTER
import { promisifyStore } from 'next-session';
const options = {
  store: promisifyStore(new SessionStore({ ...storeOptions }))
};

2.2.0

05 Feb 22:28
Compare
Choose a tag to compare

Minor

  • Allow manual session commit (#59)

Patches

  • Futhur check for headersSent (dd561a7)