Skip to content

Releases: amphp/file

3.1.0

21 Apr 15:10
v3.1.0
1d51235
Compare
Choose a tag to compare

What's Changed

  • Add FileCache class by @Nadyita in #83
  • Add KeyedFileMutex by @bwoebi in #62
  • Made implicit nullable types explicit to avoid deprecation notice in PHP 8.4

New Contributors

Full Changelog: v3.0.2...v3.1.0

3.0.2

27 Dec 22:56
v3.0.2
45d8d84
Compare
Choose a tag to compare

What's Changed

  • Fixed detecting if a file is writing from the file mode when r+ (or similar) is used as the mode. (#77)
  • Fixed assertion failing during shutdown destruction of ParallelFilesystemDriver. (#81)

Full Changelog: v3.0.1...v3.0.2

3.0.1

23 Jul 19:04
v3.0.1
efeb737
Compare
Choose a tag to compare

What's Changed

  • Fix touch() on non-existent files in ext-uv and ext-eio by @kelunik (#73)
  • Fix write() truncation with ext-uv and ext-eio by @danog in (#76)

Full Changelog: v3.0.0...v3.0.1

3.0.0

02 Mar 22:41
v3.0.0
1c9f0eb
Compare
Choose a tag to compare

Stable release compatible with AMPHP v3 and fibers! 🎉

As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

  • Renamed BlockingDriver to BlockingFilesystemDriver
  • Renamed EioDriver to EioFilesystemDriver
  • Renamed ParallelDriver to ParallelFilesystemDriver
  • Renamed StatusCachingDriver to StatusCachingFilesystemDriver
  • Renamed UvDriver to UvFilesystemDriver
  • Renamed Amp\File\Sync\AsyncFileMutex to Amp\File\FileMutex
  • Added ?Cancellation as first parameter of File::read()
  • Added File::isSeekable()
  • Removed File::SEEK_SET, File::SEEK_CUR, and File::SEEK_END
  • Added Amp\File\Whence for seeking instead

3.0.0 Beta 6

08 Jan 18:25
v3.0.0-beta.6
bac8157
Compare
Choose a tag to compare
3.0.0 Beta 6 Pre-release
Pre-release
  • Fixed compatibility with v2.0 of amphp/byte-stream by updating File implementations to also implement Traversable.

3.0.0 Beta 5

18 Nov 18:52
v3.0.0-beta.5
d68ac6d
Compare
Choose a tag to compare
3.0.0 Beta 5 Pre-release
Pre-release
  • Fixed PendingOperationError being thrown after several seek-then-write operations in UvFile and EioFile.

3.0.0 Beta 4

07 Nov 23:02
v3.0.0-beta.4
c920711
Compare
Choose a tag to compare
3.0.0 Beta 4 Pre-release
Pre-release
  • Added compatibility with Revolt v1.x
  • Fixed (removed) file truncation in append modes with ext-eio
  • Fixed tell behavior in blocking implementation for append modes
  • Fixed automatic closing of files with ext-uv
  • Fixed exception message in BlockingFilesystemDriver::write

3.0.0 Beta 3

08 Sep 17:42
v3.0.0-beta.3
65a77cd
Compare
Choose a tag to compare
3.0.0 Beta 3 Pre-release
Pre-release
  • Fix createDirectoryRecursively with trailing slash with ext-uv / ext-eio (#70, #71)

2.0.4

08 Sep 17:25
v2.0.4
be639a9
Compare
Choose a tag to compare
  • Fix createDirectoryRecursively with trailing slash in async drivers (#70, #71)

3.0.0 Beta 2

03 Apr 17:58
v3.0.0-beta.2
ee8f10f
Compare
Choose a tag to compare
3.0.0 Beta 2 Pre-release
Pre-release
  • PHP 8.1 now required.
  • Update for Closable interface adding an onClose. All File objects now include an onClose method which can be used to attache a closure which will be invoked when the file is closed.