1.7.0 - 2024-07-05
Added
- Added support for using HTML comments to create Markdown code block filepath labels in #1693
- Added a config option to disable the theme toggle buttons to automatically use browser settings in #1697
- You can now specify which path to open when using the
--open
option in the serve command in #1694 - Added a
--format=json
option to theroute:list
command in #1724
Changed
- When a navigation group is set in front matter, it will now be used regardless of the subdirectory configuration in #1703 (fixes #1515)
- Use late static bindings to support overriding data collections file finding in #1717 (fixes #1716)
- Method
Hyde::hasSiteUrl()
now returns false if the site URL is for localhost in #1726 - Method
Hyde::url()
will now return a relative URL instead of throwing an exception when supplied a path even if the site URL is not set in #1726 - Updated the
.env.example
file to contain more details on the site URL setting's usages in #1746 - Added a version prefix to the sitemap's generator attribute in #1767
- Setting a site name in the Yaml config file will now influence all configuration values where this is used, unless already set, in #1770 and #1773
Deprecated
- Deprecated the global
unslash()
function, replaced with the existing namespaced\Hyde\unslash()
function in #1753 - Deprecated the
BaseUrlNotSetException
class in #1759
Removed
- The Git version is no longer displayed in the debug screen and dashboard in #1756
Fixed
- Fixed explicitly set front matter navigation group behavior being dependent on subdirectory configuration, fixing #1515 in #1703
- Fixed DataCollections file finding method not being able to be overridden #1716 in #1717
- Fixed PHP warning when trying to parse a Markdown file with just front matter without body #1705 in #1728
- Fixed #1748 by normalizing generator version prefixes in #1767
- Yaml data files no longer need to start with triple dashes to be parsed by DataCollections in #1733
- Updated the Hyde URL helper to not modify already qualified URLs in #1757
Extra information
This release contains changes to how HydePHP behaves when a site URL is not set by the user.
These changes are made to reduce the chance of the default localhost
value showing up in production environments.
Most notably, HydePHP now considers that default site URL localhost
to mean that a site URL is not set, as the user has not set it.
This means that things like automatic canonical URLs will not be added, as Hyde won't know how to make them without a site URL.
The previous behaviour was that Hyde used localhost
in canonical URLs, which is never useful in production environments.
For this reason, we felt it worth it to make this change in a minor release, as it has a such large benefit for sites.
You can read more about the details and design decisions of this change in the following pull request #1726.
What's Changed in the Monorepo
What's Changed
- Internal: Update Dependabot configuration to update GitHub Actions by @caendesilva in #1669
- Internal: Update workflows to better handle running in forks by @caendesilva in #1675
- Bump codecov/codecov-action from 3 to 4 by @dependabot in #1670
- Bump actions/download-artifact from 2 to 4 by @dependabot in #1671
- Bump actions/cache from 3 to 4 by @dependabot in #1672
- Bump actions/checkout from 2 to 4 by @dependabot in #1673
- Bump actions/upload-artifact from 1 to 4 by @dependabot in #1674
- Add unit test for naming conventions by @caendesilva in #1676
- Fix command description wording by @caendesilva in #1677
- Move internal helper classes to new internal support namespace by @caendesilva in #1678
- Refactor to massively simplify internal route list helper classes by @caendesilva in #1679
- Bump github/codeql-action from 2 to 3 by @dependabot in #1680
- Bump actions/setup-node from 3 to 4 by @dependabot in #1681
- Internal: Update Dependabot configuration to update NPM packages by @caendesilva in #1682
- Bump postcss from 8.4.31 to 8.4.38 by @dependabot in #1683
- Bump prettier from 2.6.0 to 3.2.5 by @dependabot in #1684
- Bump @tailwindcss/typography from 0.5.2 to 0.5.12 by @dependabot in #1685
- Bump tailwindcss from 3.1.0 to 3.4.3 by @dependabot in #1686
- Bump autoprefixer from 10.4.7 to 10.4.19 by @dependabot in #1687
- Internal: Update Tailwind compiler to force push build by @caendesilva in #1688
- Clean up internal helper code by @caendesilva in #1690
- Add custom filepath label support for HTML comments by @caendesilva in #1693
- Update realtime compiler open flag to support specifying the page to open by @caendesilva in #1694
- Bump @tailwindcss/typography from 0.5.12 to 0.5.13 by @dependabot in #1695
- Internal: Update Tailwind compiler to force push builds to the target branch by @caendesilva in #1696
- Add a config option to disable theme toggle buttons to automatically use browser settings by @caendesilva in #1697
- [1.x] Refactor filesystem helpers by @caendesilva in #1699
- .gitattributes: substitute CRLF only in text files by @ydalton in #1700
- Merge changes from downstream repository by @caendesilva in #1701
- Fix gitattributes normalization across all packages by @caendesilva in #1702
- [1.x] Honour front matter navigation groups set in front matter regardless of subdirectory setting by @caendesilva in #1703
- Internal: Update file testing helpers by @caendesilva in #1708
- Bump prettier from 3.2.5 to 3.3.0 by @dependabot in #1711
- Use late static bindings to support overriding data collections file finding by @caendesilva in #1717
- Bump prettier from 3.3.0 to 3.3.1 by @dependabot in #1713
- Bump tailwindcss from 3.4.3 to 3.4.4 by @dependabot in #1714
- Bump prettier from 3.3.1 to 3.3.2 by @dependabot in #1721
- Bump braces from 3.0.2 to 3.0.3 by @dependabot in #1723
- Bump braces from 3.0.2 to 3.0.3 in /packages/hydefront by @dependabot in #1722
- Add a JSON output format option to the route list command by @caendesilva in #1724
- Clean up and refactor route list command code by @caendesilva in #1725
- Code cleanup and refactors by @caendesilva in #1727
- Fix undefined array key exception for empty Markdown pages by @caendesilva in #1728
- Improve behaviour when a site URL is not explicitly set by @caendesilva in #1726
- Bump ws from 8.8.1 to 8.17.1 by @dependabot in #1729
- [1.x] DataCollections improvements by @caendesilva in #1733
- Internal: Update test fixtures to use "class" instead of "className" by @caendesilva in #1739
- Update site URL documentation to contain more details on its usages by @caendesilva in #1746
- Internal: Extract testing helpers and refactor tests by @caendesilva in #1747
- Internal: Add statistics output for analysed expressions by @caendesilva in #1750
- Minor code cleanup by @caendesilva in #1752
- [1.x] Deprecate the global
unslash
function by @caendesilva in #1753 - Remove the Git version displays by @caendesilva in #1756
- Update the Hyde URL helper to not modify already qualified URLs by @caendesilva in #1757
- [1.x] Deprecate the
BaseUrlNotSetException
class by @caendesilva in #1759 - Internal: Handle skipped tests by @caendesilva in #1755
- Internal: Update tests to cover missing code coverage lines by @caendesilva in #1761
- Internal: Run tests on PHP 8.1 through PHP 8.3 by @caendesilva in #1763
- Internal: Migrate PHPUnit configuration by @caendesilva in #1764
- Internal: Sync changes from downstream packages into the monorepo by @caendesilva in #1765
- Patch TailwindCSS table issue in HydeFront by @caendesilva in #1766
- Add a version prefix to the sitemap generator version attribute by @caendesilva in #1767
- Internal: Improve pull request labeling workflow by @caendesilva in #1768
- Fix source code formatting by @caendesilva in #1769
- Improve the Yaml configuration loader by @caendesilva in #1770
- Refactor console kernel bootstrapper loading by @caendesilva in #1772
- Refactor console kernel bootstrapper loading by @caendesilva in #1771
- Refactor bootstrappers and improve Yaml environment configuration loading by @caendesilva in #1773
- Bump postcss from 8.4.38 to 8.4.39 by @dependabot in #1775
- Internal: Clean up and refactor test code by @caendesilva in #1777
- HydePHP v1.7.0 - 2024-07-05 by @caendesilva in #1779
New Contributors
Full Changelog: v1.6.0...v1.7.0