@ape-egg/vibe 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.2] - 2026-02-01
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Compiler hotfix**: Empty custom element tags no longer cause HTML content to be cut out during compilation
|
|
8
|
+
- Root cause: `<Nav></Nav>` was compiled to `<component src="/components/Nav.html">` (no closing tag), causing the inlining regex to match from Nav's opening tag to the next component's closing tag (e.g., `<Headline>`'s `</component>`), treating all HTML in between as children of Nav
|
|
9
|
+
- Solution: All custom element tags now compile to properly closed `<component>...</component>` tags, even when empty
|
|
10
|
+
- Prevents regex from matching across multiple components
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
3
14
|
## [1.1.1] - 2026-02-01
|
|
4
15
|
|
|
5
16
|
### Added
|
|
Binary file
|
|
@@ -166,11 +166,7 @@ impl HtmlParser {
|
|
|
166
166
|
matches.reverse();
|
|
167
167
|
for (start, end, children, attrs) in matches {
|
|
168
168
|
let attrs_str = attrs.map(|a| format!(" {}", a)).unwrap_or_default();
|
|
169
|
-
let replacement =
|
|
170
|
-
format!("<component src=\"/{}/{}.html\"{}>", components_dir, tag_name, attrs_str)
|
|
171
|
-
} else {
|
|
172
|
-
format!("<component src=\"/{}/{}.html\"{}>{}</component>", components_dir, tag_name, attrs_str, children)
|
|
173
|
-
};
|
|
169
|
+
let replacement = format!("<component src=\"/{}/{}.html\"{}>{}</component>", components_dir, tag_name, attrs_str, children);
|
|
174
170
|
result.replace_range(start..end, &replacement);
|
|
175
171
|
}
|
|
176
172
|
}
|