Skip to content

Releases: nette/utils

Released version 2.3.11

19 Dec 18:03
@dg dg
Compare
Choose a tag to compare

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

30 Sep 15:01
@dg dg
Compare
Choose a tag to compare
  • SmartObject: added support for annotations in traits (thx @matej21) #121
  • FileSystem: fix mkdir race condition (#120)
  • fixed compatibility with PHP 7.1

For the details you can have a look at the diff.

Released version 2.4.0

17 Jun 14:52
@dg dg
Compare
Choose a tag to compare
  • requires PHP 5.6
  • added trait Nette\SmartObject, it differs from Nette\Object:
    • magic properties without @Property annotation are deprecated
    • accessing methods as properties is deprecated
    • extension methods are deprecated
    • magic @methods are deprecated
    • getReflection is deprecated
    • invoking closure in property is deprecated
  • added trait Nette\StaticClass
  • Html: renamed add() to addHtml(); added addText() (#111)
  • Html: deprecated "expanded" attribute data
  • Html: added attribute public accessor methods
  • Image::place() preserves the alpha channel
  • Strings::random() renamed to Random::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

17 Jun 14:43
@dg dg
Compare
Choose a tag to compare
  • Html: added addHtml() and addText() (#111)

For the details you can have a look at the diff.

Released version 2.3.9

31 May 17:22
@dg dg
Compare
Choose a tag to compare
  • 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

01 Apr 14:27
@dg dg
Compare
Choose a tag to compare
  • ArrayHash: fixed bug in ArrayIterator #103
  • Html::__toString() prints better error message
  • Image: ob_start() is protected to be not flushable

For the details you can have a look at the diff.

Released version 2.2.8

03 Dec 02:50
@dg dg
Compare
Choose a tag to compare
  • 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() and lcg_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

30 Nov 00:55
@dg dg
Compare
Choose a tag to compare
  • 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

09 Oct 17:50
@dg dg
Compare
Choose a tag to compare

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

14 Sep 18:15
@dg dg
Compare
Choose a tag to compare
  • 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() and lcg_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.