CHANGELOG 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # 3.3.7 (2022-01-03)
  2. * Allow more null support when Twig expects a string (for better 8.1 support)
  3. * Only use Commonmark extensions if markdown enabled
  4. # 3.3.6 (2022-01-03)
  5. * Only use Commonmark extensions if markdown enabled
  6. # 3.3.5 (2022-01-03)
  7. * Allow CommonMark extensions to easily be added
  8. * Allow null when Twig expects a string (for better 8.1 support)
  9. * Make some performance optimizations
  10. * Allow Symfony translation contract v3+
  11. # 3.3.4 (2021-11-25)
  12. * Bump minimum supported Symfony component versions
  13. * Fix a deprecated message
  14. # 3.3.3 (2021-09-17)
  15. * Allow Symfony 6
  16. * Improve compatibility with PHP 8.1
  17. * Explicitly specify the encoding for mb_ord in JS escaper
  18. # 3.3.2 (2021-05-16)
  19. * Revert "Throw a proper exception when a template name is an absolute path (as it has never been supported)"
  20. # 3.3.1 (2021-05-12)
  21. * Fix PHP 8.1 compatibility
  22. * Throw a proper exception when a template name is an absolute path (as it has never been supported)
  23. # 3.3.0 (2021-02-08)
  24. * Fix macro calls in a "cache" tag
  25. * Add the slug filter
  26. * Allow extra bundle to be compatible with Twig 2
  27. # 3.2.1 (2021-01-05)
  28. * Fix extra bundle compat with older versions of Symfony
  29. # 3.2.0 (2021-01-05)
  30. * Add the Cache extension in the "extra" repositories: "cache" tag
  31. * Add "registerUndefinedTokenParserCallback"
  32. * Mark built-in node visitors as @internal
  33. * Fix "odd" not working for negative numbers
  34. # 3.1.1 (2020-10-27)
  35. * Fix "include(template_from_string())"
  36. # 3.1.0 (2020-10-21)
  37. * Fix sandbox support when using "include(template_from_string())"
  38. * Make round brackets optional for one argument tests like "same as" or "divisible by"
  39. * Add support for ES2015 style object initialisation shortcut { a } is the same as { 'a': a }
  40. # 3.0.5 (2020-08-05)
  41. * Fix twig_compare w.r.t. whitespace trimming
  42. * Fix sandbox not disabled if syntax error occurs within {% sandbox %} tag
  43. * Fix a regression when not using a space before an operator
  44. * Restrict callables to closures in filters
  45. * Allow trailing commas in argument lists (in calls as well as definitions)
  46. # 3.0.4 (2020-07-05)
  47. * Fix comparison operators
  48. * Fix options not taken into account when using "Michelf\MarkdownExtra"
  49. * Fix "Twig\Extra\Intl\IntlExtension::getCountryName()" to accept "null" as a first argument
  50. * Throw exception in case non-Traversable data is passed to "filter"
  51. * Fix context optimization on PHP 7.4
  52. * Fix PHP 8 compatibility
  53. * Fix ambiguous syntax parsing
  54. # 3.0.3 (2020-02-11)
  55. * Add a check to ensure that iconv() is defined
  56. # 3.0.2 (2020-02-11)
  57. * Avoid exceptions when an intl resource is not found
  58. * Fix implementation of case-insensitivity for method names
  59. # 3.0.1 (2019-12-28)
  60. * fixed Symfony 5.0 support for the HTML extra extension
  61. # 3.0.0 (2019-11-15)
  62. * fixed number formatter in Intl extra extension when using a formatter prototype
  63. # 3.0.0-BETA1 (2019-11-11)
  64. * removed the "if" condition support on the "for" tag
  65. * made the in, <, >, <=, >=, ==, and != operators more strict when comparing strings and integers/floats
  66. * removed the "filter" tag
  67. * added type hints everywhere
  68. * changed Environment::resolveTemplate() to always return a TemplateWrapper instance
  69. * removed Template::__toString()
  70. * removed Parser::isReservedMacroName()
  71. * removed SanboxedPrintNode
  72. * removed Node::setTemplateName()
  73. * made classes maked as "@final" final
  74. * removed InitRuntimeInterface, ExistsLoaderInterface, and SourceContextLoaderInterface
  75. * removed the "spaceless" tag
  76. * removed Twig\Environment::getBaseTemplateClass() and Twig\Environment::setBaseTemplateClass()
  77. * removed the "base_template_class" option on Twig\Environment
  78. * bumped minimum PHP version to 7.2
  79. * removed PSR-0 classes