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.
Handle
has been deprecated in favor ofFile
, which extendsHandle
for backward compatibility. Uses ofHandle
should be updated toFile
. Thus, the promise returned fromDriver::open()
should resolve with an instance ofFile
.BlockingHandle
,EioHandle
,ParallelHandle
, andUvHandle
have been renamed respectively toBlockingFile
,EioFile
,ParallelFile
, andUvFile
.- All classes, except
FilesystemException
, are now declaredfinal
. Amp\File\driver()
has been renamed toAmp\File\createDefaultDriver()
.File
adds atruncate()
method to resize the file to a given length.
0.3.5
0.3.4
0.3.3
- Fixed
stat
result when usingUvDriver
(#29) - Fixed
readlink
implementation when usingEioDriver
orUvDriver
(#30) - Fixed
scandir
when reading an empty directory when usingUvDriver
(#23) - Results returned from
scandir
are now alphabetically sorted when usingEioDriver
(now matches results from other drivers). - Added
isSupported()
method toEioDriver
andUvDriver
, returning abool
determining if the driver can be used.
0.3.2
0.3.1
0.3.0
- All SAPIs (not only CLI) will use
ParallelDriver
ifext-eio
andext-uv
are not installed. - Windows can now use
ParallelDriver
- The
'e'
flag is automatically used when opening files (#20) - Added optional parameters
$time
and$atime
toAmp\File\touch()
andDriver::touch()
(#22)
This is only a breaking change if you implement theDriver
interface yourself.
0.2.4
0.2.3
- Workers created by the
amphp/parallel
package will not useParallelDriver
to avoid launching another worker from within a worker.BlockingDriver
is used ifeio
oruv
is not available. StatCache
is now used inParallelDriver
in the same way asEioDriver
andUvDriver
.