v1.6.0 - 2024-04-17
1.6.0 - 2024-04-17
Added
- Added a
@head
stack to thehead.blade.php
component in #1567 - Added a
Hyde::route()
helper to theHyde
facade in #1591 - Added new global helper functions (
asset()
,route()
,url()
) in #1592 - Added a new
Feature
enum to improve theFeatures
facade in #1650 - Added a helper to
->skip()
build tasks in #1656
Changed
- The
features
array in theconfig/hyde.php
configuration file is now an array ofFeature
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
- Add a
@head
stack to thehead.blade.php
component by @caendesilva in #1567 - Refactor unit test to replace complex mock with inlined build loop by @caendesilva in #1570
- Remove global function imports from tests by @caendesilva in #1582
- Remove old smooth page scrolling config entry from documentation by @caendesilva in #1585
- Improved view testing by @caendesilva in #1588
- Improve and add more view tests by @caendesilva in #1589
- Add a
Hyde::route()
helper method by @caendesilva in #1591 - Update internal documentation preview workflow by @caendesilva in #1593
- Improved helper functions by @caendesilva in #1592
- Make the dashboard table properly responsive by @caendesilva in #1595
- Improved view testing helper by @caendesilva in #1596
- Add more view tests for the navigation menu by @caendesilva in #1603
- Create additional view test method by @caendesilva in #1604
- Internal: Move testing helper classes to new helpers directory by @caendesilva in #1607
- Internal: Improve testing helpers by @caendesilva in #1608
- Internal: Improve and refactor testing helpers by @caendesilva in #1609
- Update internal monorepo tools by @caendesilva in #1611
- Bump follow-redirects from 1.15.4 to 1.15.6 by @dependabot in #1612
- Internal: Create workflow to label pull requests by @caendesilva in #1615
- Internal: Add example tests by @caendesilva in #1614
- Internal: Update labeling workflow to run on pull request state edits by @caendesilva in #1616
- Internal: Create new HTML testing framework by @caendesilva in #1613
- Internal: Move base testing classes to testing package by @caendesilva in #1617
- Internal: Normalize view testing helpers by @caendesilva in #1618
- Internal: Update code intelligence class parsing to evaluate Alpine classes by @caendesilva in #1619
- Update supported versions in package readmes by @caendesilva in #1620
- Designate HydePHP v1.x as LTS by @caendesilva in #1621
- Internal: Update pull request labeling workflow by @caendesilva in #1623
- Internal: Fix workflow formatting by @caendesilva in #1624
- Internal: Update continuous integration server integration by @caendesilva in #1627
- Internal: Update continuous integration server integrations to better handle forks by @caendesilva in #1629
- Bump webpack-dev-middleware from 5.3.3 to 5.3.4 by @dependabot in #1628
- Bump Composer dependencies by @caendesilva in #1631
- Internal: Update PhpStorm configuration files by @caendesilva in #1633
- Internal: Add testing helper to mock kernel features by @caendesilva in #1641
- Bump express from 4.18.1 to 4.19.2 by @dependabot in #1644
- Internal: Update Pest configuration to use unit test case by @caendesilva in #1648
- Introduce a new Feature enum to improve the Features facade by @caendesilva in #1650
- Internal: Improve test suite by @caendesilva in #1653
- Improve the codebase using the new Feature enum by @caendesilva in #1652
- Fix issues with the sitemap and RSS feed generator commands by @caendesilva in #1654
- Internal: Add build task unit test by @caendesilva in #1658
- Add a skip feature to build tasks by @caendesilva in #1656
- Fix extra newline being written for failing build tasks by @caendesilva in #1661
- Skip sitemap generation when there is no valid base URL by @caendesilva in #1660
- Internal: Clean up test code by @caendesilva in #1655
- Internal: Try to fix Codecov by @caendesilva in #1657
- Clean up HTML and Blade files by @caendesilva in #1610
- Strip Markdown from automatic blog post descriptions by @caendesilva in #1662
- Internal: Setup Pest type coverage plugin for the monorepo by @caendesilva in #1664
- Clean up and refactor code by @caendesilva in #1663
- Update debug command to print binary path when running in the Phar standalone by @caendesilva in #1667
- HydePHP v1.6.0 - 2024-04-17 by @caendesilva in #1668
Full Changelog: v1.5.0...v1.6.0