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.
ViteAsset
using dev server in production
First public release.
- 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
- New function:
ViteAsset
. See docs for more info. - Add DI definitions
- Add more detailed documentation of some features
- Allow
psr/http-message
1 in addition to 2.
- Requires PHP 8.2.
strftime
filter is removed, because it used deprecated PHP functions. Use Twig'sformat_datetime
filter with pattern instead.
- Fix
TwigErrorRenderer
not working.
TwigLoaderErrorHandler
was not working and is now removed.
FormatDateRange
filter doesn't acceptint
orDateTimeImmutable
values.
- Use
DateTimeImmutable
instead ofDateTime
inCopyrightYear
.
Strftime
filter doesn't acceptint
orDateTimeImmutable
values.
- Error when calling
CopyrightYear
with only starting year.
- StaticTwigPage Slim action.
- Some tests.
CopyrightYear
: Now accepts an optional end date.FormatDateRange
: Add period at the end of dates without a year.
This release introduces multiple major breaking changes. See updated README for new usage instructions.
- Requires PHP 7.4.
- Requires Twig 3.0.
- Requires Slim 4.0 for Slim related features.
- Removed
removeEmpty
filter. Use|filter(v => v)
or definearray_filter
as a filter in your extension instead. - Removed
PhpDebugBar
extension. Use a PSR middleware such asphp-middleware/debugbar
ormiddlewares/debugbar
instead. - Removed
TwigLoaderError
middleware.TwigLoaderErrorHandler
should be used instead. Usage instructions are in README.
- Use Reun Media dotfiles and other conventions from
generator-reun-webapp
.
FormatDateRange
now always displays a year on both dates if they are on a different year.
- Add PHP Debug Bar extension.
CopyrightYear
function.
- Fix case sensitivity bug by renaming
HtmlPurify.php
toHtmlpurify.php
.
- Fix
TwigNotFoundHandler
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.
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).
- Slim component with various Slim Twig integration helpers.
- New filters: HtmlPurify, RemoveEmpty.
- Refactor TwigExtension
- Now accepts
DateTime
objects in addition to strings. - Can now specify a custom delimiter string (default
-
)
FormatDateRange
: Option to always include year in the returned date.
- Add
strftime
filter.
Initial release.