Skip to content

v1.6.0 - 2024-04-17

Compare
Choose a tag to compare
@caendesilva caendesilva released this 17 Apr 12:57
· 1614 commits to master since this release
39a7e5a

1.6.0 - 2024-04-17

Added

  • Added a @head stack to the head.blade.php component in #1567
  • Added a Hyde::route() helper to the Hyde facade in #1591
  • Added new global helper functions (asset(), route(), url()) in #1592
  • Added a new Feature enum to improve the Features facade in #1650
  • Added a helper to ->skip() build tasks in #1656

Changed

  • The features array in the config/hyde.php configuration file is now an array of Feature enums in #1650
  • Sitemap generation will now be skipped if a base URL is not set, as Google now will not index sitemaps without a base URL in #1660
  • Updated the debug command to print the binary path when running in a standalone Phar in #1667

Deprecated

  • Deprecated the static Features flag methods used in the configuration files in #1650 which will be removed in HydePHP v2.0

Fixed

  • Fixed a bug where the sitemap and RSS feed generator commands did not work when the _site/ directory was not present in #1654
  • Fixed extra newlines being written to console for failing build tasks in #1661
  • Markdown formatting will now be stripped when generating an automatic blog post description when none is set in #1662 (fixes #1634)
  • Realtime Compiler: Fixed responsive dashboard table issue in #1595

Upgrade Path

In order to prepare your project for HydePHP v2.0, you should update your config/hyde.php configuration file to use the new Feature enum for the features array.

You can see the changes to make in your Hyde project by looking at the following pull request https://github.com/hydephp/hyde/pull/250/files

Your new config array should look like this:

    // Make sure to import the new Feature enum at the top of the file 
    use Hyde\Enums\Feature;
    
    // Then replace your enabled features with the new Feature enum cases
    'features' => [
        // Page Modules
        Feature::HtmlPages,
        Feature::MarkdownPosts,
        Feature::BladePages,
        Feature::MarkdownPages,
        Feature::DocumentationPages,

        // Frontend Features
        Feature::Darkmode,
        Feature::DocumentationSearch,

        // Integrations
        Feature::Torchlight,
    ],

If you need more help, you can see detailed upgrade instructions with screenshots in the pull request #1650

What's Changed in the Monorepo

What's Changed

Full Changelog: v1.5.0...v1.6.0