Releases: amphp/file
Releases · amphp/file
1.0.0
This release is, in most cases, backward compatible with v0.3.x if this library was only used for async file access.
Uses of Amp\File\Handle should be replaced with Amp\File\File, as Amp\File\Handle will be removed in a future major release.
Please review the changes below to determine if further changes are needed for your code.
Handlehas been deprecated in favor ofFile, which extendsHandlefor backward compatibility. Uses ofHandleshould be updated toFile. Thus, the promise returned fromDriver::open()should resolve with an instance ofFile.BlockingHandle,EioHandle,ParallelHandle, andUvHandlehave been renamed respectively toBlockingFile,EioFile,ParallelFile, andUvFile.- All classes, except
FilesystemException, are now declaredfinal. Amp\File\driver()has been renamed toAmp\File\createDefaultDriver().Fileadds atruncate()method to resize the file to a given length.
0.3.5
0.3.4
0.3.3
- Fixed
statresult when usingUvDriver(#29) - Fixed
readlinkimplementation when usingEioDriverorUvDriver(#30) - Fixed
scandirwhen reading an empty directory when usingUvDriver(#23) - Results returned from
scandirare now alphabetically sorted when usingEioDriver(now matches results from other drivers). - Added
isSupported()method toEioDriverandUvDriver, returning abooldetermining if the driver can be used.
0.3.2
0.3.1
0.3.0
- All SAPIs (not only CLI) will use
ParallelDriverifext-eioandext-uvare not installed. - Windows can now use
ParallelDriver - The
'e'flag is automatically used when opening files (#20) - Added optional parameters
$timeand$atimetoAmp\File\touch()andDriver::touch()(#22)
This is only a breaking change if you implement theDriverinterface yourself.
0.2.4
0.2.3
- Workers created by the
amphp/parallelpackage will not useParallelDriverto avoid launching another worker from within a worker.BlockingDriveris used ifeiooruvis not available. StatCacheis now used inParallelDriverin the same way asEioDriverandUvDriver.