@ape-egg/vibe 1.7.1 → 1.7.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.7.2] - 2026-02-27
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Component inlining — hyphenated custom elements inside slot content** (`find_matching_close`)
|
|
8
|
+
- `<component-card>`, `<component-grid>`, etc. inside slot content incorrectly matched `<component\b`, incrementing the depth counter without a corresponding close
|
|
9
|
+
- The real `</component>` could never bring the depth back to 0, so `find_matching_close` returned `None` and the outer component was left un-inlined (causing `Cannot GET /components/Layout.html` at runtime)
|
|
10
|
+
- Fixed by replacing `\b` with `(?:\s|>|/>)` — only matches actual `<component` tags followed by whitespace or `>`, not hyphenated variants
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
3
14
|
## [1.7.1] - 2026-02-27
|
|
4
15
|
|
|
5
16
|
### Added
|
|
Binary file
|
|
Binary file
|
package/compiler/src/Cargo.lock
CHANGED
package/compiler/src/Cargo.toml
CHANGED
|
@@ -258,8 +258,8 @@ impl HtmlParser {
|
|
|
258
258
|
/// Find the start position of the matching close tag, handling nesting of the same tag.
|
|
259
259
|
/// `after_open`: byte position immediately after the `>` of the opening tag.
|
|
260
260
|
fn find_matching_close(content: &str, after_open: usize, tag_name: &str) -> Option<usize> {
|
|
261
|
-
//
|
|
262
|
-
let open_re = regex::Regex::new(&format!(r"<{}
|
|
261
|
+
// (?:\s|>) ensures <component> matches but not <component-foo> (hyphen is not \s or >)
|
|
262
|
+
let open_re = regex::Regex::new(&format!(r"<{}(?:\s|>|/>)", regex::escape(tag_name))).unwrap();
|
|
263
263
|
let close_re = regex::Regex::new(&format!(r"</{}>", regex::escape(tag_name))).unwrap();
|
|
264
264
|
|
|
265
265
|
let mut depth = 1i32;
|