voodoojs 0.12.4 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{chunk-ELIX2DRQ.js → chunk-6QFKV444.js} +19 -7
- package/dist/{chunk-XGZ7SXD3.js → chunk-D45ZEXUO.js} +4 -4
- package/dist/{chunk-NKQGUWVF.js → chunk-IWHK6Y32.js} +4 -4
- package/dist/{chunk-OHISQWSW.js → chunk-JB72AX7G.js} +5 -5
- package/dist/{chunk-XIMSOXWF.js → chunk-L3JNHLTI.js} +5 -5
- package/dist/{chunk-FNTYILLW.js → chunk-OH6FIDTW.js} +3 -3
- package/dist/{chunk-7XRFOONN.js → chunk-PO6REBDJ.js} +3 -3
- package/dist/{chunk-FAWOJTRM.js → chunk-PPT7RDKJ.js} +4 -4
- package/dist/{chunk-2GSZT3CX.js → chunk-TUXGS7XW.js} +13 -13
- package/dist/{chunk-3MPIJH5X.js → chunk-X3FZPWI6.js} +6 -6
- package/dist/{chunk-AR6WDY7K.js → chunk-YH3IDF6L.js} +4 -4
- package/dist/essential.cjs +14 -2
- package/dist/essential.d.cts +1 -1
- package/dist/essential.d.ts +1 -1
- package/dist/essential.js +10 -10
- package/dist/gpu.cjs +7 -1
- package/dist/gpu.js +10 -10
- package/dist/http.cjs +1 -1
- package/dist/http.js +5 -5
- package/dist/index.cjs +14 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -20
- package/dist/reactivity.cjs +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +1 -1
- package/dist/socket.js +9 -9
- package/dist/style-YWBYOE6T.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +14 -2
- package/dist/voodoo.core.min.js +15 -15
- package/dist/voodoo.full.js +14 -2
- package/dist/voodoo.full.min.js +37 -37
- package/dist/voodoo.js +14 -2
- package/dist/voodoo.min.js +24 -24
- package/package.json +1 -1
- package/dist/style-DA6RFLKO.js +0 -5
- package/dist/{query-XooOh4vB.d.cts → query-D_BGQw8m.d.cts} +28 -28
- package/dist/{query-DzHfm8Kg.d.ts → query-Dl6Urlwd.d.ts} +28 -28
package/dist/voodoo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.12.
|
|
2
|
+
* Voodoo.js v0.12.5
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -2510,8 +2510,15 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
2510
2510
|
list.push(scope);
|
|
2511
2511
|
}
|
|
2512
2512
|
var ignoredRemovals = /* @__PURE__ */ new WeakSet();
|
|
2513
|
+
var detachedTemplates = /* @__PURE__ */ new WeakMap();
|
|
2513
2514
|
function removeQuietly(node) {
|
|
2514
2515
|
ignoredRemovals.add(node);
|
|
2516
|
+
const parent = node.parentNode;
|
|
2517
|
+
if (parent) {
|
|
2518
|
+
let kept = detachedTemplates.get(parent);
|
|
2519
|
+
if (!kept) detachedTemplates.set(parent, kept = /* @__PURE__ */ new Set());
|
|
2520
|
+
kept.add(node);
|
|
2521
|
+
}
|
|
2515
2522
|
node.remove();
|
|
2516
2523
|
}
|
|
2517
2524
|
function addCleanup(node, fn) {
|
|
@@ -2527,6 +2534,11 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
2527
2534
|
}
|
|
2528
2535
|
for (let i = children.length - 1; i >= 0; i--) destroy(children[i]);
|
|
2529
2536
|
}
|
|
2537
|
+
const detached = detachedTemplates.get(node);
|
|
2538
|
+
if (detached) {
|
|
2539
|
+
detachedTemplates.delete(node);
|
|
2540
|
+
for (const template of detached) destroy(template);
|
|
2541
|
+
}
|
|
2530
2542
|
const list = nodeCleanups.get(node);
|
|
2531
2543
|
if (list) {
|
|
2532
2544
|
nodeCleanups.delete(node);
|
|
@@ -7124,7 +7136,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
7124
7136
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
7125
7137
|
return rootScope.data;
|
|
7126
7138
|
}
|
|
7127
|
-
var version2 = "0.12.
|
|
7139
|
+
var version2 = "0.12.5";
|
|
7128
7140
|
var core = {
|
|
7129
7141
|
// Utilities first: Voodoo's own names can override.
|
|
7130
7142
|
...utils_exports,
|