Skip to content

Commit 50b5ce7

Browse files
authored
Merge pull request #1779 from hydephp/release-v1.7.0
HydePHP v1.7.0 - 2024-07-05
2 parents 0408032 + e938921 commit 50b5ce7

File tree

4 files changed

+52
-36
lines changed

4 files changed

+52
-36
lines changed

CHANGELOG.md

+45
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,51 @@ HydePHP consists of two primary components, Hyde/Hyde and Hyde/Framework. Develo
1717

1818
<!-- CHANGELOG_START -->
1919

20+
## [1.7.0](https://github.com/hydephp/develop/releases/tag/1.7.0) - 2024-07-05
21+
### Added
22+
- Added support for using HTML comments to create Markdown code block filepath labels in https://github.com/hydephp/develop/pull/1693
23+
- Added a config option to disable the theme toggle buttons to automatically use browser settings in https://github.com/hydephp/develop/pull/1697
24+
- You can now specify which path to open when using the `--open` option in the serve command in https://github.com/hydephp/develop/pull/1694
25+
- Added a `--format=json` option to the `route:list` command in https://github.com/hydephp/develop/pull/1724
26+
27+
### Changed
28+
- When a navigation group is set in front matter, it will now be used regardless of the subdirectory configuration in https://github.com/hydephp/develop/pull/1703 (fixes https://github.com/hydephp/develop/issues/1515)
29+
- Use late static bindings to support overriding data collections file finding in https://github.com/hydephp/develop/pull/1717 (fixes https://github.com/hydephp/develop/issues/1716)
30+
- Method `Hyde::hasSiteUrl()` now returns false if the site URL is for localhost in https://github.com/hydephp/develop/pull/1726
31+
- 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 https://github.com/hydephp/develop/pull/1726
32+
- Updated the `.env.example` file to contain more details on the site URL setting's usages in https://github.com/hydephp/develop/pull/1746
33+
- Added a version prefix to the sitemap's generator attribute in https://github.com/hydephp/develop/pull/1767
34+
- Setting a site name in the Yaml config file will now influence all configuration values where this is used, unless already set, in https://github.com/hydephp/develop/pull/1770 and https://github.com/hydephp/develop/pull/1773
35+
36+
### Deprecated
37+
- Deprecated the global `unslash()` function, replaced with the existing namespaced `\Hyde\unslash()` function in https://github.com/hydephp/develop/pull/1753
38+
- Deprecated the `BaseUrlNotSetException` class in https://github.com/hydephp/develop/pull/1759
39+
40+
### Removed
41+
- The Git version is no longer displayed in the debug screen and dashboard in https://github.com/hydephp/develop/pull/1756
42+
43+
### Fixed
44+
- Fixed explicitly set front matter navigation group behavior being dependent on subdirectory configuration, fixing https://github.com/hydephp/develop/issues/1515 in https://github.com/hydephp/develop/pull/1703
45+
- Fixed DataCollections file finding method not being able to be overridden https://github.com/hydephp/develop/issues/1716 in https://github.com/hydephp/develop/pull/1717
46+
- Fixed PHP warning when trying to parse a Markdown file with just front matter without body https://github.com/hydephp/develop/issues/1705 in https://github.com/hydephp/develop/pull/1728
47+
- Fixed https://github.com/hydephp/develop/issues/1748 by normalizing generator version prefixes in https://github.com/hydephp/develop/pull/1767
48+
- Yaml data files no longer need to start with triple dashes to be parsed by DataCollections in https://github.com/hydephp/develop/pull/1733
49+
- Updated the Hyde URL helper to not modify already qualified URLs in https://github.com/hydephp/develop/pull/1757
50+
### Extra information
51+
52+
This release contains changes to how HydePHP behaves when a site URL is not set by the user.
53+
54+
These changes are made to reduce the chance of the default `localhost` value showing up in production environments.
55+
56+
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.
57+
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.
58+
The previous behaviour was that Hyde used `localhost` in canonical URLs, which is never useful in production environments.
59+
60+
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.
61+
62+
You can read more about the details and design decisions of this change in the following pull request https://github.com/hydephp/develop/pull/1726.
63+
64+
2065
## [1.6.0](https://github.com/hydephp/develop/releases/tag/1.6.0) - 2024-04-17
2166
### Added
2267
- Added a `@head` stack to the `head.blade.php` component in https://github.com/hydephp/develop/pull/1567

RELEASE_NOTES.md

