Nette Framework 2.4 (2016–12–21)

Notice: This thread is very old.
David Grudl
Nette Core | 8218
+
+13
-

Nette Framework 2.4 (2016–12–21) has just been released.

This summarizes the differences from release 2016–09–30.

  • fully compatible with PHP 7.1
  • annotation @return self changed to @return static
  • added Configurator::enableTracy() as alias for enableDebugger()

Application

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

Caching

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

Database

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

DI

  • InjectExtension: fixed injecting of services which cannot be autowired via @inject nette/di#127
  • PhpGenerator: lazy load interface definitions for generated factories nette/di#129
  • ContainerBuilder::completeStatement() uses autowiring only when class is known

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

Forms

  • CheckboxList: added item label prototype
  • RadioList::getLabelPart() uses $itemLabel instead of $label
  • BaseControl::setAttribute() and setType() aliased to setHtmlAttribute() and setHtmlType()
  • netteForms.js: fixed issue with button type=submit with html nette/forms#137
  • netteForms: forms with attribute ‘novalidate’ are not validated (BC break)
  • becomes NPM package

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

Http

  • Http\Response::setCode produces valid HTTP header on nginx (nette/http#113)
  • SessionSection::removeExpiration() fixed (nette/http#111)
  • Session: removed cookie nette-browser and support for expiration ‘until the browser is closed’ (nette/http#103)
  • UserStorage: removed BROWSER_CLOSED expiration reason nette/http#112
  • UrlScript: accept optional $scriptPath parameter in constructor (nette/http#109)
  • UrlScript: default scriptPath is whole path to maintain same behavioral as the class Url (in method getBasePath, …) nette/http#100
  • RequestFactory: parse the “proto” part of “forwarded” header instead of the “scheme” part. (nette/http#106)
  • IResponse: added missing HTTP response codes (nette/http#107)

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

Utils

  • added DateTime::fromParts()
  • DateTime::from() supports microseconds
  • Image: added support for WEBP nette/utils#73
  • added Arrays::every(), some() & map() nette/utils#36
  • Validators: support for types int[], string[] etc nette/utils#119
  • added Validators::everyIs() nette/utils#123
  • Validators: added validator ‘iterable’
  • SmartObject: better exception message for deprecated property usage
  • Json skips workaround on PHP 7.0+

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

Tracy

  • Bar: removes entries from session after 60 seconds nette/tracy#234
  • Bar: all assets & contents in single HTTP request
  • Revert “Bar: JS & CSS is cached in localStorage (nette/tracy#226)” nette/tracy#228
  • Added Linux version of ‘open-in-editor’ tool (nette/tracy#235)
  • BlueScreen: ability to set whether panel is collapsed or not (nette/tracy#232)
  • Helpers::improveException() removes namespace from function name because is confusing (related to PHP issue 73049)

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