Skip to content

Releases: jurerotar/opfs-mock

2.1.0

26 Feb 20:27
Compare
Choose a tag to compare

What's Changed

  • feat: added locked state to sync access handle, updated exceptions, added asyncIterator, added missing options to removeEntry, fixed StorageManager.estimate, added keepExistingFlag to createWritable, fixed FileSystemDirectoryHandle.resolve by @jurerotar in #2

Full Changelog: 2.0.0...2.1.0

2.0.0

21 Feb 13:47
Compare
Choose a tag to compare

Full Changelog: https://github.com/jurerotar/opfs-mock/compare/1.0.2...2.0.0

Breaking Changes:

  • Previous version included incorrect implementation of WritableStream.write() and WritableStream.close()˙. Previously, contents would be updated as soon as you called WritableStream.write(). This is not correct, as the standards dictate contents to only get written on calling WritableStream.close(). Version 2.0.0 fixes this. If your tests don't include WritableStream.close() call, make sure you add it! (Related issue: #1)

Features

  • Implemented WriteParams argument to WritableStream.write() method.
  • Added missing WritableStream.truncate(), WritableStream.seek()
  • Implemented WritableStream.abort()

1.0.2

16 Jan 16:56
Compare
Choose a tag to compare

1.0.1

12 Jan 11:26
Compare
Choose a tag to compare


39074d3
- feat: renamed storage to storageFactory, added storageFactory args, fixed vite config type issue, updated readme, updated deps