+5-34
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,19 @@ This serves two purposes:
1010
2. At release time, you can move the Unreleased section changes into a new release version section.
1111

1212
### Added
13-
- Added support for using HTML comments to create Markdown code block filepath labels in https://github.com/hydephp/develop/pull/1693
14-
- Added a config option to disable the theme toggle buttons to automatically use browser settings in https://github.com/hydephp/develop/pull/1697
15-
- You can now specify which path to open when using the `--open` option in the serve command in https://github.com/hydephp/develop/pull/1694
16-
- Added a `--format=json` option to the `route:list` command in https://github.com/hydephp/develop/pull/1724
13+
- for new features.
1714

1815
### Changed
19-
- When a navigation group is set in front matter, it will now be used regardless of the subdirectory configuration in https://github.com/hydephp/develop/pull/1703 (fixes https://github.com/hydephp/develop/issues/1515)
20-
- Use late static bindings to support overriding data collections file finding in https://github.com/hydephp/develop/pull/1717 (fixes https://github.com/hydephp/develop/issues/1716)
21-
- Method `Hyde::hasSiteUrl()` now returns false if the site URL is for localhost in https://github.com/hydephp/develop/pull/1726
22-
- 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 https://github.com/hydephp/develop/pull/1726
23-
- Updated the `.env.example` file to contain more details on the site URL setting's usages in https://github.com/hydephp/develop/pull/1746
24-
- Added a version prefix to the sitemap's generator attribute in https://github.com/hydephp/develop/pull/1767
25-
- Setting a site name in the Yaml config file will now influence all configuration values where this is used, unless already set, in https://github.com/hydephp/develop/pull/1770 and https://github.com/hydephp/develop/pull/1773
16+
- for changes in existing functionality.
2617

2718
### Deprecated
28-
- Deprecated the global `unslash()` function, replaced with the existing namespaced `\Hyde\unslash()` function in https://github.com/hydephp/develop/pull/1753
29-
- Deprecated the `BaseUrlNotSetException` class in https://github.com/hydephp/develop/pull/1759
19+
- for soon-to-be removed features.
3020

3121
### Removed
32-
- The Git version is no longer displayed in the debug screen and dashboard in https://github.com/hydephp/develop/pull/1756
22+
- for now removed features.
3323

3424
### Fixed
35-
- Fixed explicitly set front matter navigation group behavior being dependent on subdirectory configuration, fixing https://github.com/hydephp/develop/issues/1515 in https://github.com/hydephp/develop/pull/1703
36-
- Fixed DataCollections file finding method not being able to be overridden https://github.com/hydephp/develop/issues/1716 in https://github.com/hydephp/develop/pull/1717
37-
- Fixed PHP warning when trying to parse a Markdown file with just front matter without body https://github.com/hydephp/develop/issues/1705 in https://github.com/hydephp/develop/pull/1728
38-
- Fixed https://github.com/hydephp/develop/issues/1748 by normalizing generator version prefixes in https://github.com/hydephp/develop/pull/1767
39-
- Yaml data files no longer need to start with triple dashes to be parsed by DataCollections in https://github.com/hydephp/develop/pull/1733
40-
- Updated the Hyde URL helper to not modify already qualified URLs in https://github.com/hydephp/develop/pull/1757
25+
- for any bug fixes.
4126

4227
### Security
4328
- in case of vulnerabilities.
44-
45-
### Extra information
46-
47-
This release contains changes to how HydePHP behaves when a site URL is not set by the user.
48-
49-
These changes are made to reduce the chance of the default `localhost` value showing up in production environments.
50-
51-
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.
52-
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.
53-
The previous behaviour was that Hyde used `localhost` in canonical URLs, which is never useful in production environments.
54-
55-
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.
56-
57-
You can read more about the details and design decisions of this change in the following pull request https://github.com/hydephp/develop/pull/1726.

packages/framework/src/Foundation/HydeKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class HydeKernel implements SerializableContract
5858
use Serializable;
5959
use Macroable;
6060

61-
final public const VERSION = '1.6.0';
61+
final public const VERSION = '1.7.0';
6262

6363
protected static self $instance;
6464

packages/hyde/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
],
2626
"require": {
2727
"php": "^8.1",
28-
"hyde/framework": "^1.6",
28+
"hyde/framework": "^1.7",
2929
"laravel-zero/framework": "^10.0"
3030
},
3131
"require-dev": {

0 commit comments

Comments
 (0)