Skip to content

1.10.2

Compare
Choose a tag to compare
@james-pre james-pre released this 13 Feb 21:04
· 43 commits to main since this release
v1.10.2
ea962dd

Refactored Overlay (now CopyOnWrite)

  • Renamed to CopyOnWrite for clarity (all of the old names are still available but deprecated)
  • Rewrote CopyOnWrite to use a journal
  • Added a new internal API for journaling
  • Fixed readdir not tracking deletions correctly
  • Moved journal initialization logic to create
  • Fixed the CoW test setup and enabled CoW tests
  • Cleaned up directory tests
  • Removed an incorrect directory test for permissions

Fixes to Streams

  • createReadStream now supports the start and end options (#175)
  • createWriteStream now supports the start option
  • Removed the problematic @types/readable-stream dependency
    • The types for Readable and Writable are now pulled from @types/node
    • You should not install @types/readable-stream alongside ZenFS!
  • Added tests for start and end with createReadStream
  • Cleaned up the createWriteStream and readableWebStream methods of FileHandle
  • Cleaned up the createWriteStream function
  • Cleaned up streams tests

Other changes

  • Removed incorrect modification of AsyncIterableIterator (#158)
  • Corrected the return type of fs.promises.watch from AsyncIterableIterator to AsyncIteratorObject
  • Improved error messages test to check for ENOENT on missing items
  • Polyfills now log warnings and aren't considered in test coverage
  • Fixed Async#_patchAsync calling the sync method recursively
  • Removed trailing period on many log/error messages
  • Fixed Async never updating the sync cache when a sync method is called
  • Async#_patchAsync now gets the keys dynamically
  • Fixed FileHandle.write's behavior when the encoding was null