Releases: hoangvvo/next-session
Releases · hoangvvo/next-session
v3.3.0
v3.2.5
v3.2.4
3.2.3
3.2.1
3.2.0
3.1.0
- Add encode/decode options (#114)
Huge thanks to @ealtunyay and @andreisena for helping!
3.0.1
3.0.0
- 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 withapplySession
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 usingpromisifyStore
:
// BEFORE
const options = {
storePromisify: true,
store: new SessionStore({ ...storeOptions })
}
// AFTER
import { promisifyStore } from 'next-session';
const options = {
store: promisifyStore(new SessionStore({ ...storeOptions }))
};