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.
@@ -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
  */
@@ -10738,7 +10738,7 @@ function processModel(element, scope, root) {
10738
10738
  // Set initial value (no pipes in v-model)
10739
10739
  const initialValue = evaluateExpression(expr, currentScope, false);
10740
10740
  if (inputElement.type === 'checkbox') {
10741
- inputElement.checked = !!initialValue;
10741
+ inputElement.checked = !!unref(initialValue);
10742
10742
  }
10743
10743
  else if (inputElement.type === 'radio') {
10744
10744
  inputElement.checked = String(unref(initialValue)) === inputElement.value;
@@ -10784,7 +10784,7 @@ function processModel(element, scope, root) {
10784
10784
  // No pipes in v-model reactive updates
10785
10785
  const newValue = evaluateExpression(expr, currentScope, false);
10786
10786
  if (inputElement.type === 'checkbox') {
10787
- inputElement.checked = !!newValue;
10787
+ inputElement.checked = !!unref(newValue);
10788
10788
  }
10789
10789
  else if (inputElement.type === 'radio') {
10790
10790
  inputElement.checked = String(unref(newValue)) === inputElement.value;
@@ -11015,6 +11015,15 @@ function reactive(raw) {
11015
11015
  // It's a getter - just return value, getter will track its own dependencies
11016
11016
  return value;
11017
11017
  }
11018
+ // Callable reactive values are data, not methods. Binding would drop
11019
+ // their identity and metadata used by g-model and the public APIs.
11020
+ if (isSignal(value) || isComputed(value)) {
11021
+ // Track the field as well as reads of its value so replacing the
11022
+ // signal/computed switches effects away from the old source.
11023
+ if (hasCurrentEffect())
11024
+ getFieldSignal(target, key, value).value;
11025
+ return value;
11026
+ }
11018
11027
  // function -> bind this = proxy
11019
11028
  if (typeof value === "function") {
11020
11029
  return value.bind(proxy);
@@ -15574,7 +15583,7 @@ const Gyos = {
15574
15583
  portalCreate,
15575
15584
  portalDestroy,
15576
15585
  setCspNonce,
15577
- version: '0.5.1'
15586
+ version: '0.5.2'
15578
15587
  };
15579
15588
 
15580
15589
  setExpressionRuntime(cspExpressionRuntime);