Releases: jurerotar/opfs-mock
Releases · jurerotar/opfs-mock
2.1.0
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
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()
andWritableStream.close()˙
. Previously, contents would be updated as soon as you calledWritableStream.write()
. This is not correct, as the standards dictate contents to only get written on callingWritableStream.close()
. Version2.0.0
fixes this. If your tests don't includeWritableStream.close()
call, make sure you add it! (Related issue: #1)
Features
- Implemented
WriteParams
argument toWritableStream.write()
method. - Added missing
WritableStream.truncate()
,WritableStream.seek()
- Implemented
WritableStream.abort()