Skip to content

Latest commit

 

History

History
193 lines (114 loc) · 4.26 KB

CHANGELOG.md

File metadata and controls

193 lines (114 loc) · 4.26 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.12.1] - 2024-12-11

Fixed

  • ViteAsset using dev server in production

[0.12.0] - 2024-11-21

First public release.

[0.11.0] - 2024-11-14

Changed

  • Breaking: Following non-essential Composer packages are no longer automatically required and must be installed manually:
    • ezyang/htmlpurifier
    • psr/http-message
    • psr/http-server-handler
    • psr/http-server-middleware

Added

  • New function: ViteAsset. See docs for more info.
  • Add DI definitions
  • Add more detailed documentation of some features

[0.10.1] - 2024-06-14

Changed

  • Allow psr/http-message 1 in addition to 2.

[0.10.0] - 2024-06-05

Breaking changes

  • Requires PHP 8.2.
  • strftime filter is removed, because it used deprecated PHP functions. Use Twig's format_datetime filter with pattern instead.

[0.9.4] - 2020-06-23

Fixed

  • Fix TwigErrorRenderer not working.

Removed

  • TwigLoaderErrorHandler was not working and is now removed.

[0.9.3] - 2020-06-16

Fixed

  • FormatDateRange filter doesn't accept int or DateTimeImmutable values.

Changed

  • Use DateTimeImmutable instead of DateTime in CopyrightYear.

[0.9.2] - 2020-06-16

Fixed

  • Strftime filter doesn't accept int or DateTimeImmutable values.

[0.9.1] - 2020-05-20

Fixed

  • Error when calling CopyrightYear with only starting year.

[0.9.0] - 2020-04-14

Added

  • StaticTwigPage Slim action.
  • Some tests.

Changed

  • CopyrightYear: Now accepts an optional end date.
  • FormatDateRange: Add period at the end of dates without a year.

[0.8.0] - 2020-02-11

This release introduces multiple major breaking changes. See updated README for new usage instructions.

Breaking Changes

  • Requires PHP 7.4.
  • Requires Twig 3.0.
  • Requires Slim 4.0 for Slim related features.
  • Removed removeEmpty filter. Use |filter(v => v) or define array_filter as a filter in your extension instead.
  • Removed PhpDebugBar extension. Use a PSR middleware such as php-middleware/debugbar or middlewares/debugbar instead.
  • Removed TwigLoaderError middleware. TwigLoaderErrorHandler should be used instead. Usage instructions are in README.

Changed

  • Use Reun Media dotfiles and other conventions from generator-reun-webapp.

Fixed

  • FormatDateRange now always displays a year on both dates if they are on a different year.

[0.7.0] - 2019-02-13

Added

  • Add PHP Debug Bar extension.

[0.6.0] - 2019-01-07

Added

  • CopyrightYear function.

[0.5.3] - 2018-12-06

Bugfixes

  • Fix case sensitivity bug by renaming HtmlPurify.php to Htmlpurify.php.

[0.5.2] - 2018-12-06

Bugfixes

  • Fix TwigNotFoundHandler

[0.5.1] - 2018-12-06

This release introduces a temporary fix for Slim component not working with PHP-DI.

Currently PHP-DI doesn't support class_alias(), which means that Twig_Environment gets injected instead of Twig\Environment. To fix this all classes depending on Twig\Environment have been changed to use Twig_Environment instead. They might be changed back in the future once PHP-DI gets fixed. See http://bit.ly/2SsA5Rh for the issue.

[0.5.0] - 2018-12-05

Breaking changes

Pretty much everything has changed. Backwards incompatible with previous version. Repository got messed up. Had to rebase. Previous versions might not be available anymore (missing tags).

Added

  • Slim component with various Slim Twig integration helpers.
  • New filters: HtmlPurify, RemoveEmpty.
  • Refactor TwigExtension

[0.4.0] - 2018-10-15

Added

FormatDateRange

  • Now accepts DateTime objects in addition to strings.
  • Can now specify a custom delimiter string (default -)

[0.3.0] - 2018-05-02

Added

  • FormatDateRange: Option to always include year in the returned date.

[0.2.0] - 2018-04-24

Added

  • Add strftime filter.

[0.1.0] - 2018-04-24

Initial release.