blob: 37938764469064565e75dc0ea8b087352902d6e4 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001# 3.4.3 (2022-09-28)
2
3 * Fix a security issue on filesystem loader (possibility to load a template outside a configured directory)
4
5# 3.4.2 (2022-08-12)
6
7 * Allow inherited magic method to still run with calling class
8 * Fix CallExpression::reflectCallable() throwing TypeError
9 * Fix typo in naming (currency_code)
10
11# 3.4.1 (2022-05-17)
12
13* Fix optimizing non-public named closures
14
15# 3.4.0 (2022-05-22)
16
17 * Add support for named closures
18
19# 3.3.10 (2022-04-06)
20
21 * Enable bytecode invalidation when auto_reload is enabled
22
23# 3.3.9 (2022-03-25)
24
25 * Fix custom escapers when using multiple Twig environments
26 * Add support for "constant('class', object)"
27 * Do not reuse internally generated variable names during parsing
28
29# 3.3.8 (2022-02-04)
30
31 * Fix a security issue when in a sandbox: the `sort` filter must require a Closure for the `arrow` parameter
32 * Fix deprecation notice on `round`
33 * Fix call to deprecated `convertToHtml` method
34
35# 3.3.7 (2022-01-03)
36
37* Allow more null support when Twig expects a string (for better 8.1 support)
38* Only use Commonmark extensions if markdown enabled
39
40# 3.3.6 (2022-01-03)
41
42* Only use Commonmark extensions if markdown enabled
43
44# 3.3.5 (2022-01-03)
45
46* Allow CommonMark extensions to easily be added
47* Allow null when Twig expects a string (for better 8.1 support)
48* Make some performance optimizations
49* Allow Symfony translation contract v3+
50
51# 3.3.4 (2021-11-25)
52
53 * Bump minimum supported Symfony component versions
54 * Fix a deprecated message
55
56# 3.3.3 (2021-09-17)
57
58 * Allow Symfony 6
59 * Improve compatibility with PHP 8.1
60 * Explicitly specify the encoding for mb_ord in JS escaper
61
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010062# 3.3.2 (2021-05-16)
63
64 * Revert "Throw a proper exception when a template name is an absolute path (as it has never been supported)"
65
66# 3.3.1 (2021-05-12)
67
68 * Fix PHP 8.1 compatibility
69 * Throw a proper exception when a template name is an absolute path (as it has never been supported)
70
71# 3.3.0 (2021-02-08)
72
73 * Fix macro calls in a "cache" tag
74 * Add the slug filter
75 * Allow extra bundle to be compatible with Twig 2
76
77# 3.2.1 (2021-01-05)
78
79 * Fix extra bundle compat with older versions of Symfony
80
81# 3.2.0 (2021-01-05)
82
83 * Add the Cache extension in the "extra" repositories: "cache" tag
84 * Add "registerUndefinedTokenParserCallback"
85 * Mark built-in node visitors as @internal
86 * Fix "odd" not working for negative numbers
87
88# 3.1.1 (2020-10-27)
89
90 * Fix "include(template_from_string())"
91
92# 3.1.0 (2020-10-21)
93
94 * Fix sandbox support when using "include(template_from_string())"
95 * Make round brackets optional for one argument tests like "same as" or "divisible by"
96 * Add support for ES2015 style object initialisation shortcut { a } is the same as { 'a': a }
97
98# 3.0.5 (2020-08-05)
99
100 * Fix twig_compare w.r.t. whitespace trimming
101 * Fix sandbox not disabled if syntax error occurs within {% sandbox %} tag
102 * Fix a regression when not using a space before an operator
103 * Restrict callables to closures in filters
104 * Allow trailing commas in argument lists (in calls as well as definitions)
105
106# 3.0.4 (2020-07-05)
107
108 * Fix comparison operators
109 * Fix options not taken into account when using "Michelf\MarkdownExtra"
110 * Fix "Twig\Extra\Intl\IntlExtension::getCountryName()" to accept "null" as a first argument
111 * Throw exception in case non-Traversable data is passed to "filter"
112 * Fix context optimization on PHP 7.4
113 * Fix PHP 8 compatibility
114 * Fix ambiguous syntax parsing
115
116# 3.0.3 (2020-02-11)
117
118 * Add a check to ensure that iconv() is defined
119
120# 3.0.2 (2020-02-11)
121
122 * Avoid exceptions when an intl resource is not found
123 * Fix implementation of case-insensitivity for method names
124
125# 3.0.1 (2019-12-28)
126
127 * fixed Symfony 5.0 support for the HTML extra extension
128
129# 3.0.0 (2019-11-15)
130
131 * fixed number formatter in Intl extra extension when using a formatter prototype
132
133# 3.0.0-BETA1 (2019-11-11)
134
135 * removed the "if" condition support on the "for" tag
136 * made the in, <, >, <=, >=, ==, and != operators more strict when comparing strings and integers/floats
137 * removed the "filter" tag
138 * added type hints everywhere
139 * changed Environment::resolveTemplate() to always return a TemplateWrapper instance
140 * removed Template::__toString()
141 * removed Parser::isReservedMacroName()
142 * removed SanboxedPrintNode
143 * removed Node::setTemplateName()
144 * made classes maked as "@final" final
145 * removed InitRuntimeInterface, ExistsLoaderInterface, and SourceContextLoaderInterface
146 * removed the "spaceless" tag
147 * removed Twig\Environment::getBaseTemplateClass() and Twig\Environment::setBaseTemplateClass()
148 * removed the "base_template_class" option on Twig\Environment
149 * bumped minimum PHP version to 7.2
150 * removed PSR-0 classes