- Added mixins for adding implementations for various use cases:
Sync: Implements async methods using the sync methodsAsync: Implements sync methods to throwENOTSUPReadonly: Implements methods that makes changes to throwEROFS- They are used in the extends clause by wrapping any base file system, like so:
class MyFS extends Readonly(Sync(FileSystem)) { /* ... */ }
- Note that decorators are not used since they can not modify the resulting type.
- Removed
SyncFileSystem,AsyncFileSystem,ReadonlySyncFileSystem, andReadonlyAsyncFileSystem(use mixins) - Changed
LockedFSto named export - Narrowed usage of
no-unused-varsinfilesytem.ts - Removed
isIndexDirInodeandisIndexFileInode(bloat) - Renamed
IndexInode.isDirtoIndexInode.isDirectory - Exported
ListingQueueNode - Removed
FileSystem.Name - Added
publicmodifier toFileSystemmembers that were missing it. - Readded
FileIndex - Added
FileIndexFS,SyncFileIndexFS, andAsyncFileIndexFS