Releases: amphp/file
Releases · amphp/file
3.2.0
What's Changed
- The parallel driver no longer reuses the global worker pool if a specific instance is not provided to the constructor. Instead, a new worker pool is created.
- The
$workerLimit
parameter to the constructor ofParallelFilesystemDriver
is now deprecated. Pass an instance ofLimitedWorkerPool
instead.
Full Changelog: v3.1.1...v3.2.0
3.1.1
What's Changed
- Dropped support for ext-uv < 0.3.0.
- Changed the version check for ext-uv to avoid an ext-opcache bug (see amphp/http-client#365).
Full Changelog: v3.1.0...v3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
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
toBlockingFilesystemDriver
- Renamed
EioDriver
toEioFilesystemDriver
- Renamed
ParallelDriver
toParallelFilesystemDriver
- Renamed
StatusCachingDriver
toStatusCachingFilesystemDriver
- Renamed
UvDriver
toUvFilesystemDriver
- Renamed
Amp\File\Sync\AsyncFileMutex
toAmp\File\FileMutex
- Added
?Cancellation
as first parameter ofFile::read()
- Added
File::isSeekable()
- Removed
File::SEEK_SET
,File::SEEK_CUR
, andFile::SEEK_END
- Added
Amp\File\Whence
for seeking instead
3.0.0 Beta 6
- Fixed compatibility with
v2.0
ofamphp/byte-stream
by updatingFile
implementations to also implementTraversable
.
3.0.0 Beta 5
- Fixed
PendingOperationError
being thrown after several seek-then-write operations inUvFile
andEioFile
.
3.0.0 Beta 4
- 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