Nette Framework 2.4 (2018–04–02)

about a year ago

David Grudl
Nette Core | 6864
+
+16
-

Nette Framework 2.4 (2018–04–02) has just been released.

This summarizes the differences from release 2018–02–06

Application

  • Presenter: added $onStartup
  • ErrorPresenter: renders error.phtml only in HTML (not in JSON, XML etc)
  • Route: change inflectors visibility to public (nette/application#192)
  • added Request::VARYING for request that must not be canonicalized via 301

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

Component-model v2.4

  • 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)

See more info

DI

  • DecoratorExtension: do not decorate accessors by inner type (possible BC break)
  • ContainerBuilder: added check that accessor have no setup
  • Loader: add includes recursive limitation nette/di#164 nette/di#162
  • ContainerBuilder: added service type to ServiceCreationException (nette/di#151)

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

Forms

  • ChoiceControl, MultiChoiceControl: added checkDefaultValue() as replacement for $checkAllowedValues (nette/forms#151)
  • Validator: method validatePattern() for FileUpload uses file name (nette/forms#175)
  • netteForms.js: conforms with PHP FLOAT validation (nette/forms#174)
  • examples: bootstrap updated

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

Http

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

Utils v2.5

  • deprecated Nette\Object renamed to Nette\LegacyObject (to avoid fatal error in PHP 7.2)
  • usage of Nette\Object triggers notice or exception
  • removed stuff deprecated in v2.4

See more info

Tracy

  • bar: support for debug bar at top of screen nette/tracy#286
  • bar: added composer packages to info panel
  • bar: Allow adding of custom icons to panel header (nette/tracy#276)
  • added Debugger::$showFireLogger nette/tracy#267
  • supports Content-Security-Policy-Report-Only
  • bar.js: fixed nonce reading when attribute is not exposed
  • bar: floating panel is focused on mousedown instead of on mouseover (BC break in behavior) nette/tracy#269
  • bar: panel zIndex is stored in session
  • bar: added Tracy.panelZIndex
  • bar: fixed z-index issue when some panels are already in FLOAT mode when the page is loaded. nette/tracy#269
  • bar.css: supports <small>
  • examples: improved fatal-error.php to be fatal in PHP 7

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