Pre-release notes: https://getkirby.com/releases/5
Changelog since 5.0.0-beta.5
✨ Enhancements
- Form improvements #7114 #7115 #7125 #7126
- New
Fields::validate()method - New
Form::validate()method, which is a proxy forFields::validate() - Use
Form::validate()inModelWithContent::update() - New
::isTranslatable($language)method forFieldandFieldClass - New
::extendModels()method in HasModels trait. - New
::isSubmittablemethod forFieldandFieldClass
- New
✨Enhancements from previous betas
- Form and Field improvements #7117 #7123
FieldClass::fill()now returns static instead of void. This no longer introduces a difference to the Field class and also makes::fill()chainable, which can be handy.- Value-related methods and properties are now all moved to the Value mixin
Requiredmethods and properties are now moved to the Validation mixin::fill()is no longer setting anulldefault value, which makes no sense.
🐛 Fixed regressions from previous betas
- Fixed notice issue in the
Field::fill()method when no computed properties exist. #7113 - Avoid broken field component state after
:fill()method call #7113 - Fixed named exports on global Vue constructor for plugins (thx @johannschopplich)
- Fix
App::$eventsinitialization #7121 - User and page models can be registered without lowercase keys again #7124
🚨 Breaking changes
- All
Kirby\Blueprintclasses have been removed. Those classes never were involved in rendering Blueprints. We used a small part of it for the field options, but had them mostly in there in preparation for a Blueprint code refactoring that never happend as planned. The removal should not cause any damage, because the code was internal and never useful for plugins. But we still want to mention it here. #7119 - The Field class no longer exposes public properties
valueanddefault. Public access to properties has not been documented or encouraged anywhere, so it technically should not have been used anyway. #7123 ::isSaveablehas been renamed to::hasValuein theFieldClassclass. #7125
♻️ Refactored
k-panel-menu: simplify gap #7108
♻️ Refactored from previous betas
::isSaveablehas been renamed to::hasValuein all form classes. #7125
🧹 Housekeeping
- Update JS dependencies