marko 6.0.70 → 6.0.72

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/debug/dom.js CHANGED
@@ -1004,7 +1004,7 @@ function _if_closure(valueAccessor, ownerConditionalNodeAccessor, branch, fn) {
1004
1004
  const branchAccessor = "ConditionalRenderer:" /* ConditionalRenderer */ + ownerConditionalNodeAccessor;
1005
1005
  const ownerSignal = (scope) => {
1006
1006
  const ifScope = scope[scopeAccessor];
1007
- if (ifScope && !ifScope.___creating && scope[branchAccessor] === branch) {
1007
+ if (ifScope && !ifScope.___creating && (scope[branchAccessor] ?? branch) === branch) {
1008
1008
  queueRender(ifScope, childSignal, -1);
1009
1009
  }
1010
1010
  };
@@ -905,7 +905,7 @@ function _if_closure(valueAccessor, ownerConditionalNodeAccessor, branch, fn) {
905
905
  const branchAccessor = "ConditionalRenderer:" /* ConditionalRenderer */ + ownerConditionalNodeAccessor;
906
906
  const ownerSignal = (scope) => {
907
907
  const ifScope = scope[scopeAccessor];
908
- if (ifScope && !ifScope.___creating && scope[branchAccessor] === branch) {
908
+ if (ifScope && !ifScope.___creating && (scope[branchAccessor] ?? branch) === branch) {
909
909
  queueRender(ifScope, childSignal, -1);
910
910
  }
911
911
  };
package/dist/dom.js CHANGED
@@ -643,7 +643,7 @@ function _for_closure(valueAccessor, ownerLoopNodeAccessor, fn) {
643
643
  function _if_closure(valueAccessor, ownerConditionalNodeAccessor, branch, fn) {
644
644
  let childSignal = closure(valueAccessor, fn), scopeAccessor = "d" /* ConditionalScope */ + ownerConditionalNodeAccessor, branchAccessor = "c" /* ConditionalRenderer */ + ownerConditionalNodeAccessor, ownerSignal = (scope) => {
645
645
  let ifScope = scope[scopeAccessor];
646
- ifScope && !ifScope.q && scope[branchAccessor] === branch && queueRender(ifScope, childSignal, -1);
646
+ ifScope && !ifScope.q && (scope[branchAccessor] ?? branch) === branch && queueRender(ifScope, childSignal, -1);
647
647
  };
648
648
  return ownerSignal._ = childSignal, ownerSignal;
649
649
  }
package/dist/dom.mjs CHANGED
@@ -547,7 +547,7 @@ function _for_closure(valueAccessor, ownerLoopNodeAccessor, fn) {
547
547
  function _if_closure(valueAccessor, ownerConditionalNodeAccessor, branch, fn) {
548
548
  let childSignal = closure(valueAccessor, fn), scopeAccessor = "d" /* ConditionalScope */ + ownerConditionalNodeAccessor, branchAccessor = "c" /* ConditionalRenderer */ + ownerConditionalNodeAccessor, ownerSignal = (scope) => {
549
549
  let ifScope = scope[scopeAccessor];
550
- ifScope && !ifScope.q && scope[branchAccessor] === branch && queueRender(ifScope, childSignal, -1);
550
+ ifScope && !ifScope.q && (scope[branchAccessor] ?? branch) === branch && queueRender(ifScope, childSignal, -1);
551
551
  };
552
552
  return ownerSignal._ = childSignal, ownerSignal;
553
553
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.70",
3
+ "version": "6.0.72",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
@@ -48,7 +48,7 @@
48
48
  "build": "node -r ~ts ./scripts/bundle.ts"
49
49
  },
50
50
  "dependencies": {
51
- "@marko/compiler": "^5.39.36",
51
+ "@marko/compiler": "^5.39.37",
52
52
  "csstype": "^3.1.3",
53
53
  "magic-string": "^0.30.17"
54
54
  },