Repository navigation
fix: Neos 8.3–9.2 support and inline rendering of overrides - #89
Merged
Merged
Conversation
- Cast Site::getNodeName() to string (SiteNodeName object in Neos 9) - Skip empty excludedPaths entries; the default `-` excluded every CSS file - Require neos/flow and neos/neos ^8.3 || ^9.0 instead of * - Require symfony/finder explicitly (was only a transitive dependency)
…heet - Store overrides only in Data/Persistent; no symlink in the package directory - Render them as <style data-theme-cssvariables> via the CssVariables Eel helper - Flush the content cache after save and restore - Read custom properties from minified CSS and the stored override file - Sanitise variable names and values before storing - Document the behaviour, Neos compatibility and changes in README and CHANGELOG
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
Makes the package work on Neos 8.3, 8.4, 9.0, 9.1 and 9.2. Before this, the module crashed on Neos 9, found no variables on any version, and the overrides never reached the frontend.
Site::getNodeName()to string (SiteNodeNameobject was used as array key).excludedPathsentry (-) excluded every CSS file; empty entries are now skipped.Data/Persistent/Theme/CssVariables/<site>/custom.cssand rendered inline as<style data-theme-cssvariables>via the newCssVariables.customCss(site)Eel helper. No more symlink inside the package directory (that symlink could make every page return a 500).neos/flowandneos/neos^8.3 || ^9.0instead of*;symfony/finder^7.0 || ^8.0is now required explicitly.Unreleasedsection.Test plan
Tested end-to-end in local installs of Neos 8.3, 8.4, 9.0, 9.1 and 9.2 (demo site + a fixture package with plain CSS variables):
<style>with the overridecomposer validate🤖 Generated with Claude Code