Change8

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

  1. Replace 'new LocalFileStorage(path)' with 'createFsFileStorage(path)'.
  2. Replace 'new MemoryFileStorage()' with 'createMemoryFileStorage()'.
  3. Update import path for FS storage from '@remix-run/file-storage/local' to '@remix-run/file-storage/fs'.

🔧 Affected Symbols

LocalFileStorageMemoryFileStoragecreateFsFileStoragecreateMemoryFileStorage