Releases: nette/application
Releases · nette/application
Released version 3.0.0 🎉
Features
- requires PHP 7.1
- uses declare(strict_types=1)
- uses PHP 7.1 scalar and return type hints
- uses nette/routing
- RouteList: added addRoute() & withDomain(), withPath() and withModule()
- Presenter: signal must be sent from the same origin unless they have annotation @crossorigin (BC break)
- Presenter: persistent parameters are transmitted between traits (in addition to the class hierarchy) [Closes #183]
- LatteExtension: added option 'strictTypes'
- error template redesign
- Application::run() counts with response
- Component, Form: added hasPresenter(), deprecated $throw in getPresenter()
- TemplateFactory: added onCreate event [closes #195] (#196)
- Template: added renderToString()
- DI extensions: are using configuration Schema
Changes
- Changed signature of IRouter:
- IRouter::constructUrl() accepts and match() returns array instead of Nette\Application\Request (BC break)
- IRouter::constructUrl() accepts Nette\Http\UrlScript instead of Url
- MicroPresenter: returns 500 instead of 404 when parameter callback is missing
- ApplicationExtension: tag
nette.presenter
replaced by findByType() - Component::getParam() triggers deprecation warning (BC break)
- Component::redirect() first parameter $code is deprecated (BC break)
- TemplateFactory: filters |normalize, |toAscii, |reverse, |url and |null are deprecated
- ComponentReflection::combineArgs() throws Nette\InvalidArgumentException and is converted to BadRequestException on higher level
- Presenter: invalid action throws BadRequestException only during startup
- ComponentReflection::parseAnnotation() returns NULL instead of FALSE (BC break)
- Presenter: returns VoidResponse when has no response
- TemplateFactory: removed $baseUri, replaced with $baseUrl
- removed Component::getPersistentParams(), persistent params are always public properties with annotation @Persistent (BC break)
- Presenter::error() moved to Component
- Route: converts all scalar params to strings [Closes #185]
- Presenter: deprecated annotation @user (BC break)
- SimpleRouter: support for parameter 'module' is deprecated (BC break)
- Route::$styles is deprecated (BC break)
- Application::$maxLoop changed to non-static
- ApplicationExtension: presenters are not autowired
Released version 2.4.13
Released version 2.4.12
- TemplateFactory: retrieve CSP nonce from CSP-Report-Only header as a fallback (#193)
- TemplateFactory: added onCreate event #195 (#196)
- Presenter: do not shorten file names in exceptions
- RoutingPanel: compatibility with Tracy 2.5
- Presenter::
error()
moved to Component - type fixes
For the details you can have a look at the diff.
Released version 2.4.11
Released version 2.4.10
- FileResponse: strict type fix for PHP 5.2
- Template: added
renderToString()
For the details you can have a look at the diff.
Released version 2.4.9
- supports PHP up to 7.2
- Route: converts all scalar params to strings #185
- Route: fixed handling of required parameters with default value
- ComponentReflection: 'sinces' are stored only for presenters, refactoring
- Control: enhanced code completion for $template (#184)
- Component::
saveState()
fixed compatibility with PHP 7.2
For the details you can have a look at the diff.
Released version 2.4.8
- Presenter::$absoluteUrls fixed
For the details you can have a look at the diff.
Released version 2.4.7
- coding style: fixes, lowercase true/false/null
- Presenter: added
requestToUrl()
, taken out fromcreateRequest()
For the details you can have a look at the diff.
Released version 2.4.6
Released version 2.4.5
- fixed phpDoc
- uses IResponse constants
- TemplateFactory: "nonce" is Presenter agnostic (#172)
- BadRequestException: added
getHttpCode()
- TemplateFactory: dependency on nette/caching is optional
- Revert "ComponentReflection::
combineArgs()
throws InvalidArgumentException instead BadRequestException when incompatible type is object"
For the details you can have a look at the diff.