Skip to content

Releases: nette/component-model

Released version 3.1.0

21 Jan 23:06
@dg dg
Compare
Choose a tag to compare
  • requires PHP 8.1
  • uses PHP 8.1 features
  • added Container::getComponentTree()
  • Container::getComponents() parameters are silently deprecated, returns array when $deep is false (BC break)

Released version 3.0.3

17 Jan 04:03
@dg dg
Compare
Choose a tag to compare
  • composer: allows nette/utils 4.0
  • constants are PascalCase

Released version 3.0.2

07 Oct 01:52
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.1

Released version 3.0.1

21 Apr 13:53
@dg dg
Compare
Choose a tag to compare
  • Container: component name may be number or null
  • Container: added const NAME_REGEXP
  • added .phpstorm.meta.php
  • fixed bugs reported by PHPStan

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

Released version 3.0.0 🎉

20 Feb 07:14
@dg dg
Compare
Choose a tag to compare

Features

  • requires PHP 7.1
  • uses declare(strict_types=1)
  • uses PHP 7.1 scalar and return type hints
  • Component::monitor accepts callbacks
  • added trait ArrayAccess
  • Component: More informative message in case that name is not available (#5)

Changes

  • Component::__construct($parent) is deprecated (BC break)
  • Container::getComponents(): removed child-first option (BC break)
  • Component: removed constructor (BC break)
  • Container: name must be string, int is allowed via ArrayAccess (BC break)
  • Component: attached() and detached() marked as deprecated in favor of monitoring callbacks

Released version 2.4.0

20 Mar 15:38
@dg dg
Compare
Choose a tag to compare
  • Component::monitor() accepts callbacks
  • Component: attached() and detached() marked as deprecated in favor of monitoring callbacks
  • added trait ArrayAccess
  • Component::__construct($parent, $name) is deprecated (BC break)

Released version 2.3.1

14 Jul 07:39
@dg dg
Compare
Choose a tag to compare
  • supports PHP up to 7.2
  • coding style: fixes, lowercase true/false/null
  • @return self -> static
  • composer: accepts nette 3.0
  • renamed parameter $need -> $throw

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

Released version 2.2.5

19 Dec 14:33
@dg dg
Compare
Choose a tag to compare
  • @return self -> static
  • Container::getComponent() optimization

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

Released version 2.3.0

17 Jun 16:50
@dg dg
Compare
Choose a tag to compare
  • requires PHP 5.6
  • uses Nette\SmartObject
  • Container::getComponent() optimization
  • Component::__construct() parameters $parent & $name are deprecated

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

Released version 2.2.4

09 Oct 14:53
@dg dg
Compare
Choose a tag to compare
  • Container: shows suggestions for missing components

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