- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 995
 
Open
Description
I’m opening this issue to discuss a potential version 2 of express-session. Here are some things that could be included in this version 2:
- Drop support for Node.js <18.
 - Code modernization (Migrate to new ES syntax)
 - Add type definition files (.d.ts).
 - Use cookie v1, which introduces breaking changes.
 - Add support for HTTP/2 (there’s a PR that partially addresses this refactor: replaced _implicitHeader #908).
 - Fix the res.end error: Proxy res.end(callback) calls correctly #751.
 - Do not remove the legacy session: feat: Option to allow regenerate() to preserve old session #419
 - Allow 
OPTIONS *requests to pass cookie path check for default setting #977. - Provide an asynchronous API: [FEATURE REQUEST] Session Async Methods #952 feat: Promise API fastify/session#78.
 - Improve debug mode: src: more debug statements #708 additional debug statements #986.
 
These are the issues and PRs I’ve identified as relevant for a version 2. I’d appreciate any feedback to move forward with modernizing this package.
cc: @expressjs/session-collaborators @UlisesGascon @expressjs/express-tc
IamLizu, jb9k62, rhues and casantosmuUlisesGascon, rhues and theneva