snice 3.10.1 → 3.10.2

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/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v3.10.0
2
+ * snice v3.10.1
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1492,10 +1492,12 @@ function matchesKeyboardFilter(event, filter) {
1492
1492
  * ConditionalIfPart handles <if> conditional rendering
1493
1493
  * Removes/inserts DOM nodes based on condition
1494
1494
  */
1495
+ // Sentinel value to distinguish "not yet set" from undefined
1496
+ const NOT_SET = Symbol('not-set');
1495
1497
  class ConditionalIfPart extends Part {
1496
1498
  constructor(ifElement) {
1497
1499
  super();
1498
- this.value = undefined;
1500
+ this.value = NOT_SET;
1499
1501
  this.fragment = null;
1500
1502
  this.ifElement = ifElement;
1501
1503
  this.ifElement.style.display = 'contents';
@@ -1537,7 +1539,7 @@ class ConditionalIfPart extends Part {
1537
1539
  class ConditionalCasePart extends Part {
1538
1540
  constructor(caseElement) {
1539
1541
  super();
1540
- this.value = undefined;
1542
+ this.value = NOT_SET;
1541
1543
  this.childrenMap = new Map();
1542
1544
  this.fragments = new Map();
1543
1545
  this.defaultChild = null;