2.0.0
Major
-
💥 default import
session()
is replaced with named importwithSession()
:// 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)