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.auto.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
  */
@@ -2803,7 +2803,8 @@
2803
2803
  const propertyName = booleanPropertyNames[attrName] || attrName;
2804
2804
  if (propertyName in element) {
2805
2805
  try {
2806
- element[propertyName] = value;
2806
+ if (element[propertyName] !== value)
2807
+ element[propertyName] = value;
2807
2808
  }
2808
2809
  catch {
2809
2810
  // Some reflected DOM properties are read-only in older engines.
@@ -2834,9 +2835,14 @@
2834
2835
  }
2835
2836
  const stringValue = String(value);
2836
2837
  if (attrName === 'value' && 'value' in element) {
2837
- element.value = stringValue;
2838
+ // Compare the live control, not a cached expression: user edits and
2839
+ // external DOM changes still need reconciliation on the next update.
2840
+ if (element.value !== stringValue) {
2841
+ element.value = stringValue;
2842
+ }
2838
2843
  }
2839
- element.setAttribute(attrName, stringValue);
2844
+ if (element.getAttribute(attrName) !== stringValue)
2845
+ element.setAttribute(attrName, stringValue);
2840
2846
  }
2841
2847
  function boundAttributes(element) {
2842
2848
  return Array.from(element.attributes).filter(attribute => attribute.name.startsWith(':'));
@@ -9201,7 +9207,7 @@
9201
9207
  portalCreate,
9202
9208
  portalDestroy,
9203
9209
  setCspNonce,
9204
- version: '0.5.5'
9210
+ version: '0.5.6'
9205
9211
  };
9206
9212
 
9207
9213
  const standardExpressionRuntime = {