Skip to content

Commit ac4408c

Browse files
committed
Create hydephp-version-1-6-released.md
1 parent 6171995 commit ac4408c

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
title: 'HydePHP Version v1.6 Released'
3+
description: "This release introduces new features for `<head>` customization, routing, and feature management."
4+
category: releases
5+
author: Caen
6+
date: '2024-04-17 12:00'
7+
---
8+
9+
## Overview
10+
11+
**HydePHP v1.6 is now available for download!**
12+
13+
This update brings several new features and improvements that enhance the flexibility and performance of your HydePHP static site projects. Let's dive into the most significant changes!
14+
15+
# HydePHP v1.7 Released: Enhanced Flexibility and Performance
16+
17+
We're excited to announce the release of HydePHP v1.7! This update brings several new features and improvements that enhance the flexibility and performance of your static site projects. Let's dive into the most significant changes:
18+
19+
## New Features and Improvements
20+
21+
### 1. Enhanced Head Component Customization
22+
23+
The `head.blade.php` component now includes a `@head` stack, allowing for more flexible customization of your site's `<head>` section. This addition makes it easier to inject custom meta tags, scripts, or styles on a per-page basis.
24+
25+
### 2. Improved Routing and Asset Handling
26+
27+
We've introduced new global helper functions (`asset()`, `route()`, and `url()`), along with a `Hyde::route()` helper in the `Hyde` facade. These additions simplify asset management and URL generation throughout your project.
28+
29+
### 3. Feature Management Enhancements
30+
31+
A new `Feature` enum has been added to improve the `Features` facade. This change allows for more robust feature toggling and management within your HydePHP projects.
32+
33+
### 4. Build Task Optimization
34+
35+
You can now use the `->skip()` helper to exclude specific build tasks, offering more control over the build process and potentially speeding up development workflows.
36+
37+
## Important Changes
38+
39+
- The `features` array in `config/hyde.php` now uses `Feature` enums instead of string values.
40+
- Sitemap generation will be skipped if no base URL is set, aligning with Google's indexing requirements.
41+
- The debug command now prints the binary path when running in a standalone Phar, aiding in troubleshooting.
42+
43+
## Bug Fixes
44+
45+
Several bugs have been addressed in this release, including:
46+
47+
- Fixed sitemap and RSS feed generation issues when the `_site/` directory is absent.
48+
- Resolved extra newline output during failing build tasks.
49+
- Improved blog post description generation by stripping Markdown formatting.
50+
- Fixed a responsive dashboard table issue in the Realtime Compiler.
51+
52+
## Preparing for HydePHP v2.0
53+
54+
As we look ahead to the upcoming v2.0 release, we've deprecated some static `Features` flag methods used in configuration files. To ensure a smooth transition, we recommend updating your `config/hyde.php` file to use the new `Feature` enum for the `features` array.
55+
56+
For detailed upgrade instructions and examples, please refer to the [pull request #1650](https://github.com/hydephp/develop/pull/1650) in our GitHub development repository.
57+
58+
## Upgrade Guide
59+
60+
To upgrade to this version, simply run the following command:
61+
62+
```bash
63+
composer require hyde/framework:^1.6
64+
```
65+
66+
You may first want to read the [upgrade guide](https://hydephp.com/docs/1.x/updating-hyde) documentation.
67+
68+
## Conclusion
69+
70+
HydePHP v1.7 brings valuable improvements to the framework, enhancing developer experience and setting the stage for future advancements.
71+
We encourage all users to upgrade to this latest version and start preparing for the upcoming v2.0 release.
72+
73+
Thank you for your continued support and happy coding with HydePHP!
74+
75+
We hope you enjoy this release, and please report any issues you find at GitHub, https://github.com/hydephp/hyde,
76+
and share your thoughts on Twitter/X, just use the hashtag [#HydePHP](https://twitter.com/search?q=%23HydePHP),
77+
and tag us at [@HydeFramework](https://twitter.com/HydeFramework).

0 commit comments

Comments
 (0)