gyosjs 0.5.1 → 0.5.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/gyos.auto.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * GyosJS v0.5.1
2
+ * GyosJS v0.5.2
3
3
  * (c) 2026
4
4
  * @license MIT
5
5
  */
@@ -4095,7 +4095,7 @@
4095
4095
  // Set initial value (no pipes in v-model)
4096
4096
  const initialValue = evaluateExpression(expr, currentScope, false);
4097
4097
  if (inputElement.type === 'checkbox') {
4098
- inputElement.checked = !!initialValue;
4098
+ inputElement.checked = !!unref(initialValue);
4099
4099
  }
4100
4100
  else if (inputElement.type === 'radio') {
4101
4101
  inputElement.checked = String(unref(initialValue)) === inputElement.value;
@@ -4141,7 +4141,7 @@
4141
4141
  // No pipes in v-model reactive updates
4142
4142
  const newValue = evaluateExpression(expr, currentScope, false);
4143
4143
  if (inputElement.type === 'checkbox') {
4144
- inputElement.checked = !!newValue;
4144
+ inputElement.checked = !!unref(newValue);
4145
4145
  }
4146
4146
  else if (inputElement.type === 'radio') {
4147
4147
  inputElement.checked = String(unref(newValue)) === inputElement.value;
@@ -4372,6 +4372,15 @@
4372
4372
  // It's a getter - just return value, getter will track its own dependencies
4373
4373
  return value;
4374
4374
  }
4375
+ // Callable reactive values are data, not methods. Binding would drop
4376
+ // their identity and metadata used by g-model and the public APIs.
4377
+ if (isSignal(value) || isComputed(value)) {
4378
+ // Track the field as well as reads of its value so replacing the
4379
+ // signal/computed switches effects away from the old source.
4380
+ if (hasCurrentEffect())
4381
+ getFieldSignal(target, key, value).value;
4382
+ return value;
4383
+ }
4375
4384
  // function -> bind this = proxy
4376
4385
  if (typeof value === "function") {
4377
4386
  return value.bind(proxy);
@@ -8931,7 +8940,7 @@
8931
8940
  portalCreate,
8932
8941
  portalDestroy,
8933
8942
  setCspNonce,
8934
- version: '0.5.1'
8943
+ version: '0.5.2'
8935
8944
  };
8936
8945
 
8937
8946
  const standardExpressionRuntime = {