Soundor
Web Runtime

Web Runtime 0.13.0 Contains breaking changes

Release notes for Web Runtime 0.13.0.

All Web Runtime releases

15 changes — 13 features, 1 fix, 1 breaking change

Minor Changes

  • #254 0ada0c5 Thanks @dm-balakin! - Box shadows in the web runtime: style.boxShadow becomes CSS's box-shadow, checked with the JUCE runtime's errors.

  • #252 3275981 Thanks @dm-balakin! - Double clicks in the web runtime: a click's detail is the browser's own count (by the platform's double-click time), and the second click of a series is followed by a dblclick, as in the JUCE runtime. A real release's click waits for the browser's click right after it, and is a single click when none comes; the browser's own dblclick no longer leaves the view.

  • #289 a54e1da Thanks @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 496fe62 Thanks @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 0354f73 Thanks @dm-balakin! - Native channels on the Web: the generated contract exports channels, a publish() per declared channel for the project's runtimes/web code (channels.spectrum.publish(values), an AnalyserNode read every frame). Each value is checked, a buffer copied, and one longer than its maxLength refused; 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 27a3303 Thanks @dm-balakin! - Native events on the Web: the generated contract exports events, one publisher per declared event, for runtimes/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 13da21d Thanks @dm-balakin! - Breaking: soundor:native in the browser checks and converts every call as the JUCE runtime does, with its errors word for word: sized numbers are never coerced (float32 rounded with Math.fround, 64-bit integers bigints), null only for T?, 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(), WebNativeHandle and WebNativeHandleType are removed with handles. The manifest carries the native API's types.

  • #258 553d8c4 Thanks @dm-balakin! - Parameters run the behavior gen compiles to JavaScript (parameters.js) from the same expressions as the JUCE runtime's C++: mapping, steps, format and parse. The host's controls move through normalized positions and show formatted values and choice labels; read-only parameters are disabled there, and setupAudio receives publish(parameter, value) to set them.

  • #263 14b7be0 Thanks @dm-balakin! - Add typed persistent application state through soundor:state, reusing native type declarations and validated defaults, with field subscriptions and React useStateValue().

    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 67ffaac Thanks @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 02d06a8 Thanks @dm-balakin! - Add boolean soundor:ui isVisible()/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 258c891 Thanks @dm-balakin! - Runtime packages now declare supported Soundor CLI versions through a required soundor peer dependency. Both first-party runtimes use a caret range matching their regular @soundor/runtime-sdk dependency; 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.apiVersion and ResolvedRuntime.apiVersion, runtime API version constants and contract record, config-feature version gates, compatibility helpers, and RuntimeCompatibilityError with 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 in peerDependencies.soundor. The existing project config release-line check and cross-copy error protocol remain.

  • #264 61798d1 Thanks @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 553076d Thanks @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 d5b9b16 Thanks @dm-balakin! - Depends on one Soundor package, @soundor/runtime-sdk, which its code imports (instead of inlining it): no @soundor/config peer, and no @soundor/core. Its browser client imports the springs from @soundor/runtime-sdk/client and inlines them. It implements runtime API 1, which the CLI checks before running it.

On this page