voodoojs 0.12.3 → 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-NGDOIDR6.js → chunk-6QFKV444.js} +19 -7
- package/dist/{chunk-4DLB2RY5.js → chunk-D45ZEXUO.js} +4 -4
- package/dist/{chunk-NB3JAL4F.js → chunk-IWHK6Y32.js} +4 -4
- package/dist/{chunk-WOYGKZ3L.js → chunk-JB72AX7G.js} +5 -5
- package/dist/{chunk-EWFY7CJB.js → chunk-L3JNHLTI.js} +5 -5
- package/dist/{chunk-HTBGKRUJ.js → chunk-OH6FIDTW.js} +3 -3
- package/dist/{chunk-5YP5VMW7.js → chunk-PO6REBDJ.js} +3 -3
- package/dist/{chunk-VI27DQRZ.js → chunk-PPT7RDKJ.js} +4 -4
- package/dist/{chunk-UFLF4VNQ.js → chunk-TUXGS7XW.js} +13 -13
- package/dist/{chunk-ZDLVJ7TA.js → chunk-X3FZPWI6.js} +6 -6
- package/dist/{chunk-FRYNZTKW.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 +16 -8
- package/dist/index.d.ts +16 -8
- 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-JJTTJNSI.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.full.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
|
*/
|
|
@@ -2514,8 +2514,15 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
2514
2514
|
return (_a2 = nodeEffectScopes.get(node)) != null ? _a2 : [];
|
|
2515
2515
|
}
|
|
2516
2516
|
var ignoredRemovals = /* @__PURE__ */ new WeakSet();
|
|
2517
|
+
var detachedTemplates = /* @__PURE__ */ new WeakMap();
|
|
2517
2518
|
function removeQuietly(node) {
|
|
2518
2519
|
ignoredRemovals.add(node);
|
|
2520
|
+
const parent = node.parentNode;
|
|
2521
|
+
if (parent) {
|
|
2522
|
+
let kept = detachedTemplates.get(parent);
|
|
2523
|
+
if (!kept) detachedTemplates.set(parent, kept = /* @__PURE__ */ new Set());
|
|
2524
|
+
kept.add(node);
|
|
2525
|
+
}
|
|
2519
2526
|
node.remove();
|
|
2520
2527
|
}
|
|
2521
2528
|
function addCleanup(node, fn) {
|
|
@@ -2531,6 +2538,11 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
2531
2538
|
}
|
|
2532
2539
|
for (let i = children.length - 1; i >= 0; i--) destroy(children[i]);
|
|
2533
2540
|
}
|
|
2541
|
+
const detached = detachedTemplates.get(node);
|
|
2542
|
+
if (detached) {
|
|
2543
|
+
detachedTemplates.delete(node);
|
|
2544
|
+
for (const template of detached) destroy(template);
|
|
2545
|
+
}
|
|
2534
2546
|
const list = nodeCleanups.get(node);
|
|
2535
2547
|
if (list) {
|
|
2536
2548
|
nodeCleanups.delete(node);
|
|
@@ -7136,7 +7148,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
7136
7148
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
7137
7149
|
return rootScope.data;
|
|
7138
7150
|
}
|
|
7139
|
-
var version2 = "0.12.
|
|
7151
|
+
var version2 = "0.12.5";
|
|
7140
7152
|
var core = {
|
|
7141
7153
|
// Utilities first: Voodoo's own names can override.
|
|
7142
7154
|
...utils_exports,
|