Releases: nette/utils
Released version 2.3.11
This release marks the end of life of the nette/utils 2.3 series
- FileSystem: added
read()
(#124) - FileSystem: fix mkdir race condition (#120)
- Image: fix conversion of percentage arguments to numeric values (#122)
- fixed compatibility with PHP 7.1
- @return self -> static
For the details you can have a look at the diff.
Released version 2.4.1
Released version 2.4.0
- requires PHP 5.6
- added trait
Nette\SmartObject
, it differs fromNette\Object
: - added trait
Nette\StaticClass
- Html: renamed
add()
toaddHtml()
; addedaddText()
(#111) - Html: deprecated "expanded" attribute data
- Html: added attribute public accessor methods
- Image::
place()
preserves the alpha channel - Strings::
random()
renamed toRandom::generate()
- Random: uses
random_bytes()
on PHP 7 - FileSystem: added
read()
- ArrayList: added
prepend()
- Json::
encode()
uses by default JSON_PRESERVE_ZERO_FRACTION (BC break) #89 - DateTime: implements JsonSerializable, formats date in ISO 8601 format accepted by JavaScript's Date object (BC break)
- Filter & RecursiveFilter are deprecated
For the details you can have a look at the diff.
Released version 2.3.10
Released version 2.3.9
- Object: removed alias for ObjectMixin, it may interfere with nette/deprecated, which creates alias Nette\ObjectMixin
For the details you can have a look at the diff.
Released version 2.3.8
Released version 2.2.8
- Callback::
invokeSafe()
removes function name also with arguments from error message - Callback::
invokeSafe()
workaround for HHVM bug facebook/hhvm#4625 - __toString and Callback::
invokeSafe()
handles Throwable errors - Validator::is: fixed value overwriting
- Random: use
random_int()
on PHP 7 - Random: charlist now contains only unique characters
- Random: rejects openssl_random_pseudo_bytes result when is not cryptographically strong
- Random: skips
microtime()
,str_shuffle()
andlcg_value()
when cryptographically strong source is used - Image: fixed color allocation in palette-based images
For the details you can have a look at the diff.
Released version 2.3.7
- Strings::
toAscii()
optimization - ObjectMixin::
getSuggestion()
better balance, replacement of prefix get|set|add|has|is costs 20 - ObjectMixin::
getSuggestion()
better balance. Replacement is more expensive than insertion/deletion. - __toString and Callback::
invokeSafe()
handles Throwable errors - Callback::
invokeSafe()
removes function name also with arguments from error message
For the details you can have a look at the diff.
Released version 2.3.6
ObjectMixin: added warning when method-getter is used by mistake (for getters without parameters) (BC break)
Note: This release will trigger warning Did you forgot parentheses?
when you call a method without parentheses, i.e. foreach ($form–>getErrors as $error)
.
This notation is also used to create a callback. If you really want to create a callback, i.e. parentheses have not been forgotten and they are missing intentionally, replace this notation with a native PHP callback, for example [$form, 'getErrors']
. Alternatively in PHP 5.3 you can use shutup operator: @$form->getErrors
.
For the details you can have a look at the diff.
Released version 2.3.5
- ObjectMixin: shows suggestions for undeclared members
- ObjectMixin: added
getExtensionMethods()
- Random: use
random_int()
on PHP 7 - Random: charlist now contains only unique characters
- Random: rejects openssl_random_pseudo_bytes result when is not cryptographically strong
- Random: skips
microtime()
,str_shuffle()
andlcg_value()
when cryptographically strong source is used - Image: fixed color allocation in palette-based images
For the details you can have a look at the diff.