Releases: nette/application
Releases 路 nette/application
Released version 3.0.7
- compatible with PHP 8.0
- added PHP 8 attributes
#[Persistent] & [CrossOrigin]#
- MicroPresenter: throws BadRequestException on invalid argument
- ApplicationExtension, RoutingExtension: detects Tracy by presence of service nette/di#245
For the details you can have a look at the diff.
Released version 3.0.6
- Application: Micro:* presenter are not achievable
- MicroPresenter: parameter callback must be a Closure, removed support for __invoke
- RoutingPanel: fixed calling to undefined RouteList::
getModule()
#264 - LinkGenerator: added
withReferenceUrl()
- Presenter: added support for typehint 'object'
- RoutingPanel: improved visualisation of error
- RoutingPanel: fixed compatibility with new RouteList III.
For the details you can have a look at the diff.
Released version 2.4.15
- class aliases are loaded on demand
- added .phpstorm.meta.php
- Template: prevents unserialization for security reasons
For the details you can have a look at the diff.
Released version 3.0.5
- UIMacros: fixed (expand) in {control) nette/latte#223
- .phpstorm.meta: added exit points
- PresenterFactoryCallback: fixed multiple services of type found #258
- RoutingPanel: display RouteList groups
- RoutingPanel: fixed compatibility with new RouteList II. #251 #253
- RoutingPanel: changed Application\Routers* classes to Nette\Routing*
- RoutingPanel: Better mask responsivity.
- Template: prevents unserialization for security reasons
For the details you can have a look at the diff.
Released version 3.0.4
- Presenter::
restoreRequest()
redirects on GET request - Template: added custom functions
isLinkCurrent()
andisModuleCurrent()
- Presenter: added
isModuleCurrent()
#240 (#243) - RoutingPanel: fixed compatibility with new RouteList
- uses latte 2.6
- class aliases are loaded on demand
For the details you can have a look at the diff.
Released version 3.0.3
- Template: added
addFunction()
for Latte 2.6 - RoutingPanel: uses capturing
- FileResponse: added some checks (#238)
- ComponentReflection: changed way how it detects built-in types #241
- ApplicationExtension: options scanDirs has higher priority than robotLoader
- ApplicationExtension: always creates directory for touch file (#237)
- Presenter:
injectPrimary()
params are required because $httpRequest is required. (#239) - updated .phpstorm.meta.php
- uses nette/utils 3.1
- fixed bugs reported by PHPStan
For the details you can have a look at the diff.
Released version 2.4.14
Released version 3.0.2
- Form: added
disableSameSiteProtection()
- Route: fixed bug for constant module & presenter #216
- BadRequestException: parent exception is Throwable (#236)
- Component, Form: added
getPresenterIfExists()
- Component, Form: deprecated
hasPresenter()
- throwing exceptions from
__toString()
is allowed since PHP 7.4 - Template: removed 'final' #235
- TemplateFactory: remove unused Loader (#232)
- ApplicationExtension: can use external RobotLoader #227
- added support for persistent parameters with property typehints in PHP 7.4 #230
- RoutingPanel: Add better panel responsivity (#225)
For the details you can have a look at the diff.
Released version 3.0.1
- Presenter: added onRender event
- Component::
redirect()
removed $code from signature #220 #221 - Generates links using UrlImmutable::
withoutUserInfo()
(nette/http#160) - Application: fixed error conditions order
- added .phpstorm.meta.php
- Use phpstan callable format
For the details you can have a look at the diff.
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