gyosjs 0.5.5 → 0.5.6

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/gyos.csp.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * GyosJS v0.5.5
2
+ * GyosJS v0.5.6
3
3
  * (c) 2026
4
4
  * @license MIT
5
5
  */
@@ -9452,7 +9452,8 @@
9452
9452
  const propertyName = booleanPropertyNames[attrName] || attrName;
9453
9453
  if (propertyName in element) {
9454
9454
  try {
9455
- element[propertyName] = value;
9455
+ if (element[propertyName] !== value)
9456
+ element[propertyName] = value;
9456
9457
  }
9457
9458
  catch {
9458
9459
  // Some reflected DOM properties are read-only in older engines.
@@ -9483,9 +9484,14 @@
9483
9484
  }
9484
9485
  const stringValue = String(value);
9485
9486
  if (attrName === 'value' && 'value' in element) {
9486
- element.value = stringValue;
9487
+ // Compare the live control, not a cached expression: user edits and
9488
+ // external DOM changes still need reconciliation on the next update.
9489
+ if (element.value !== stringValue) {
9490
+ element.value = stringValue;
9491
+ }
9487
9492
  }
9488
- element.setAttribute(attrName, stringValue);
9493
+ if (element.getAttribute(attrName) !== stringValue)
9494
+ element.setAttribute(attrName, stringValue);
9489
9495
  }
9490
9496
  function boundAttributes(element) {
9491
9497
  return Array.from(element.attributes).filter(attribute => attribute.name.startsWith(':'));
@@ -15850,7 +15856,7 @@
15850
15856
  portalCreate,
15851
15857
  portalDestroy,
15852
15858
  setCspNonce,
15853
- version: '0.5.5'
15859
+ version: '0.5.6'
15854
15860
  };
15855
15861
 
15856
15862
  setExpressionRuntime(cspExpressionRuntime);