github remix-run/remix session@0.4.0
session v0.4.0

latest releases: method-override-middleware@0.1.1, static-middleware@0.3.0, fetch-router@0.12.0...
8 hours ago
  • Add Session class. The createSession function now returns an instance of the Session class.

    // You can now create sessions using either approach:
    import { createSession, Session } from '@remix-run/session'
    
    // Factory function
    let session = createSession()
    
    // Or use the class directly
    let session = new Session()
  • BREAKING CHANGE: Rename createFileSessionStorage to createFsSessionStorage and export from @remix-run/session/fs-storage

    // before
    import { createFileSessionStorage } from '@remix-run/session/file-storage'
    let storage = createFileSessionStorage('/tmp/sessions')
    
    // after
    import { createFsSessionStorage } from '@remix-run/session/fs-storage'
    let storage = createFsSessionStorage('/tmp/sessions')

Don't miss a new remix release

NewReleases is sending notifications on new releases.