[TASK] Update Fluid dependency to 2.4.0+ 23/53823/4
authorClaus Due <claus@namelesscoder.net>
Mon, 28 Aug 2017 15:56:52 +0000 (17:56 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 29 Aug 2017 20:45:05 +0000 (22:45 +0200)
This patch updates the composer Fluid dependency
to version 2.4.0 and above. Fixes multiple bugs and
performance issues - and adds a few new features.

Full list of changes:


Change-Id: I2d16c6c95ecb6c985da772736d066d8e10da8761
Resolves: #82230
Releases: master
Reviewed-on: https://review.typo3.org/53823
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Important-82230-FluidUpdates.rst [new file with mode: 0644]

index d7166ae..33032c2 100644 (file)
@@ -45,7 +45,7 @@
                "psr/http-message": "~1.0",
                "cogpowered/finediff": "~0.3.1",
                "mso/idna-convert": "^1.1.0",
-               "typo3fluid/fluid": "^2.3",
+               "typo3fluid/fluid": "^2.4",
                "guzzlehttp/guzzle": "^6.2.1",
                "doctrine/dbal": "~2.5.4",
                "nikic/php-parser": "~3.0.6"
index 93bfa69..e6e7a36 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
-    "content-hash": "fd66c8fafee6011bc40bcdbc0ae93d96",
+    "content-hash": "7b947207ce9e125821a010951e7061a2",
     "packages": [
             "name": "cogpowered/finediff",
             "name": "typo3fluid/fluid",
-            "version": "2.3.1",
+            "version": "2.4.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/TYPO3/Fluid.git",
-                "reference": "117ea779232ff6299c5659e8ee3583509e851eca"
+                "reference": "f583badd3b2a90f046fe5c1e0459300325a3e0ce"
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/TYPO3/Fluid/zipball/117ea779232ff6299c5659e8ee3583509e851eca",
-                "reference": "117ea779232ff6299c5659e8ee3583509e851eca",
+                "url": "https://api.github.com/repos/TYPO3/Fluid/zipball/f583badd3b2a90f046fe5c1e0459300325a3e0ce",
+                "reference": "f583badd3b2a90f046fe5c1e0459300325a3e0ce",
                 "shasum": ""
             "require": {
             "description": "The TYPO3 Fluid template rendering engine",
-            "time": "2017-02-22T05:27:39+00:00"
+            "time": "2017-08-25T10:10:42+00:00"
     "packages-dev": [
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Important-82230-FluidUpdates.rst b/typo3/sysext/core/Documentation/Changelog/master/Important-82230-FluidUpdates.rst
new file mode 100644 (file)
index 0000000..5e59481
--- /dev/null
@@ -0,0 +1,39 @@
+.. include:: ../../Includes.txt
+Important: #82230 - Updates to the Fluid template engine library
+See :issue:`82230`
+This article describes the changes that have been added to the Fluid template engine which is used in TYPO3.
+* Bug fix to evaluate negative numbers in conditions the same way PHP does
+* Bug fix for ``getLayoutPathAndFilename`` on ``TemplatePaths`` when property was manually set using setter
+* Bug fix to avoid issues with malformed cache identifiers
+* Bug fix to avoid attempting ``htmlspecialchars()`` on any values that are not string-compatible
+* Bug fix for adding namespaces to list of ignored namespaces
+* Bug fix to make casting of ints/floats consistent in attribute values and in array values
+* Bug fix to make internal cache of resolved ViewHelpers non-static to make sure it flushes between contexts
+* Bug fix for recursive file resolving
+* Performance bug fix to avoid loading compiled template classes that are already loaded
+* Performance bug fix to make ``f:render`` static callable from compiled templates
+* Performance bug fix to improve performance of uncompilable templates
+* New feature: support for ``hasMyProperty()`` as alternative to ``isMyProperty()`` when using ``{object.myProperty}``
+* New feature: ``ParserRuntimeOnly`` ViewHelper trait to use when ViewHelper only has functionality during parsing
+* New feature: ``ignoreEmptyAttributes()`` added to ``TagBuilder``, can be called in tag based ViewHelpers to skip
+  rendering of any attributes that evaluate to an empty string
+* New feature: support for ``AND`` and ``OR`` as alternatives to ``&&`` and ``||`` in boolean attributes like
+  ``condition`` on ``f:if``
+* New feature: support for custom error handling and a new implementation of a fault-tolerant error handler
+* New feature: methods ``getAll`` and ``addAll`` added to ``ViewHelperVariableContainer`` to allow getting and setting
+  all variables in a scope
+* New feature: concept of ``Renderable`` introduced. A ``Renderable`` is any class which implements
+  ``RenderableInterface`` - instances of such classes can be assigned as template variables and passed to ``f:render``
+Full list can be found on https://github.com/TYPO3/Fluid/compare/2.3.4...2.4.0
+.. index:: Fluid
\ No newline at end of file