-
Notifications
You must be signed in to change notification settings - Fork 0
[TASK] Update typo3fluid/fluid to v5 #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
Diff Coverage: Not applicable. There was no coverage data reported for the files in this diff. Total Coverage: This PR will not change total coverage. 🛟 Help
|
91dfefc to
1a5f53a
Compare
Pull Request Test Coverage Report for Build 19577342152Details
💛 - Coveralls |
1a5f53a to
c46745b
Compare
| datasource | package | from | to | | ---------- | ---------------- | ------ | ----- | | packagist | typo3fluid/fluid | 2.15.0 | 5.0.1 |
c46745b to
3ad7dbe
Compare
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
^2.15 || ^4.0->^2.15 || ^4.0 || ^5.0Release Notes
TYPO3/Fluid (typo3fluid/fluid)
v5.0.0Compare Source
Version 5.0 is the next major milestone in the development of the Fluid templating engine. Based on the previous efforts that went into Fluid 4, Fluid 5 continues to refactor and to modernize the underlining source code, which sometimes requires introducing strategic breaking changes. All breaking changes in this release have been pre-announced in Fluid 4, both in the changelog and by applying the
@deprecatedannotation or emitting a deprecation notice in the code.These breaking changes allow us to ship meaningful new features that weren't possible before:
Streamlined ViewHelper Argument Validation
ViewHelpers now use the
StrictArgumentProcessorto validate ViewHelper arguments. This means that argument validation behaves the same with ViewHelpers and with the<f:argument>ViewHelper, which was introduced with Fluid 4.2. While the new validation might require some adjustments in existing projects, it has clear advantages: ViewHelper instances can actually rely on the types specified in their API to be checked properly by Fluid, which makes a lot of custom validation code obsolete.The new argument validation adds support for union types as well as
iterable,countableandcallable, which allows ViewHelpers to define a clearer API.See #1062, #1074, #1194 and #1226 for more details.
Template File Resolving and File Extension
Fluid 5 now features an internal fallback chain for template file names. Template files are now resolved in the following order (first match wins):
This means that it's no longer necessary for template names to start with an uppercase character. Also, there is a new dedicated file extension
*.fluid.*for Fluid templates:*.fluid.htmlinstead of*.html,*.fluid.xmlinstead of*.xml, and so on. Because of the fallback chain, both can be added without breaking potential overrides from other template paths.We recommend switching to the new file extension if Fluid 5 can be a hard requirement for your project. Otherwise, just stick to the existing general file extensions. The new file extension is entirely optional and will not be a requirement.
See #1243 and #1258 for more details.
Simplified Cache Warmup
Fluid 5 comes with a much simpler way to warmup the template cache in your project. The existing cache warmup functionality has been removed and replaced by a new implementation that requires much less configuration and context. By default, it makes use of the new
*.fluid.*file extension to discover all Fluid templates in your project.See #1224 for more details.
Alternative Syntax for CDATA Sections
A long-standing issue in Fluid templates has been that the Fluid variable and inline ViewHelper syntax collides with inlined CSS or JavaScript code. This issue has now been addressed with Fluid 5: A new alternative syntax has been introduced that makes collisions between CSS/JavaScript and Fluid far less likely.
The normal inline and variable syntax uses single curly braces
{ }as tokens in Fluid templates. In<![CDATA[ ]]>sections, this syntax are now ignored. Instead, three curly braces{{{ }}}can be used to call Fluid ViewHelpers or to access variables. The tag-based syntax is disabled altogether in CDATA sections.See #1246 and the documentation for more details: Avoiding syntax collision with JS and CSS.
Deprecations and Breaking Changes
Please refer to the documentation for a full list of breaking changes and newly introduced deprecations in Fluid 5.0: Changelog 5.x.
What's Changed
Please note that some of the listed changes have been backported to Fluid 4.5.0, most importantly all new ViewHelpers.
ChainedVariableProvider::getby @sascha-egerer in #1165f:maxViewHelper by @eliashaeussler in #1254New Contributors
Full Changelog: TYPO3/Fluid@4.5.0...5.0.0
v4.5.0Compare Source
Fluid 4.5 makes advances in two areas: It contains a range of new ViewHelpers that should make the life of integrators easier. Also, it includes deprecations in preparation for the upcoming Fluid 5.0, which will contain various breaking changes.
New ViewHelpers in Fluid 4.5:
<f:range>creates an array containing the specified range of integers<f:length>returns the length of a given string<f:merge>merges two given arrays into one<f:startsWith>and<f:endsWith>check if a given string starts or ends with another string<f:round>,<f:ceil>and<f:floor>provide various ways to round floats<f:min>and<f:max>return the minimum/maximum value in the given array<f:contains>checks if a given array/string contains the given valueThe deprecations and preparations for the upcoming Fluid 5.0 are listed in the documentation: Changelog 4.x
What's Changed
ChainedVariableProvider::get(#1165) by @lolli42 in #1187Full Changelog: TYPO3/Fluid@4.4.3...4.5.0
v4.4.3Compare Source
What's Changed
Full Changelog: TYPO3/Fluid@4.4.2...4.4.3
v4.4.2Compare Source
What's Changed
Full Changelog: TYPO3/Fluid@4.4.1...4.4.2
v4.4.1Compare Source
What's Changed
Full Changelog: TYPO3/Fluid@4.4.0...4.4.1
v4.4.0Compare Source
What's Changed
New Contributors
Full Changelog: TYPO3/Fluid@4.3.0...4.4.0
v4.3.0Compare Source
Fluid 4.3 introduces the concept of components to Fluid. Components are custom HTML-like tags based on Fluid templates that you can reuse throughout your project. The concept is similar to popular frontend frameworks like React and Vue or native Web Components, but they are server-rendered by PHP.
In addition to the user-facing components feature, new low-level APIs have been introduced which potentially allow Fluid to interact with other templating engines.
Both aspects are explained in detail in the documentation:
Thank you to all members of the TYPO3 Association who voted for the community budget idea and made this release possible! ❤️
What's Changed
New Contributors
Full Changelog: TYPO3/Fluid@4.2.0...4.3.0
v4.2.0Compare Source
What's Changed
Full Changelog: TYPO3/Fluid@4.1.2...4.2.0
v4.1.2Compare Source
What's Changed
New Contributors
Full Changelog: TYPO3/Fluid@4.1.1...4.1.2
v4.1.1Compare Source
What's Changed
dev-mainby @sbuerk in #1055Full Changelog: TYPO3/Fluid@4.1.0...4.1.1
v4.1.0Compare Source
What's Changed
New Contributors
Full Changelog: TYPO3/Fluid@4.0.3...4.1.0
v4.0.3Compare Source
What's Changed
Full Changelog: TYPO3/Fluid@4.0.2...4.0.3
v4.0.2Compare Source
What's Changed
Full Changelog: TYPO3/Fluid@4.0.1...4.0.2
v4.0.1Compare Source
What's Changed
Full Changelog: TYPO3/Fluid@4.0.0...4.0.1
v4.0.0Compare Source
Nearly eight years after the launch of Fluid v2, we are happy to release Fluid v4. For this major version we had one key goal in mind: no breaking changes to user-facing APIs, such as ViewHelpers or View classes. We are confident that we have achieved this goal.
In this release, we focused on improving code quality by introducing stricter type checks across most of the codebase. In addition, we have deprecated several outdated or suboptimal APIs – most notably, the
renderStatic()method for ViewHelpers and the related traits. While these deprecated APIs remain functional in Fluid v4, they will be removed in the upcoming Fluid v5 release. We strongly encourage users to consult the deprecation log and update their code to ensure compatibility with future versions.To make the upgrade process as seamless as possible, we've backported many of the new features to Fluid v2, ensuring that the migration path is largely backward-compatible.
Noteworthy features in v4 that could not be backported:
faad81a<f:comment>now ignores Fluid syntax errorsba2c48b{true},{false}and{null}are part of the language now and can be used in all templates4d5b0c9AbstractTagBasedViewHelpernow supports boolean tag arguments according to the HTML5 standardA full list of breaking changes is available in the documentation.
New Contributors
Full Changelog: TYPO3/Fluid@2.15.0...4.0.0
Configuration
📅 Schedule: Branch creation - Monday through Friday ( * * * * 1-5 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.