Skip to content

Releases: nette/application

Released version 3.0.0 🎉

03 Apr 21:20
@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
  • 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

23 Nov 22:30
@dg dg
Compare
Choose a tag to compare
  • RoutingPanel: removed inline style to work with CSP
  • ComponentReflection: accepts value '1.0' as float #200
  • Presenter: added support for typehint 'iterable' [Closes #203]

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

Released version 2.4.12

17 May 09:27
@dg dg
Compare
Choose a tag to compare
  • 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

07 Mar 16:07
@dg dg
Compare
Choose a tag to compare
  • added Request::VARYING for request that must not be canonicalized via 301
  • Presenter: added $onStartup
  • ErrorPresenter: renders error.phtml only in HTML
  • Route: change inflectors visibility to public (#192)

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

Released version 2.4.10

06 Feb 14:39
@dg dg
Compare
Choose a tag to compare
  • 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

29 Aug 08:11
@dg dg
Compare
Choose a tag to compare
  • 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

16 Jul 19:18
@dg dg
Compare
Choose a tag to compare
  • Presenter::$absoluteUrls fixed

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

Released version 2.4.7

14 Jul 07:35
@dg dg
Compare
Choose a tag to compare
  • coding style: fixes, lowercase true/false/null
  • Presenter: added requestToUrl(), taken out from createRequest()

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

Released version 2.4.6

29 May 06:39
@dg dg
Compare
Choose a tag to compare
  • RoutingExtension: added support for custom single-route classes. (#162)
  • UI\Presenter::canonicalize() allows to redirect to specified destination
  • Presenter: fixed uninitialized $since #166
  • strict types fixes

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

Released version 2.4.5

02 Feb 02:27
@dg dg
Compare
Choose a tag to compare
  • 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.