file-storage@0.13.0
Breaking Changes📦 remixView on GitHub →
⚠ 2 breaking🔧 4 symbols
Summary
This release introduces breaking changes to file storage by replacing the LocalFileStorage and MemoryFileStorage classes with factory functions and updating import paths.
⚠️ Breaking Changes
- LocalFileStorage class has been replaced with the createFsFileStorage(directory) factory function.
- MemoryFileStorage class has been replaced with the createMemoryFileStorage() factory function.
Migration Steps
- Replace 'new LocalFileStorage(path)' with 'createFsFileStorage(path)'.
- Replace 'new MemoryFileStorage()' with 'createMemoryFileStorage()'.
- Update import path for FS storage from '@remix-run/file-storage/local' to '@remix-run/file-storage/fs'.
🔧 Affected Symbols
LocalFileStorageMemoryFileStoragecreateFsFileStoragecreateMemoryFileStorage