aceeditor-bundle
aceeditor-bundle copied to clipboard
Bump twig/twig from 3.10.1 to 3.12.0
Bumps twig/twig from 3.10.1 to 3.12.0.
Changelog
Sourced from twig/twig's changelog.
3.12.0 (2024-08-29)
- Deprecate the fact that the
extends
anduse
tags are always allowed in a sandboxed template. This behavior will change in 4.0 where these tags will need to be explicitly allowed like any other tag.- Deprecate the "tag" constructor argument of the "Twig\Node\Node" class as the tag is now automatically set by the Parser when needed
- Fix precedence of two-word tests when the first word is a valid test
- Deprecate the
spaceless
filter- Deprecate some internal methods from
Parser
:getBlockStack()
,hasBlock()
,getBlock()
,hasMacro()
,hasTraits()
,getParent()
- Deprecate passing
null
toTwig\Parser::setParent()
- Update
Node::__toString()
to include the node tag if set- Add support for integers in methods of
Twig\Node\Node
that take a Node name- Deprecate not passing a
BodyNode
instance as the body of aModuleNode
orMacroNode
constructor- Deprecate returning "null" from "TokenParserInterface::parse()".
- Deprecate
OptimizerNodeVisitor::OPTIMIZE_TEXT_NODES
- Fix performance regression when
use_yield
isfalse
(which is the default)- Improve compatibility when
use_yield
isfalse
(as extensions still usingecho
will work as is)- Accept colons (
:
) in addition to equals (=
) to separate argument names and values in named arguments- Add the
html_cva
function (in the HTML extra package)- Add support for named arguments to the
block
andattribute
functions- Throw a SyntaxError exception at compile time when a Twig callable has not the minimum number of required arguments
- Add a
CallableArgumentsExtractor
class- Deprecate passing a name to
FunctionExpression
,FilterExpression
, andTestExpression
; pass aTwigFunction
,TwigFilter
, orTestFilter
instead- Deprecate all Twig callable attributes on
FunctionExpression
,FilterExpression
, andTestExpression
- Deprecate the
filter
node ofFilterExpression
- Add the notion of Twig callables (functions, filters, and tests)
- Bump minimum PHP version to 8.0
- Fix integration tests when a test has more than one data/expect section and deprecations
- Add the
enum_cases
function3.11.0 (2024-08-08)
- Deprecate
OptimizerNodeVisitor::OPTIMIZE_RAW_FILTER
- Add
Twig\Cache\ChainCache
andTwig\Cache\ReadOnlyFilesystemCache
- Add the possibility to deprecate attributes and nodes on
Node
- Add the possibility to add a package and a version to the
deprecated
tag- Add the possibility to add a package for filter/function/test deprecations
- Mark
ConstantExpression
as being@final
- Add the
find
filter- Fix optimizer mode validation in
OptimizerNodeVisitor
- Add the possibility to yield from a generator in
PrintNode
- Add the
shuffle
filter- Add the
singular
andplural
filters inStringExtension
- Deprecate the second argument of
Twig\Node\Expression\CallExpression::compileArguments()
- Deprecate
Twig\ExpressionParser\parseHashExpression()
in favor ofTwig\ExpressionParser::parseMappingExpression()
- Deprecate
Twig\ExpressionParser\parseArrayExpression()
in favor ofTwig\ExpressionParser::parseSequenceExpression()
- Add
sequence
andmapping
tests- Deprecate
Twig\Node\Expression\NameExpression::isSimple()
and
... (truncated)
Commits
4d19472
Prepare the 3.12.0 release33c4879
Fix CSd5b7120
minor #4248 Add conditional return types toensureTraversable
(ruudk)956d09b
Add conditional return types toensureTraversable
2d347b4
minor #4250 Add return typeisTraitable
(ruudk)bb8b9c1
Add return typeisTraitable
fecfbd8
minor #4249 Only unset loop when with_loop (ruudk)4224531
Only unset loop when with_loop1211c9a
feature #4247 deprecate passing a tag to ImportNode (xabbuh)bd48875
minor #4246 fix typo (xabbuh)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)