github getkirby/kirby 6.0.0-rc.3

pre-releaseone hour ago

Note

You can find the full changelog and docs for Kirby 6 over here: https://getkirby.com/releases/6

🐛 Bug fixes

  • Looking up a page or file by the UUID 0 (e.g. page('page://0'), site()->find('@0'), kirby()->file('file://0')) returns null instead of throwing an error #8872
  • Dropdown search fields have no divider below them when there are no options (thx @medienbaecker). #8902
  • Dropdowns no longer show the pointer cursor of the field they belong to (thx @medienbaecker). #8902
  • After cancelling a tag replace, the add dropdown no longer says "Replace with" (thx @medienbaecker). #8901
  • The add button of the tags field shows on hover (thx @medienbaecker). #8900

☠️ Deprecated

  • Kirby\Content\Lock::legacy(), Kirby\Content\Lock::legacyFile() and Kirby\Content\Lock::isLegacy() are deprecated. Old .lock files are no longer read and can be safely deleted. #8911

Changes since rc.2

🐛 Fixed regressions

  • Panel responses send Cache-Control: no-store, private again and keep headers added through $kirby->response()
  • Fixed user enumeration through response timing on code verification and through the challenge switch in the Panel login when the code or password-reset login method is enabled.
  • The preview view no longer hands out preview URLs for pages the current user cannot access.
  • Field upload routes (files and textarea fields) now check the file create permission before processing uploaded chunk data
  • Content data with keys in the <key> form can no longer be rendered as trusted HTML in the Panel.
  • Store the passkey counter without guards and keep sessions
  • A translated display option failed the string|null prop type of date and time fields. The prop accepts arrays again, as in v5. #8877
  • Field methods: callback() got the original field instead of a copy, so changes inside the callback persisted. This is now fixed. #8880
  • Field methods: permalinksToUrls() no longer ignores raw page://, file:// and site:// links. #8880
  • Pickers and the textarea file dialog in layout settings returned 404, because LayoutField had no dialog or drawer routes for its settings fields. It now adds fields/(:any)/(:all?) next to the inherited block routes. #8879
  • The password confirmations for disabling TOTP or email codes and for removing a passkey showed the user's email escaped twice (o&#039;brien@…). The drawers escaped it before $t(), and v-safe-html escaped the plain string again. They now pass the raw email to $th(), which escapes it once. #8881
  • #8284 made oga/weba the first extensions for audio/ogg and audio/webm, but they weren't in F::$types. Ogg uploads without an extension got the type null and were rejected, and F::mimeToType('audio/ogg') returned nothing. Both extensions are now audio. #8885
  • Changing your own email resets the email challenge opt-in, which rewrites .htpasswd and moves the password timestamp, so you were logged out. changeEmail() now renews the current session afterwards, the same way changeSecret() does. #8884
  • With Vue 3 Teleport, dialog content is already rendered when showModal() runs, so the browser focuses the first button (e.g. Cancel). The overlay autofocus then gave up, because focus was already inside. Overlay.open() now drops the browser's focus, so the autofocus picks [autofocus], then inputs, then submit, as in v5. #8882
  • Disabled link (page/file), object (toggle cells), checkboxes (batch buttons) and slug (wizard, also in the Rename dialog) fields could still be changed with a click. Each field now hides or disables these controls and ignores the change in its method. #8878
  • Select, radio, toggles, multiselect and tags fields with numeric option values no longer fail validation #8899
  • Users fields list users again for roles without access to the Users area #8903
  • Logging in with a challenge (2FA, code login, password reset) no longer logged you out right away #8904
  • A retry in the passkey drawer after a failed attempt passed a null challenge to Webauthn::verifyRegister()/::verifyLogin(), which only accepted strings, so it threw a TypeError (500). The challenge is now mixed, so the existing check reports "The passkey challenge is missing or expired" (400). #8883
  • Toggle values inside structure, object, blocks and layout fields are stored as true/false text again #8906
  • Panel: Pages and files list fields reload again when the view is reloaded with $panel.view.reload() #8837
  • Pages with output that is not valid UTF-8 (e.g. binary content representations) no longer fail with an error when the pages cache is active. They are rendered without being cached, like in Kirby 5. #8908
  • Content locking works again for models that still have an old .lock file in their content folder. Before, an outdated entry in such a file hid the actual lock, so other editors could overwrite unsaved changes without a warning. #8911
  • Panel: The empty state of pagelist and filelist fields is clickable again and opens the create dialog or file picker #8909
  • Writer: Keyboard shortcuts for marks (e.g. underline with Cmd/Ctrl + U ) no longer trigger the browser's own action for the same shortcut
  • Panel: Pressing Enter in the middle of a heading block splits the heading again, instead of adding an empty text block below it. #8912
  • Panel: The "Split" option in the menu of heading, text and list blocks shows up again whenever the cursor is in the middle of the text. #8912
  • A number or range field cleared in a secondary language no longer shows the value of the default language #8914
  • The preview view no longer redirects to URLs outside of the site
  • Logged-in users who open a login URL again are sent to the Panel instead of an error #8917
  • Page and file lists stay clickable while the content is locked by another user #8916
  • Panel: Typing the full text of an option in a tags field and pressing Enter no longer adds the text as a custom tag instead of the option's value. The same applies when replacing a tag. #8913
  • Preview view: Navigating to a page in another language inside a pinned preview no longer changes the Panel's interface language or the language of the edited content. #8915
  • Preview view: Panel and API URLs passed to the preview view no longer cause an endless loop and a fatal error. #8915
  • Filepicker field and textarea file picker: queries that return a site, page or user (e.g. query: page.parent) show that model's files again instead of an empty dialog #8918
  • Filepicker field and textarea file picker: listing user files for a page or the site no longer fails #8918
  • Filelist field now also support queries that return a site, page or user #8918

♻️ Refactored

  • Panel: k-dialog and k-drawer now check for a drop listener on every render. Before, the check was cached after the first render, so a listener added later would not have enabled the dropzone.

🚨 Breaking changes due to regression

  • Custom field methods are now bound to the field, like page, file, site and user methods. Static closures (static fn), first-class callables (Foo::bar(...)) and array callables ([Foo::class, 'bar']) no longer work as field methods. Register a regular closure instead, e.g. 'shout' => fn ($field) => Foo::shout($field).

🧹 Housekeeping

  • Updated translations
  • Updated JS dependencies

Don't miss a new kirby release

NewReleases is sending notifications on new releases.