Skip to content

v0.4.0

Latest

Choose a tag to compare

@tg666 tg666 released this 28 Oct 16:03
c25918c

Added

  • Added support for PHP 8.4 and 8.5, tested with nette/application 3.1 – 3.3 and latte/latte 3.0 – 3.1.
  • Added tests and GitHub Actions (coding style, tests on PHP 8.3, 8.4 and 8.5 with highest dependencies and on PHP 8.3 with lowest dependencies).

Changed

  • Minimal PHP version is 8.3 (BC break).
  • Required 68publishers/smart-nette-component ^2.0 and 68publishers/translation-bridge ^3.0 (BC break, see their changelogs).
  • Minimal versions of nette/application (^3.1.15), nette/caching (^3.1), nette/di (^3.1.3), nette/http (^3.1), nette/security (^3.1.4) and nette/utils (^3.2.10 || ^4.0.1), older releases cannot be installed on PHP 8.3 or do not work with Latte 3 there.
  • The deprecated interfaces Nette\Localization\ITranslator, Nette\Caching\IStorage and Nette\Application\IResponse are replaced with Translator, Storage and Response in the signatures (they are aliases, existing implementations stay compatible).
  • SessionStorage uses SessionSection::get(), set() and remove() instead of the deprecated array access.
  • NotificationBundleExtension looks up the application service by its type instead of the name application.
  • PHP-CS-Fixer 3 (.php-cs-fixer.dist.php replaces .php_cs.dist), nette/tester 2.6+, roave/security-advisories dev-latest, docker dev environment with PHP 8.3, 8.4 and 8.5.

Removed

  • Removed SixtyEightPublishers\NotificationBundle\Phrase\KdybyPhrase (BC break), kdyby/translation is abandoned and does not run on PHP 8.
  • Removed Travis CI configuration.

Fixed

  • The title of a notification was lost after the notification was serialized (e.g. stored in the session before a redirect).
  • The default flash message template used an undefined variable $flash instead of $notification when a notification had a title.
  • UserStorage saved the notifications into the cache on every response, even if there were no notifications.