Releases: yosymfony/resource-watcher
Releases · yosymfony/resource-watcher
v3.0.0
What's new in this release?
- [New] A new hashing class has been added
Crc32MetaDataHash
. It let you work with large files as the hash is calculated using metadata of files: filename, size, mtime and mode. (Thanks to @pecuchet. See PR #9). - [New] The interface
ContentHashInterface
has been renamed toHashInterface
. Now, the methodhash
receives a filename instead of the filename content.
v2.0.1
v2.0.0
What's new in this release?
- [New] The class
ResourceWatcher
accepts two new arguments: the finder and class that makes the content hash. - [New] The class
ResourceWatcher
uses content hash instead of timestamps to detect changes. - [New] The method
findChanges
from the classResourceWatcher
returns an object typeResourceWatcherResult
with all the information about the files changes. - [New] Added a new method
initialize
to the classResourceWatcher
. This method warms up the cache just in case. - [New] In the interface
ResourceCacheInterface
, the methodgetResources
has been renamed togetAll
. - [New] If the method
enableRelativePathWithCache
from the classResourceWatcher
is invoked,
the resource cache will receive relative paths instead of absolute paths. - [Improved] The class
ResourceCacheFile
has been renamed toResourceCachePhpFile
to improve the readability. - [Improved] PhpUnit minimum version has been updated to 5.7.
- [Delete] Deleted the method
isSearching
from the classResourceWatcher
. - [Delete] Deleted the method
setFinder
from the classResourceWatcher
.
Now, the finder is passed as constructor argument.