2.1.0
Node Templates Version 2.1
As version 2.0 https://github.com/Flowpack/Flowpack.NodeTemplates/releases/tag/2.0.0 might have been breaking for your project, and it was tedious to validate that youre templates still work, you can now utilize the new feature to validate simple node templates!
Validate simple node templates
It might be tedious to validate that all your templates are working especially in a larger project. To validate the ones that are not dependent on data from the node creation dialog (less complex templates) you can utilize this command:
flow nodetemplate:validate
In case everything is okay it will succeed with X NodeType templates validated.
.
But in case you either have a syntax error in your template or the template does not match the node structure (illegal properties) you will be warned:
76 of 78 NodeType template validated. 2 could not be build standalone.
My.NodeType:Bing
Property "someLegacyProperty" in NodeType "My.NodeType:Bing" | PropertyIgnoredException(Because property is not declared in NodeType. Got value `"bg-gray-100"`., 1685869035209)
My.NodeType:Bar (depends on "data" context)
Configuration ""${data.aListOfThings}"" in "childNodes.pages.withItems" | RuntimeException(Type NULL is not iterable., 1685802354186)
The standalone validation should detect errors and prevents editors having to deal with these errors at runtime.
For more complex templates, which are dependent on the node creation data, it is recommended to write separate tests. Currently, errors in templates depending on the data context will only be treated as warning, as they are probably not an issue at runtime.
What's Changed
- TASK: Cleanup test by @mhsdesign in #65
- TASK: fix tests on Neos8.3 by @mhsdesign in #68
- BUGFIX: correct node constraint checks by @mhsdesign in #67
- FEATURE:
flow nodeTemplate:validate
validate templates standalone by @mhsdesign in #58 - BUGFIX: Position TemplateNodeCreationHandler to the end by @mhsdesign in #46
- BUGFIX: Skip unset configured childNodes by @mhsdesign in #73
- TASK: code review by @mhsdesign in #74
Full Changelog: 2.0.1...2.1.0