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.
Files changed (41) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-NGDOIDR6.js → chunk-6QFKV444.js} +19 -7
  3. package/dist/{chunk-4DLB2RY5.js → chunk-D45ZEXUO.js} +4 -4
  4. package/dist/{chunk-NB3JAL4F.js → chunk-IWHK6Y32.js} +4 -4
  5. package/dist/{chunk-WOYGKZ3L.js → chunk-JB72AX7G.js} +5 -5
  6. package/dist/{chunk-EWFY7CJB.js → chunk-L3JNHLTI.js} +5 -5
  7. package/dist/{chunk-HTBGKRUJ.js → chunk-OH6FIDTW.js} +3 -3
  8. package/dist/{chunk-5YP5VMW7.js → chunk-PO6REBDJ.js} +3 -3
  9. package/dist/{chunk-VI27DQRZ.js → chunk-PPT7RDKJ.js} +4 -4
  10. package/dist/{chunk-UFLF4VNQ.js → chunk-TUXGS7XW.js} +13 -13
  11. package/dist/{chunk-ZDLVJ7TA.js → chunk-X3FZPWI6.js} +6 -6
  12. package/dist/{chunk-FRYNZTKW.js → chunk-YH3IDF6L.js} +4 -4
  13. package/dist/essential.cjs +14 -2
  14. package/dist/essential.d.cts +1 -1
  15. package/dist/essential.d.ts +1 -1
  16. package/dist/essential.js +10 -10
  17. package/dist/gpu.cjs +7 -1
  18. package/dist/gpu.js +10 -10
  19. package/dist/http.cjs +1 -1
  20. package/dist/http.js +5 -5
  21. package/dist/index.cjs +14 -2
  22. package/dist/index.d.cts +16 -8
  23. package/dist/index.d.ts +16 -8
  24. package/dist/index.js +20 -20
  25. package/dist/reactivity.cjs +1 -1
  26. package/dist/reactivity.js +2 -2
  27. package/dist/socket.cjs +1 -1
  28. package/dist/socket.js +9 -9
  29. package/dist/style-YWBYOE6T.js +5 -0
  30. package/dist/utils.cjs +1 -1
  31. package/dist/utils.js +2 -2
  32. package/dist/voodoo.core.js +14 -2
  33. package/dist/voodoo.core.min.js +15 -15
  34. package/dist/voodoo.full.js +14 -2
  35. package/dist/voodoo.full.min.js +37 -37
  36. package/dist/voodoo.js +14 -2
  37. package/dist/voodoo.min.js +24 -24
  38. package/package.json +1 -1
  39. package/dist/style-JJTTJNSI.js +0 -5
  40. package/dist/{query-XooOh4vB.d.cts → query-D_BGQw8m.d.cts} +28 -28
  41. package/dist/{query-DzHfm8Kg.d.ts → query-Dl6Urlwd.d.ts} +28 -28
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * Voodoo.js v0.12.3
4
+ * Voodoo.js v0.12.5
5
5
  * JavaScript feels like magic.
6
6
  * (c) 2026 Voodoo.js contributors. MIT License.
7
7
  */
@@ -1,4 +1,4 @@
1
- export { EffectScope, ITERATE_KEY, ReactiveEffect, TriggerType, computed, effect, effectScope, enableTracking, flushSync, getActiveEffect, getActiveScope, handleError, hasChanged, isReactive, isRef, markRaw, nextTick, pauseTracking, queueJob, queuePostFlush, reactive, ref, resetTracking, setErrorHandler, shallowRef, stop, toRaw, track, trigger, unref, warn, watch, watchEffect } from './chunk-VI27DQRZ.js';
2
- import './chunk-5YP5VMW7.js';
1
+ export { EffectScope, ITERATE_KEY, ReactiveEffect, TriggerType, computed, effect, effectScope, enableTracking, flushSync, getActiveEffect, getActiveScope, handleError, hasChanged, isReactive, isRef, markRaw, nextTick, pauseTracking, queueJob, queuePostFlush, reactive, ref, resetTracking, setErrorHandler, shallowRef, stop, toRaw, track, trigger, unref, warn, watch, watchEffect } from './chunk-PPT7RDKJ.js';
2
+ import './chunk-PO6REBDJ.js';
3
3
  //# sourceMappingURL=reactivity.js.map
4
4
  //# sourceMappingURL=reactivity.js.map
