github getkirby/kirby 5.0.0-rc.4

latest releases: 5.1.0-rc.1, 5.0.4, 5.0.3...
pre-release2 months ago

Pre-release notes

https://getkirby.com/releases/5

Changelog since 5.0.0-rc.3

✨ Enhancements

The following enhancements have been made to fix file upload regressions:

  • New async TextareaInput.restoreSelection() method
  • New panel.upload.announce() method, which sends the success notification and model.update event after uploads have successfully completed.
  • The upload module now sends a file.upload.error event for every file that could not be uploaded.
  • Various TextareaInput methods have been turned into async methods
    for more stable async/await control throughout all TextareaInput
    methods.
    • insert
    • insertFile
    • insertUpload
    • prepend
    • toggle
    • wrap

🐛 Fixed regressions from previous pre-releases

  • panel.content.save() now calls panel.content.cancelSaving() to make sure that any old scheduled save requests are properly
    cancelled. This could have lead to potential race conditions before.
  • The FilesField no longer sends unnecessary file.upload and model.update emitters after upload. Those lead to duplicate section reload requests so far. After uploads, the panel.upload.done() already takes care of reloading the current view and all its sections.
  • The TextareaInput.insertUpload() method now uses await panel.content.update() to push text value changes directly to the changes API and to reload the view correctly. This fixes #7249
  • The upload module sends the file.upload event directly when a file has been uploaded and passes the file object correctly. Before this change, the file.upload event was only called in the FilesField and FilesSection components when all uploads finished.
  • Both the upload.done() and upload.cancel() handlers now properly emit the complete event if there are any completed uploads.
  • Make HasMethods::hasMethod() public again #7266
  • Select & radio field previews: Show option text instead of value #7273
  • Adjust the background color of the mobile back button in the file browser in dark mode. #7280

☠️ Deprecated

  • TextareaInput.restoreSelectionCallback() Use TextareaInput.restoreSelection().

♻️ Refactored

  • Move trait template annotations to class doc #7272
  • TextareaInput.selectionRange and TextareaInput.restoreSelection() are used to replace the old restoreSelectionCallback method in dialog events for better async control.
  • Removed unnecessary complete handler in FilesSection. The upload module already takes care of the notifications and events.

Don't miss a new kirby release

NewReleases is sending notifications on new releases.