Releases: PackageFactory/atomic-fusion-proptypes
v2.1.1 BUGFIX: Handle ArrayAccess in DataStructure validator gracefully
What's Changed
Full Changelog: v2.1.0...v2.1.1
v2.2.0 Fusion object`PropTypes:FromPrototype` & Inline-docs in EEL Helper
What's Changed
- Feature: Inline-docs in EEL Helper instead of
__call
by @mhsdesign in #19 - FEATURE: Fusion object
PropTypes:FromPrototype
to use propTypes from other fusion prototypes by @mficzel in #20
New Contributors
- @mhsdesign made their first contribution in #19
Full Changelog: v2.1.0...v2.2.0
v2.1.0 PropTypeValidation works for derived component implementations
What's Changed
- FEATURE: PropTypeValidationAspect executes for child classes of ComponentImplementation by @gjwnc in #15
New Contributors
Full Changelog: v2.0.2...v2.1.0
Declare compatibility with Neos 8.x
v2.0.2 TASK: Declare compatibility with Neos 8.x
Neos 7.0 compatibility
v2.0.1 Relax version constraint for Neos 7
Flow 6.0 compatibility
v2.0.0 TASK: Include Travis badge
Relax version constraints to support Neos 5
v1.3.1 TASK: Relax version constraints to support Neos 5
Strict mode for propType validations
In strict mode an error is thrown if an unvalidated prop is passed to
a component in development context. This ensures that all props are validated.
To enable strict mode for a component add @strict = true
to the propTypes.
prototype(Vendor.Site:Example) < prototype(Neos.Fusion:Component) {
@propTypes {
@strict = true
...
}
}
Better Error Messages
A better readable view of the errors by overriding the error handler for fusion components. Each error is rendered as a seperate line togehter with a deep path that allows to debug errors in nested data structures much easier.
Add `PropTypes.dataStructure` Validator
This is an exact copy of the shape-validator but reflects the term data-structure wich
is added as Fusion prototype in Neos 4.2.
PropTypes.dataStructure({'foo': PropTypes.integer, 'bar': PropTypes.string})
: Validate the keys of the given array validate with the assigned Validator, accepts null and ignores all other keys. The key validators have to define wether a single key is required.