Skip to content

Commit d91cdb6

Browse files
committed
removing signals
1 parent e29d4a9 commit d91cdb6

File tree

17 files changed

+166
-192
lines changed

17 files changed

+166
-192
lines changed

dist/dev/cdn.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const uhtml = Symbol.for('µhtml');
1010

1111
const {
1212
render, html, svg,
13-
computed, signal, batch, effect, untracked,
1413
} = globalThis[uhtml] || (globalThis[uhtml] = await import(/* webpackIgnore: true */resolve(new URL(import.meta.url))));
1514

16-
export { batch, computed, effect, html, render, signal, svg, untracked };
15+
export { html, render, svg };

dist/dev/creator.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ var creator = (document = /** @type {Document} */(globalThis.document)) => {
1212
* @returns {DocumentFragment}
1313
*/
1414
return (content, xml = false) => {
15-
if (xml) {
16-
if (!range) {
17-
range = document.createRange();
18-
range.selectNodeContents(
19-
document.createElementNS('http://www.w3.org/2000/svg', 'svg')
20-
);
21-
}
22-
return range.createContextualFragment(content);
15+
if (!xml) {
16+
tpl.innerHTML = content;
17+
const fragment = tpl.content;
18+
tpl = /** @type {HTMLTemplateElement} */(tpl.cloneNode(false));
19+
return fragment;
2320
}
24-
tpl.innerHTML = content;
25-
const fragment = tpl.content;
26-
tpl = /** @type {HTMLTemplateElement} */(tpl.cloneNode(false));
27-
return fragment;
21+
if (!range) {
22+
range = document.createRange();
23+
range.selectNodeContents(
24+
document.createElementNS('http://www.w3.org/2000/svg', 'svg')
25+
);
26+
}
27+
return range.createContextualFragment(content);
2828
};
2929
};
3030

dist/dev/json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ const ATTRS = /([^\s/>=]+)(?:=(\x00|(?:(['"])[\s\S]*?\3)))?/g;
281281
/** @typedef {Element | Component} Container */
282282

283283
/** @type {update} */
284-
const defaultUpdate = (_, type, path, name, hint) => [type, path, name];
284+
const defaultUpdate = (...args) => args;
285285

286286
/**
287287
* @param {Node} node

dist/dev/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const ATTRS = /([^\s/>=]+)(?:=(\x00|(?:(['"])[\s\S]*?\3)))?/g;
243243
/** @typedef {Element | Component} Container */
244244

245245
/** @type {update} */
246-
const defaultUpdate = (_, type, path, name, hint) => [type, path, name];
246+
const defaultUpdate = (...args) => args;
247247

248248
/**
249249
* @param {Node} node

dist/prod/cdn.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/prod/creator.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/prod/json.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)