Soundor 0.3.0
Release notes for Soundor 0.3.0.
9 changes — 4 features, 5 breaking changes
Minor Changes
-
#47
213d6c1Thanks @dm-balakin! -soundor devreloads the plugin UI on every change.- The CLI watches the project and rebuilds the UI bundle; each successful build writes a
build-idlast. A failed build is reported and the last good build keeps running. - The JUCE debug build loads the UI from disk instead of embedding it and replaces its JavaScript runtime with a fresh one on each new build (new native
DevSession). - The plugin's console output and uncaught errors are written to
.soundor/dev/ui.logand shown in thesoundor devterminal, with stack frames source-mapped to the TypeScript. UiBundleContextgainslive(withlogFile) in dev: runtimes should load and reload such a UI rather than embed it.
Packages:
@soundor/config,@soundor/core,@soundor/runtime-sdk,create-soundor-app,soundor. - The CLI watches the project and rebuilds the UI bundle; each successful build writes a
-
#46
f925d60Thanks @dm-balakin! - Plugin UIs are TypeScript/TSX bundled with tsdown and run inside the plugin.soundor dev/soundor buildbundlesrc/main.tsx(or.ts/.jsx/.js) into one ES module: npm packages inlined,soundor:*imports kept, minified for production, source-mapped for development. Image imports (.png,.jpg,.jpeg,.webp) become content-addressed assets. Runtimes receive the bundle asctx.ui.- The JUCE runtime compiles the bundle into the plugin and the editor's runtime evaluates it.
soundor genemitsglobals.d.ts: the Web APIs the runtime provides and image imports, forlib: ["ES2023"]projects without DOM types.- New projects get a
src/main.tsentry and runtime-appropriate tsconfigs.
Packages:
@soundor/config,@soundor/core,@soundor/runtime-sdk,create-soundor-app,soundor. -
#51
f0218c6Thanks @dm-balakin! - New projects and the example are React apps, and two Soundor plugins are proven to coexist in one host.create-soundor-appscaffolds asrc/main.tsxReact UI with@soundor/react.soundor:host'ssnapshot()returns the same object until the host state changes, so it works withuseSyncExternalStore(subscribe, snapshot). A fresh object on every call made React loop.- A coexistence test loads two copies of the runtime under different ABI namespaces into one process and runs them interleaved, unloading and reloading them. A JUCE host test does the same with two real VST3s and their editors.
Packages:
@soundor/config,@soundor/core,@soundor/react,@soundor/runtime-sdk,create-soundor-app,soundor. -
#50
b2565bdThanks @dm-balakin! -@soundor/react: React for plugin UIs, rendering into the plugin view.- A react-reconciler renderer for
soundor:ui:render(),createRoot(),flushSync(). - React Native–style components:
View,Text(strings and nested<Text>flattened),Image,ScrollView(contentContainerStyle),TextInput(value/onChangeText,onSubmitEditing),Pressable(state-dependentstyleandchildren), with Web-style event props and capture variants. StyleSheet, style arrays, and hooks:useParameter()anduseAnimationFrame().@soundor/coreships the project-independent runtime declarations (@soundor/core/runtime/ui.d.ts,globals.d.ts) for packages written againstsoundor:ui.- Breaking: the previous
@soundor/react(hooks over the WebView bridge) is replaced entirely.
Packages:
@soundor/config,@soundor/core,@soundor/react,@soundor/runtime-sdk,create-soundor-app,soundor. - A react-reconciler renderer for
-
#45
22cfe24Thanks @dm-balakin! - The plugin's JavaScript runtime gets a Web-compatible platform layer and thesoundor:host,soundor:storageandsoundor:fsmodules.- Globals:
self,console, timers,queueMicrotask,reportError,performance,Event/EventTarget/CustomEvent,AbortController/AbortSignal,TextEncoder/TextDecoder,URL/URLSearchParams(ada),atob/btoa,DOMException,structuredClone,crypto.getRandomValues/randomUUID, andfetchwithHeaders/Request/Response/Blob/File/FormData. Blocking work is asynchronous and settles on the UI thread. soundor:host(plugin identity, audio setup, transport),soundor:storage(persistent JSON key/value storage) andsoundor:fs(atomic file access confined to the plugin's data directory).soundor genemits their declarations inplatform.d.ts.- Breaking: the generated JUCE processor implements
processBlock()to capture the host transport; plugin processors implementprocess()(same signature) instead.
Packages:
@soundor/core,soundor. - Globals:
-
#49
48b126cThanks @dm-balakin! - The plugin view is drawn: a Skia renderer and the UI primitives.- Skia (m144) is built from source at a pinned commit, CPU-only (no GPU, PDF, SVG, ICU or HarfBuzz), once per machine into Soundor's cache directory. It needs git, Python 3 and ninja, which
soundor doctornow checks. Its symbols stay hidden inside each plugin. soundor:uidraws backgrounds, borders, per-corner radii, opacity, clipping, text in the platform's fonts (with fallback), images, scroll views and text inputs. Styles take CSS colors (color,backgroundColor,borderColor),borderRadius,opacityandresizeMode.- New primitives:
createImage(),createScrollView(),createTextInput()(editing, selection and clipboard as default actions;input/changeevents; UTF-16 indices),pressable(),clipboard, and globalrequestAnimationFrame/cancelAnimationFrame. - The JUCE editor renders the UI into its view, repainting only when it changed, and uses the system clipboard.
- The symbol check now also fails on Objective-C classes compiled into a binary (Apple platforms).
- Breaking:
ui::TextMeasureris replaced byui::TextEngine;RuntimeHost::Options::textMeasureris nowtextEngineand defaults to the renderer's fonts.
Packages:
@soundor/config,@soundor/core,@soundor/runtime-sdk,create-soundor-app,soundor. - Skia (m144) is built from source at a pinned commit, CPU-only (no GPU, PDF, SVG, ICU or HarfBuzz), once per machine into Soundor's cache directory. It needs git, Python 3 and ninja, which
-
#44
9e54964Thanks @dm-balakin! - Breaking: parameters reach JavaScript throughsoundor:parameters, the plugin view hosts Soundor's JavaScript runtime, and the WebView-era UI stack is removed.soundor:parametersexposes every config parameter as a typed object (get,set,subscribe,beginGesture/endGesture,info), backed directly by the JUCEAudioProcessorValueTreeState. Changes from the audio thread reach subscribers on the UI thread through lock-free flags.soundor genemits its declaration asparameters.d.ts(soundor.d.tsreferences both module declarations);parameters.ts/parameters.jsonare no longer generated.- JUCE plugins now build the Soundor runtime (QuickJS-NG, fetched at a pinned revision) into the plugin under a per-plugin ABI namespace. Each editor hosts a runtime, and processors supply
soundor:nativeby overridingcreateNativeApi(). - Removed: the
@soundor/bridgeand@soundor/reactpackages, the CLI's Vite UI build and dev server,virtual:soundor/bridge, the runtime contract'sbridgeModule()anddev.ui/build.uicontexts, the example and template DOM UI, and the parameteronChangefield.
Packages:
@soundor/config,@soundor/core,@soundor/runtime-sdk,create-soundor-app,soundor. -
#48
1a6e00bThanks @dm-balakin! - Newsoundor:uimodule: the plugin view as a tree of nodes with flexbox layout and DOM-style input events.root,createView(),createText():UiNodes areEventTargets withappendChild/insertBefore/removeChild, a React Native–stylestyle(flexbox, spacing shorthands, percentages, absolute positioning, gaps,pointerEvents, text properties),layoutandgetBoundingClientRect().- Layout by Yoga v3.2.1, pinned and built privately with hidden symbols.
- Normalized input: pointer capture, hover enter/leave, clicks, wheel, keyboard, text input and focus with Tab navigation. Delivered as
PointerEvent,WheelEvent,KeyboardEvent,FocusEventandInputEvent, which capture and bubble along the tree. EventTargetevents now run capture, target and bubble phases when targets form a tree;stopPropagation()andcomposedPath()behave as on the Web.- The JUCE editor sizes the view's surface and forwards mouse, wheel and keyboard input; unhandled keys and wheel input go on to the host.
soundor genemitsui.d.tswith the module's types.
Packages:
@soundor/config,@soundor/core,@soundor/runtime-sdk,create-soundor-app,soundor. -
#42
9b4473eThanks @dm-balakin! - Breaking: the plugin's identity moves to a top-levelplugin: { id, name },nativeMethodsis replaced by a typednativeAPI, and the JUCE WebView UI is removed.plugin.id(reverse-DNS) andplugin.nameare required. JUCE uses them asBUNDLE_IDandPRODUCT_NAME.juceRuntime()options are flattened to JUCE-only settings (jucePath,formats,companyName,pluginCode,manufacturerCode); the codes default to stable values derived fromplugin.id.native: { types, methods }declares structs, enums, opaque handles and methods, includingasyncones.soundor genemitsnative.d.ts(thesoundor:nativemodule), and the JUCE runtime generates a C++soundor::native::NativeApiinterface plus validated, zero-copy QuickJS bindings for it.- The JUCE editor no longer hosts a
WebBrowserComponent: there is no bridge manifest, native allowlist, embedded UI bundle or dev-server URL.@soundor/juce-runtime/bridgeis removed. The editor is an empty plugin view until the native UI lands.
Packages:
@soundor/config,@soundor/core,@soundor/runtime-sdk,create-soundor-app.