Skip to content

2.0.0

Compare
Choose a tag to compare
@hoangvvo hoangvvo released this 28 Aug 21:53
· 316 commits to master since this release

Major

  • 💥 default import session() is replaced with named import withSession():

    //  BEFORE
    import session from 'next-session';
    //  AFTER
    import { withSession } from 'next-session';
    //  BEFORE
    export session(handler);
    //  AFTER
    export withSession(handler);

Minor

  • ✨ withSession now supports getInitialProps for _app, _document, and pages. (#20)