Skip to content

0.3.0

Pre-release
Pre-release

Choose a tag to compare

@james-pre james-pre released this 15 Mar 22:39
· 1634 commits to main since this release
cf02874
  • Added mixins for adding implementations for various use cases:
    • Sync: Implements async methods using the sync methods
    • Async: Implements sync methods to throw ENOTSUP
    • Readonly: Implements methods that makes changes to throw EROFS
    • 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, and ReadonlyAsyncFileSystem (use mixins)
  • Changed LockedFS to named export
  • Narrowed usage of no-unused-vars in filesytem.ts
  • Removed isIndexDirInode and isIndexFileInode (bloat)
  • Renamed IndexInode.isDir to IndexInode.isDirectory
  • Exported ListingQueueNode
  • Removed FileSystem.Name
  • Added public modifier to FileSystem members that were missing it.
  • Readded FileIndex
  • Added FileIndexFS, SyncFileIndexFS, and AsyncFileIndexFS