Releases: nette/utils
Releases · nette/utils
Released version 4.1.4
- Process – a new class for starting and controlling external processes: read their output, feed them input, pipe one process into another, wait for completion, terminate, and check exit codes.
Process::runExecutable()passes arguments as an array so there's zero shell involvement and no risk of shell injection, whileProcess::runCommand()is there when you really do want the shell. Comes with timeouts, incremental output consumption (consumeStdOutput()/consumeStdError()), and works on Windows too. - FileSystem::isValidFilename() – quickly check whether a string is a safe, cross-platform filename: it rejects path separators, control and reserved characters, trailing dots or spaces, and Windows device names like
CONorLPT1. - Image::fromFile() and Image::fromString() now accept an optional
$warningsparameter – pass it in and any GD warnings are handed back to you as a string instead of being emitted as a PHP warning, so you can log or display them on your own terms.
Released version 4.1.3
Released version 4.1.1
Released version 4.1.0
- requires PHP 8.2
- DateTime: strict behavior (BC break)
- Strings::webalize() requires INTL extension
- StaticClass: is not overriding __callStatic()
Released version 4.0.10
- added
Type::with() - added
Type::fromValue() - added
Helpers::splitClassName() - added
Iterables::repeatable() - Finder:
is_file()does not work with symlinks under Windows
Released version 4.0.9
support for PHP 8.5
Released version 4.0.8
Released version 4.0.7
- DateTime: constructor and
modify()correctly handle the relative time even if the daylight saving time is changed - DateTime: added static method
relativeToSeconds()for converting relative time string to seconds - DateTime: triggers a warning when time overflow occurs
Released version 4.0.6
- Image: catches all errors during saving
- added Helpers::IsWindows
- added ShouldNotHappenException
- added
FileSystem::resolvePath()#308 - tests: improved descriptions
- exception: use natural explanatory style
Released version 4.0.5
Strings::matchAll(): added option 'lazy'- added
Arrays::mapWithKeys()&Iterables::mapWithKeys() - added
Iterables::memoize()&toIterator() - Image: GD extension detection added
- support for PHP 8.4