Skip to content

1.2.0

Choose a tag to compare

@distantnative distantnative released this 23 Oct 19:27
· 7 commits to main since this release
34ef63c

🎉 Features

  • Support for Kirby 5 and 6
  • Support for PHP 8.5
  • New Author::gravatar() helper to use a Gravatar image as the author icon
use Kirby\Discord\Author;
use Kirby\Discord\Discord;

Discord::submit(
  webhook: option('discord.webhook'),
  title: 'New comment',
  author: [
    'name' => $user->name()->value(),
    'icon' => Author::gravatar($user->email(), 'mp')
  ]
);

⚠️ Requirements

  • PHP 8.3, 8.4 or 8.5. Support for PHP 8.1 and 8.2 has been dropped.
  • Kirby 4, 5 or 6

🐛 Bug fixes

  • DateTime objects passed as timestamp are now converted to UTC.
  • Field::from() no longer declares null as a possible return type, as it always returns a field.

🧹 Housekeeping

  • Sends the request with Remote::request() instead of the magic Remote::post()
  • Tests now use PHPUnit instead of Pest
  • Code style is checked with getkirby/php-cs
  • Static analysis runs on Psalm 6 at its strictest level, all run through cpx.
  • PHPMD has been dropped.
  • CI tests PHP 8.3, 8.4 and 8.5 and uses pinned GitHub Actions
  • The release ZIP no longer includes .editorconfig