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:
4
dist/demo.html
vendored
4
dist/demo.html
vendored
@@ -72,7 +72,7 @@
|
||||
.t(
|
||||
`
|
||||
\<script type="module">
|
||||
import $d from "/fluent-dom-esm.ts";
|
||||
import $d from "/fluent-dom-esm.js";
|
||||
|
||||
// Create new objects in memory with a simple, chainable interface
|
||||
const $article = $d
|
||||
@@ -149,7 +149,7 @@
|
||||
(val) => `<span class="code-str">${val}</span>`,
|
||||
)
|
||||
.replace(/\.\w+/g, (val) =>
|
||||
val !== ".ts"
|
||||
val !== ".js"
|
||||
? `<span class="code-func">${val}</span>`
|
||||
: val,
|
||||
)
|
||||
|
8
dist/fluent-dom-esm.js
vendored
8
dist/fluent-dom-esm.js
vendored
@@ -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")
|
||||
|
1
dist/fluent-dom-esm.types.d.ts
vendored
1
dist/fluent-dom-esm.types.d.ts
vendored
@@ -1,4 +1,5 @@
|
||||
export interface FluentDomObject {
|
||||
(nodeOrQuerySelector: string | HTMLElement): FluentDomObject;
|
||||
fluentDom: string;
|
||||
a: (name: string, value: string) => FluentDomObject;
|
||||
app: (obj: FluentDomObject | HTMLElement | string) => FluentDomObject;
|
||||
|
Reference in New Issue
Block a user