-
Add
Sessionclass. ThecreateSessionfunction now returns an instance of theSessionclass.// 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
createFileSessionStoragetocreateFsSessionStorageand 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')