Repository navigation
fix: correct template rendering, preserve compatibility and refresh tooling - #1
Merged
Merged
Conversation
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.
HTML templates with multiline attributes,
$/underscore placeholders, quoted literals, or self-closing inputs can fail to compile or render. This update fixes those cases, preserves React element placeholders in text, and prepares an explicitly documented 0.2.0 release.=, escape property keys and syntax characters, concatenate adjacent numeric attribute placeholders, and emit React.createElement calls using variadic children. Static sibling elements no longer produce list-key warnings.reserverWhitespaceoption spelling.Compatibility: Generated source and some rendered output change. Numeric attribute placeholders now concatenate rather than add; text placeholders in JavaScript output preserve React children rather than coerce them to strings. Compact JSX output preserves actual internal line breaks instead of literal backslash-n text. Custom factories can receive separate text/placeholder children rather than one concatenated entry per text node. The README documents these changes and asks users to rebuild generated components. Development uses Node 22.12+; no new library Node engine restriction is added. Package version is prepared as 0.2.0; no npm publication is performed.
Validation: 91 local tests pass with 100% line coverage; builds and isolated package checks pass. Packaged exports and declarations also pass under Node 18. pnpm audit reports zero known vulnerabilities. CI verifies Node 22/React 18, Node 22/React 19, and Node 24/React 19.