diff --git a/shared/static/scripts/sx-browser.js b/shared/static/scripts/sx-browser.js index 73e7704..48da949 100644 --- a/shared/static/scripts/sx-browser.js +++ b/shared/static/scripts/sx-browser.js @@ -14,7 +14,7 @@ // ========================================================================= var NIL = Object.freeze({ _nil: true, toString: function() { return "nil"; } }); - var SX_VERSION = "2026-03-11T22:28:29Z"; + var SX_VERSION = "2026-03-11T22:53:48Z"; function isNil(x) { return x === NIL || x === null || x === undefined; } function isSxTruthy(x) { return x !== false && !isNil(x); } diff --git a/shared/sx/ref/adapter-sx.sx b/shared/sx/ref/adapter-sx.sx index ddd4321..a97f5f6 100644 --- a/shared/sx/ref/adapter-sx.sx +++ b/shared/sx/ref/adapter-sx.sx @@ -21,7 +21,7 @@ (serialize result))))) (define aser - (fn (expr (env :as dict)) + (fn ((expr :as any) (env :as dict)) ;; Evaluate for SX wire format — serialize rendering forms, ;; evaluate control flow and function calls. (set-render-active! true) diff --git a/shared/sx/ref/eval.sx b/shared/sx/ref/eval.sx index 2c3717c..09467f6 100644 --- a/shared/sx/ref/eval.sx +++ b/shared/sx/ref/eval.sx @@ -55,7 +55,7 @@ ;; -------------------------------------------------------------------------- (define trampoline - (fn (val) + (fn ((val :as any)) ;; Iteratively resolve thunks until we get an actual value. ;; Each target implements thunk? and thunk-expr/thunk-env. (let ((result val)) diff --git a/shared/sx/ref/signals.sx b/shared/sx/ref/signals.sx index 98ca89a..3491f7d 100644 --- a/shared/sx/ref/signals.sx +++ b/shared/sx/ref/signals.sx @@ -42,7 +42,7 @@ ;; -------------------------------------------------------------------------- (define signal - (fn (initial-value) + (fn ((initial-value :as any)) (make-signal initial-value))) @@ -55,7 +55,7 @@ ;; the current value — no subscription, no overhead. (define deref - (fn (s) + (fn ((s :as any)) (if (not (signal? s)) s ;; non-signal values pass through (let ((ctx (get-tracking-context)))