Web Runtime 0.13.0
Release notes for Web Runtime 0.13.0.
15 changes — 13 features, 1 fix, 1 breaking change
Minor Changes
-
#254
0ada0c5Thanks @dm-balakin! - Box shadows in the web runtime:style.boxShadowbecomes CSS'sbox-shadow, checked with the JUCE runtime's errors. -
#252
3275981Thanks @dm-balakin! - Double clicks in the web runtime: a click'sdetailis the browser's own count (by the platform's double-click time), and the second click of a series is followed by adblclick, as in the JUCE runtime. A real release's click waits for the browser'sclickright after it, and is a single click when none comes; the browser's owndblclickno longer leaves the view. -
#289
a54e1daThanks @dm-balakin! - Expose plugin version and runtime environment in soundor:host, and extend host state with processing mode, sample precision, optional track metadata, loop boundaries and timecode. Rename snapshot/subscribe to getHostState/subscribeHostState. Configure plugin.version (default 0.1.0) consistently across formats. -
#266
496fe62Thanks @dm-balakin! - Accept synchronous functional updaters on parameter and persistent state fields. Resolve once against the latest immutable store value, validate before publishing, and reject asynchronous results. Automatically bracket changed automatable parameter writes in a host gesture when no explicit gesture is active, preserving nested gestures and keeping state gestures explicit.Raise the runtime API version to 4 for the compatible setter addition; older runtime API versions remain supported.
-
#281
0354f73Thanks @dm-balakin! - Native channels on the Web: the generated contract exportschannels, apublish()per declared channel for the project'sruntimes/webcode (channels.spectrum.publish(values), an AnalyserNode read every frame). Each value is checked, a buffer copied, and one longer than itsmaxLengthrefused; the plugin UI receives the newest at the next animation frame, so a hidden page keeps one value per channel. The manifest lists the channels. -
#280
27a3303Thanks @dm-balakin! - Native events on the Web: the generated contract exportsevents, one publisher per declared event, forruntimes/web/src/native.ts(events.presetLoaded({ path })). Each checks its value as the JUCE bindings do, and the plugin UI's subscribers receive it right after the publishing code returns, in order; the page holds at most 1024 undelivered events. The manifest lists the events. -
#255
13da21dThanks @dm-balakin! - Breaking:soundor:nativein the browser checks and converts every call as the JUCE runtime does, with its errors word for word: sized numbers are never coerced (float32rounded withMath.fround, 64-bit integers bigints),nullonly forT?, buffers exactly their typed array, and structs and arrays copied with their declared fields only. What the implementation returns is checked too, and copied. Argument errors of async methods are thrown, not rejected, as natively.defineHandle(),WebNativeHandleandWebNativeHandleTypeare removed with handles. The manifest carries the native API's types. -
#258
553d8c4Thanks @dm-balakin! - Parameters run the behaviorgencompiles to JavaScript (parameters.js) from the same expressions as the JUCE runtime's C++: mapping, steps,formatandparse. The host's controls move through normalized positions and show formatted values and choice labels; read-only parameters are disabled there, andsetupAudioreceivespublish(parameter, value)to set them. -
#263
14b7be0Thanks @dm-balakin! - Add typed persistent application state throughsoundor:state, reusing native type declarations and validated defaults, with field subscriptions and ReactuseStateValue().JUCE owns state per processor, saves parameters and state together, accepts legacy APVTS projects, and calls the protected
stateRestored()hook on the message thread after each complete restoration. Off-thread host restorations queue to that thread. Web hydrates before application startup and automatically saves snapshots to application-namespaced IndexedDB. Runtime API 2 gates state configuration for older runtimes. -
#289
67ffaacThanks @dm-balakin! - Add soundor:env with explicit, typed, readonly public configuration values and DEV/PROD/MODE built-ins. Embed values in the shared UI bundle, resolve the same module for web host code, and support isolated configuration in the test runtime. No process environment is exposed implicitly. -
#288
02d06a8Thanks @dm-balakin! - Add booleansoundor:uiisVisible()/subscribeVisibility() and isFocused()/subscribeFocus() APIs so plugins can react to editor visibility and keyboard focus across runtimes. Add test runtime setters and Testing Library editor helpers. The analyzer example pauses its UI subscriptions while hidden. -
#275
258c891Thanks @dm-balakin! - Runtime packages now declare supported Soundor CLI versions through a requiredsoundorpeer dependency. Both first-party runtimes use a caret range matching their regular@soundor/runtime-sdkdependency; the SDK and CLI share the fixed package version. Before 1.0, this supports the current minor and its patches. Runtime providers own the supported range, and package managers handle peer mismatches without an additional CLI compatibility check.Remove the numeric
Runtime.apiVersionandResolvedRuntime.apiVersion, runtime API version constants and contract record, config-feature version gates, compatibility helpers, andRuntimeCompatibilityErrorwith its dedicated error codes. Third-party runtimes should remove those imports and fields, keep the SDK as a regular dependency, and declare the supported CLI range inpeerDependencies.soundor. The existing project config release-line check and cross-copy error protocol remain. -
#264
61798d1Thanks @dm-balakin! - Add optional beginGesture() and endGesture() methods to persistent state fields in JavaScript and native JUCE code. Gestures nest per field, leave writes immediate, reset on restoration, and clean up unfinished UI interactions without host automation or History recording.Raise the runtime API version to 3 for the additional state field methods; older runtimes remain accepted.
-
#267
553076dThanks @dm-balakin! - Add processor-owned StateHistory with opt-in discrete edits, History-enabled parameter/state gestures, synchronous buffered transactions, undo/redo, subscriptions, and useStateHistory(). JavaScript and native C++ share one manager in JUCE; Web and simulated runtimes implement the same contract. History survives editor recreation and clears on project restoration. Runtime API 5 is now required so older runtimes cannot silently ignore History options.
Patch Changes
- #256
d5b9b16Thanks @dm-balakin! - Depends on one Soundor package,@soundor/runtime-sdk, which its code imports (instead of inlining it): no@soundor/configpeer, and no@soundor/core. Its browser client imports the springs from@soundor/runtime-sdk/clientand inlines them. It implements runtime API 1, which the CLI checks before running it.