session@0.4.0
Breaking Changes📦 remixView on GitHub →
⚠ 1 breaking✨ 2 features🔧 6 symbols
Summary
This release introduces a formal Session class and renames the file-based session storage utility to createFsSessionStorage with a new export path.
⚠️ Breaking Changes
- createFileSessionStorage has been renamed to createFsSessionStorage and moved to a different export path. Update imports from @remix-run/session/file-storage to @remix-run/session/fs-storage.
Migration Steps
- Update imports of 'createFileSessionStorage' from '@remix-run/session/file-storage' to 'createFsSessionStorage' from '@remix-run/session/fs-storage'.
- Rename all calls of 'createFileSessionStorage(...)' to 'createFsSessionStorage(...)'.
✨ New Features
- Introduced the Session class, allowing sessions to be instantiated via 'new Session()' in addition to the 'createSession' factory function.
- The 'createSession' function now returns an instance of the Session class.
🔧 Affected Symbols
SessioncreateSessioncreateFileSessionStoragecreateFsSessionStorage@remix-run/session/file-storage@remix-run/session/fs-storage