Upgrade to HydePHP v2.0#16
Merged
Merged
Conversation
Phase 1 - Composer:
- Bump php ^8.1 -> ^8.2, hyde/framework ^1.8 -> ^2.0, laravel-zero/framework ^10.0 -> ^11.0
Phase 4 - Config & published vendor views:
- config/hyde.php: replace NavItem::forLink -> Navigation::item, remove dropped AssetService constants
- config/docs.php: move sidebar_order and table_of_contents into nested sidebar key
- app/config.php: register NavigationServiceProvider, add HydeFront and Vite facade aliases
- styles.blade.php: migrate Asset::mediaLink/cdnLink/hasMediaFile/injectTailwindConfig to v2 API, add Vite wrapper
- scripts.blade.php: same asset API migration, add Vite wrapper, add type="module" to script tag
- head.blade.php: replace removed Hyde::mediaPath with Asset::exists/get
- navigation.blade.php: migrate to app('navigation.main'), NavigationGroup, getLabel/getItems API
- docs.blade.php: replace removed search-widget/search-scripts with search-modal
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Phase 2 - Laravel Mix → Vite: - Replace webpack.mix.js with vite.config.js using @tailwindcss/vite plugin - Replace laravel-mix with vite in package.json - Update npm scripts: dev/prod/watch → dev/build - Update resources/assets/app.js to be Vite ESM entry point importing app.css - Add "type": "module" to package.json Phase 3 - Tailwind CSS v3 → v4: - Rewrite resources/assets/app.css for Tailwind v4: - Replace @tailwind base/components/utilities with @import "tailwindcss" - Replace ~hydefront/dist/hyde.css (webpack alias, v3 source) with hydefront/components/torchlight.css (v4 source component) - Add @plugin "@tailwindcss/typography" (v4 plugin syntax) - Add @source directives for Blade template scanning - Migrate darkMode: 'class' to @custom-variant dark - Migrate theme.extend.colors to @theme block - Migrate typography JS config to plain CSS overrides - Remove tailwind.config.js (fully migrated to CSS) - Remove autoprefixer, postcss, laravel-mix, prettier from devDependencies - Bump hydefront ^3.4.1 → ^4.0.0, tailwindcss ^3 → ^4 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Closed
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the site from HydePHP v1.8 to v2.0.2, migrating all breaking changes across PHP dependencies, config files, published vendor views, and the frontend build pipeline.
Closes the implementation plan from #14. Tracking CI/CD action pinning separately in #15.
What changed
Phase 1 — Composer
php ^8.1 → ^8.2,hyde/framework ^1.8 → ^2.0,laravel-zero/framework ^10.0 → ^11.0Phase 2 — Laravel Mix → Vite
webpack.mix.jswithvite.config.jsusing@tailwindcss/vitepluginlaravel-mixwithviteinpackage.json; updated scriptsdev/prod/watch → dev/buildapp.jsconverted to an ESM entry point importingapp.cssPhase 3 — Tailwind CSS v3 → v4
tailwind.config.js; config fully migrated intoapp.css@tailwind base/components/utilities→@import "tailwindcss"darkMode: 'class'→@custom-variant darktheme.extend.colors→@theme {}block.proseCSS overrides@plugin "@tailwindcss/typography"(v4 plugin syntax)@sourcedirectives for Blade template scanninghydefront ^3.4.1 → ^4.0.0, removedautoprefixer,postcss,prettierPhase 4 — Config & published vendor views
config/hyde.php:NavItem::forLink→Navigation::item, removed droppedAssetServiceconstantsconfig/docs.php: movedsidebar_orderandtable_of_contentsinto the nestedsidebarkeyapp/config.php: registeredNavigationServiceProvider, addedHydeFrontandVitefacade aliasesstyles.blade.php: migratedAsset::mediaLink/cdnLink/hasMediaFile/injectTailwindConfigto v2 API, added Vite wrapperscripts.blade.php: same asset API migration, added Vite wrapper, addedtype="module"to script taghead.blade.php: replaced removedHyde::mediaPathwithAsset::exists/getnavigation.blade.php: migrated toapp('navigation.main'),NavigationGroup,getLabel/getItemsAPIdocs.blade.php: replaced removedsearch-widget/search-scriptsinclude withsearch-modalTest plan
composer updateresolves cleanly on PHP 8.4npm run buildproduces_media/app.css(47KB) and_media/app.jsvia Vitephp hyde buildcompiles all 8 pages without errors🤖 Generated with Claude Code