Kirby v3.4.1 Release Notes

Release Date: 2020-08-04 // over 3 years ago
  • ๐Ÿ†• New Features

    ๐Ÿ†• New Gap field

    The new gap field is a simple layout field to help you organise your fields more visually and create gaps in the field grid.

    gap

    fields: category: type: textwidth: 1/2gap: type: gapwidth: 1/4featured: type: togglewidth: 1/4text: - "no" - "yes"
    

    With conditional fields

    fields: hasHeadline: type: radiooptions: - yes - noheadline: type: textwidth: 1/2when: hasHeadline: yesgap: type: gapwidth: 1/2when: hasHeadline: notext: type: textarea
    

    Async api library

    ๐Ÿ‘ All API methods in the Panel now support async await as an alternative to promise callbacks. This helps to break out of callback hell.

    const page = await this.$api.pages.get("photography");console.log(page.title);
    

    ๐Ÿ†• New beforeSend option for $kirby->email()

    You can now access the phpMailer instance for more fine-grained control in the new beforeSend option:

    $kirby-\>email(['from' =\> '[email protected]', 'to' =\> '[email protected]', 'subject' =\> 'Thank you for your contact request', 'body' =\> 'We will never reply', 'transport' =\> [ 'type' =\> 'smtp', 'host' =\> 'mail.getkirby.com', 'port' =\> 465, 'security' =\> true, 'auth' =\> true, 'username' =\> '[email protected]', 'password' =\> 'randomString',], // new feature'beforeSend' =\>function ($mailer) { $mailer-\>SMTPOptions = ['ssl' =\> [ 'verify\_peer' =\> false, 'verify\_peer\_name' =\> false, 'allow\_self\_signed' =\> true] ]; return $mailer; } ]);
    

    You can also use this new option in email presets in your config file.

    ๐Ÿ†• New Dark Mode SVG favicon

    ๐Ÿ’ป For Dark Mode users, the favicon of the panel will now automatically switch color and adjust to the dark browser bar.

    dark-mode-favicon

    More new features โ€ฆ

    • ๐Ÿ†• New Form::content() method
    • ๐Ÿ†• New Vue.$helper.string.camelToKebab(string) helper
    • ๐Ÿ†• New Vue.$helper.isComponent(componentName) helper
    • Async store actions

    โœจ Enhancements

    • โž• Added unit tests for LanguageRoutes #2609
    • โž• Added missing hooks unit tests
    • We brought Kirby\Http\Request\Query in line with Kirby\Http\Query #2692

    ๐Ÿ›  Fixes

    โช We introduced an unintentional breaking change in 3.4.0 that broke plugin options in some third-party plugins. 3.4.1 reverts this breaking change. All plugins that already shipped a fix for this breaking change unfortunately have to roll back that fix as well. We are sorry for the hassle! (You can read more about the issue here: #2697)

    ๐Ÿ›  More fixes โ€ฆ

    • ๐Ÿ›  Fixed words option for Collection::search() #2698
    • ๐Ÿ›  Fixed error page in multilang setup #2609
    • ๐Ÿ›  Fixed issues with Umlauts in user email addresses #2600
    • Pass $originalPage in page.duplicate:after hook to fix breaking change
    • Structure fields no longer save unsaveable fields #2702
    • ๐Ÿ›  Fixed warning in Account view after logout #2713
    • ๐Ÿ›  Fixed warning in Settings view after logout
    • ๐Ÿ›  Set fixed types in fields to avoid issues in extended fields #2643
    • translate: false in a child of a structure field no longer saves null on secondary language #1602
    • ๐Ÿ›  Fixed certificate issue in Remote::post() requests #2745
    • ๐Ÿ›  Fixed unexpected behaviour in Html::tag() method #2743