package/dist/socket.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  /**
6
- * Voodoo.js v0.12.3
6
+ * Voodoo.js v0.12.5
7
7
  * JavaScript feels like magic.
8
8
  * (c) 2026 Voodoo.js contributors. MIT License.
9
9
  */
package/dist/socket.js CHANGED
@@ -1,14 +1,14 @@
1
- import { socketSupported, createSocket, socket } from './chunk-EWFY7CJB.js';
2
- export { ENGINE, SIO, createSocket, decodeEngine, decodeSocketIo, encodeSocketIo, engineURL, resolveSocketURL, socket, socketSupported } from './chunk-EWFY7CJB.js';
3
- import { evaluateIn, readAttr } from './chunk-NGDOIDR6.js';
4
- import { reactive } from './chunk-VI27DQRZ.js';
5
- import { warnAlias } from './chunk-FRYNZTKW.js';
6
- import { parseDuration } from './chunk-4DLB2RY5.js';
7
- import { defineDirective, PRIORITY, config } from './chunk-HTBGKRUJ.js';
8
- import './chunk-5YP5VMW7.js';
1
+ import { socketSupported, createSocket, socket } from './chunk-L3JNHLTI.js';
2
+ export { ENGINE, SIO, createSocket, decodeEngine, decodeSocketIo, encodeSocketIo, engineURL, resolveSocketURL, socket, socketSupported } from './chunk-L3JNHLTI.js';
3
+ import { evaluateIn, readAttr } from './chunk-6QFKV444.js';
4
+ import { reactive } from './chunk-PPT7RDKJ.js';
5
+ import { warnAlias } from './chunk-YH3IDF6L.js';
6
+ import { parseDuration } from './chunk-D45ZEXUO.js';
7
+ import { defineDirective, PRIORITY, config } from './chunk-OH6FIDTW.js';
8
+ import './chunk-PO6REBDJ.js';
9
9
 
10
10
  /**
11
- * Voodoo.js v0.12.3
11
+ * Voodoo.js v0.12.5
12
12
  * JavaScript feels like magic.
13
13
  * (c) 2026 Voodoo.js contributors. MIT License.
14
14
  */
@@ -0,0 +1,5 @@
1
+ export { BASE_TOKENS, ensureTokens, injectStyle } from './chunk-IWHK6Y32.js';
2
+ import './chunk-OH6FIDTW.js';
3
+ import './chunk-PO6REBDJ.js';
4
+ //# sourceMappingURL=style-YWBYOE6T.js.map
5
+ //# sourceMappingURL=style-YWBYOE6T.js.map
package/dist/utils.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * Voodoo.js v0.12.3
4
+ * Voodoo.js v0.12.5
5
5
  * JavaScript feels like magic.
6
6
  * (c) 2026 Voodoo.js contributors. MIT License.
7
7
  */
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- export { capitalize, chunk, clone, debounce, device, escapeHtml, formatCurrency, formatDate, formatFileSize, formatNumber, formatPercent, get, groupBy, isBrowser, matchesMedia, memoize, merge, once, parseDuration, random, relativeTime, sample, set, setFormatDefaults, sleep, slugify, sortBy, stripTags, throttle, titleCase, truncate, uid, unique, uuid } from './chunk-4DLB2RY5.js';
2
- import './chunk-5YP5VMW7.js';
1
+ export { capitalize, chunk, clone, debounce, device, escapeHtml, formatCurrency, formatDate, formatFileSize, formatNumber, formatPercent, get, groupBy, isBrowser, matchesMedia, memoize, merge, once, parseDuration, random, relativeTime, sample, set, setFormatDefaults, sleep, slugify, sortBy, stripTags, throttle, titleCase, truncate, uid, unique, uuid } from './chunk-D45ZEXUO.js';
2
+ import './chunk-PO6REBDJ.js';
3
3
  //# sourceMappingURL=utils.js.map
4
4
  //# sourceMappingURL=utils.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Voodoo.js v0.12.3
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);
@@ -7078,7 +7090,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
7078
7090
  Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
7079
7091
  return rootScope.data;
7080
7092
  }
7081
- var version2 = "0.12.3";
7093
+ var version2 = "0.12.5";
7082
7094
  var core = {
7083
7095
  // Utilities first: Voodoo's own names can override.
7084
7096
  ...utils_exports,