From c10e8cd3451f53825928de0d5def644887053921 Mon Sep 17 00:00:00 2001
From: Eric Woodward
Date: Sat, 13 Sep 2025 01:21:22 -0400
Subject: [PATCH] update to v2.1.0
add support for querySeletor
add toHTMLElement
clean up comments
fix bug in README
---
README.md | 33 ++++-
dist/fluent-dom-esm.js | 32 ++---
dist/fluent-dom-esm.types.d.ts | 3 +
dist/styles/main.css | 4 +
index.html | 72 ++++++++---
jsr.json | 2 +-
package.json | 4 +-
public/styles/main.css | 4 +
src/fluent-dom-esm.ts | 42 ++++---
src/fluent-dom-esm.types.ts | 10 ++
yarn.lock | 218 ++++++++++++++++-----------------
11 files changed, 258 insertions(+), 166 deletions(-)
diff --git a/README.md b/README.md
index ab02b3c..72be222 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ All assume that `$d` is the default function from `fluent-dom-esm` (`import $d f
### Create a Paragraph
```
-$(document.body).app($d
+$d(document.body).app($d
.c("p")
.s("background-color", "yellow")
.s("color", "black")
@@ -99,7 +99,7 @@ const $ul = $d
);
});
-$(document.body).app($ul);
+$d(document.body).app($ul);
```
renders (with added spaces) as
@@ -114,6 +114,32 @@ renders (with added spaces) as
+
+ - List Item 1
+ - List Item 2
+ - List Item 3
+ - List Item 4
+
+