update to v2.3.0

add `.rep()` & `.replaceChildren()` function
update `.app()` & `.append()` to support rest params
update build target to ES6
fix comment color on demo page
add (more) tests
This commit is contained in:
2025-09-13 19:44:55 -04:00
parent af2e0d2eec
commit 96c8f980e9
19 changed files with 732 additions and 101 deletions

4
dist/demo.html vendored
View File

@@ -148,6 +148,10 @@
/\`[^`]+\`/g,
(val) => `<span class="code-str">${val}</span>`,
)
.replace(
/\/\/.*/g,
(val) => `<span class="code-cmnt">${val}</span>`,
)
.replace(/\.\w+/g, (val) =>
val !== ".js"
? `<span class="code-func">${val}</span>`