v0.48.0-beta - 2022-07-10
caendesilva
released this
10 Jul 10:42
·
24348 commits
to master
since this release
About
This release brings a massive refactor in the way the HydePHP auto-discovery process works. It does this by centralizing all discovery logic to the new pseudo-router module which discovers and maps all source files and output paths.
The update also refactors related code to use the router. Part of this is a major rewrite of the navigation menu generation. If you have set any custom navigation links you will need to update your configuration files as the syntax has changed to use the NavItem model instead of array keys.
You will also need to update navigation related Blade templates, if you have previously published them.
Added
- Added a pseudo-router module which will internally be used to improve Hyde auto-discovery
- Added a Route facade that allows you to quickly get a route instance from a route key or path
- Added a new NavItem model to represent navigation menu items
- Added a new configuration array for customizing the navigation menu, see the
hyde.navigation
array config
Changed
- Changed how the navigation menu is generated, configuration files and published views must be updated
- Changed bootstrap.php to Stt Hyde base path using dirname instead of getcwd
- Reversed deprecation for
StaticPageBuilder::$outputPath
- internal refactor: Creates a new build service to handle the build process
Deprecated
- Deprecated
DiscoveryService::findModelFromFilePath()
- Use the Router instead. - Deprecated
DiscoveryService.php
- Use the Router instead. (Some helpers may be moved to FluentPathHelpers.php)
Removed
- The "no pages found, skipping" message has been removed as the build loop no longer recieves empty collections.
- Removed the
hyde.navigation_menu_links
andhyde.navigation_menu_blacklist
configuration options, see new addition above.
What's Changed
- Pseudo-routing take two by @caendesilva in #168
- Clickable filepaths should fall back to the input string if the file does not exist by @caendesilva in #173
- Add
array_map_unique()
helper by @caendesilva in #175 - Create build service to utilize the router and move logic away from command by @caendesilva in #174
- Disable autoloader optimization in default composer config by @caendesilva in #176
- Don't display estimated search index generation time if it's less than 1 second by @caendesilva in #177
- Refactor RebuildService to use the Router by @caendesilva in #182
- Add a Route facade by @caendesilva in #184
- Add macroable trait to the Hyde facade by @caendesilva in #185
- Merge v0.47.0-beta into master by @caendesilva in #188
- Add more route helpers by @caendesilva in #189
- Merge from master by @caendesilva in #191
- Minor route improvements by @caendesilva in #192
- Update minimum Hyde Realtime Compiler version to 2.3 to be compatible with Hyde 0.44 by @caendesilva in #194
- Fix bug causing footer to disappear by @caendesilva in #195
- Convert navigation menu generation to service by @caendesilva in #187
- Improve navigation menu configuration options and documentation by @caendesilva in #198
- Throw exception if route is not found by @caendesilva in #200
- Add new support for custom navigation menu links by @caendesilva in #201
- Revert deprecation for
StaticPageBuilder::$outputPath
by @caendesilva in #203 - Update Router namespaces by @caendesilva in #205
- Convert Router into Singleton by @caendesilva in #207
- Deprecate
DiscoveryService.php
by @caendesilva in #208 - Update the Realtime Compiler plugin to use the new Router service by @caendesilva in #210
- Update sitemap generator to use the router by @caendesilva in #211
- Set Hyde base path using dirname instead of getcwd by @caendesilva in #213
- Prepare for v0.48.0-beta release by @caendesilva in #214
Full Changelog: v0.47.0-beta...v0.48.0-beta