Skip to content

1.0.0

Choose a tag to compare

@trowski trowski released this 14 Sep 03:42
80cfffa

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 of File, which extends Handle for backward compatibility. Uses of Handle should be updated to File. Thus, the promise returned from Driver::open() should resolve with an instance of File.
  • BlockingHandle, EioHandle, ParallelHandle, and UvHandle have been renamed respectively to BlockingFile, EioFile, ParallelFile, and UvFile.
  • All classes, except FilesystemException, are now declared final.
  • Amp\File\driver() has been renamed to Amp\File\createDefaultDriver().
  • File adds a truncate() method to resize the file to a given length.