Skip to content

2.1.0

Compare
Choose a tag to compare
@mhsdesign mhsdesign released this 02 Aug 12:31
· 31 commits to 2.0 since this release
5f7ff7f

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

Full Changelog: 2.0.1...2.1.0