update to v2.2.1

fix type issues with root object wrapping node or querySelector
fix incorrect import in demo
fix unused options in vite.config.js
add (some) tests - more to come!
This commit is contained in:
2025-09-13 03:05:49 -04:00
parent c9de0883eb
commit af2e0d2eec
14 changed files with 519 additions and 31 deletions

View File

@@ -4,13 +4,13 @@ const isHTMLElement = (value) => !!value.nodeType;
const isNumber = (value) => typeof value === "number";
const isString = (value) => typeof value === "string";
/**
* fluent-dom-esm v2.2.0
* fluent-dom-esm v2.2.1
*
* Fluent DOM Manipulation, adapted to ESM and cranked up to v2.1(.0).
* Fluent DOM Manipulation, adapted to ESM and cranked up to v2.2(.1).
*
* https://git.itsericwoodward.com/eric/fluent-dom-esm
*
* v2.2.0 Copyright (c) 2025 Eric Woodward
* v2.2.1 Copyright (c) 2025 Eric Woodward
* Original copyright (c) 2009 Tommy Montgomery (https://glacius.tmont.com/articles/fluent-dom-manipulation-in-javascript)
*
* Released under the WTFPL (Do What the Fuck You Want to Public License)
@@ -19,7 +19,7 @@ const isString = (value) => typeof value === "string";
* @author Tommy Montgomery (original)
* @license http://sam.zoy.org/wtfpl/
*/
const APP_VERSION = "2.2.0";
const APP_VERSION = "2.2.1";
const fluentDomEsm = (function() {
const FluentDom = function(nodeOrQuerySelector) {
if (typeof nodeOrQuerySelector !== "string")