Soundor 0.16.0
Release notes for Soundor 0.16.0.
15 changes — 11 features, 3 fixes, 1 breaking change
Minor Changes
-
#215
9e4c0efThanks @dm-balakin! - Addsoundor build juce --debug: a one-shot Debug build with DevTools and the UI embedded, for tests, in.soundor/debug/juce/<format>/. Add--out <dir>tosoundor build, for releases and debug builds.Packages:
@soundor/vitest-e2e,soundor. -
#208
01bf473Thanks @dm-balakin! - Enable thesoundorpackage condition when bundling plugin UIs and running Soundor Vitest tests, including external dependencies. Libraries can expose Soundor and DOM implementations through the same import, with the Soundor entry selected for both JUCE and the web runtime. New projects includecustomConditions: ["soundor"]in their UI tsconfig; existing and manually created projects should add it to select matching TypeScript declarations.Packages:
@soundor/vitest,create-soundor-app,soundor. -
#222
7fb3f13Thanks @dm-balakin! -soundor dev juceopens the VST3 in@soundor/vst3-host, now an optional peer, when the project installs it andformatshasvst3; otherwise the Standalone, as before.juceRuntime({ dev: { launch } })chooses ('vst3','standalone'orfalse), and thevandskeys open either at any time. The plugin's state is kept in.soundor/state/juce/vst3.jsonbetween launches of the host. New projects with the JUCE runtime get the host as a devDependency. In the host,launchHost({ detached: true })runs it in a process group of its own, so that a terminal's Ctrl+C reaches only Node. Runtimes getctx.paths.state,.soundor/state/<id>, for what they keep between sessions and cannot make again. A local build of the host no longer needs a static libstdc++ (Fedora'slibstdc++-static); only the published executables link it.Packages:
@soundor/core,create-soundor-app. -
#213
c6a011fThanks @dm-balakin! - Add@soundor/driver/vst3:launch()runs a Debug build of a Soundor plugin in the VST3 host, in a private DevTools session, and gives a Driver for its UI beside the host for its audio.@soundor/vst3-hostis an optional peer, and@soundor/devtools-serveris now a dependency of the Driver. In the host, a handler that a plugin unregisters from Linux's run loop is released at once rather than on a later turn, which crashedrecreate()on JUCE plugins, whose handlers can be gone by then.Packages:
@soundor/driver. -
#214
cdbebe4Thanks @dm-balakin! - Add@soundor/vitest-e2e: Vitest tests of a built VST3 plugin in the real host, withlaunchPlugin(),launchHost(), thesoundor({ vst3 })plugin and thetoBeVisible,toBeHiddenandtoHaveTextmatchers.Vst3Pluginfrom@soundor/driver/vst3gains locators that survive a reopened editor,pointer,keyboard,screenshot()andparameter().Vst3Hostgainsparameter(title).Packages:
@soundor/driver,@soundor/vitest-e2e. -
#238
2daa8a0Thanks @dm-balakin! -ResizeObserveris a global that observes nodes, as on the Web: its callback is told after a frame'srequestAnimationFramecallbacks and layout of each node whose content, border or device-pixel content box changed size. In the web runtime it takes the browser's place for nodes, and passes DOM elements on to it. The simulated runtime's observes nodes and never calls back, as nothing is laid out there.useScrollbarno longer reads sizes every frame: it is told of changes by aResizeObserverand byscrollevents. NewuseCanvasSizekeeps a canvas's drawing buffer exactly the device pixels its box covers.Packages:
@soundor/environment,@soundor/react,@soundor/test-runtime,vitest-environment-soundor. -
#240
ca0158bThanks @dm-balakin! - Any view scrolls when its style says so, anAnimated.Viewtoo:overflow: 'scroll'scrolls, as in CSS, andoverflowXandoverflowYscroll one axis (they win overoverflow).ScrollViewis now a view with that style, its children in a content container, and it always scrolls;scrollIndicatorsandonScrollare props of everyView. Nodes scroll smoothly withscrollTo()/scrollBy()andbehavior: 'smooth', andscrollIntoView()brings a node into view in every view around it that scrolls.Breaking:
createScrollView()and the'scroll'node type are gone: create a view withoverflow: 'scroll'.overflow: 'scroll'on a view scrolls it; it used to only clip, as'hidden'still does.scrollTo()on a node that does not scroll does nothing, as in browsers, instead of throwing.useScrollbar(ref)returns{ vertical, horizontal }, a bar for each axis, and no longer takesaxis:useScrollbar(ref, { axis: 'horizontal' })isuseScrollbar(ref).horizontal.
Packages:
@soundor/environment,@soundor/react,@soundor/test-runtime. -
#235
9110364Thanks @dm-balakin! -useScrollbarmakes a scrollbar of your own from ordinary nodes, andScrollView'sscrollIndicators={false}leaves out the built-in one. Nodes gainscrollIndicators,clientWidthandclientHeight.Packages:
@soundor/environment,@soundor/react,@soundor/test-runtime. -
#242
1b4e0a0Thanks @dm-balakin! - RemoveScrollViewandScrollViewProps. UseVieworAnimated.Viewwithoverflow: 'scroll',overflowX: 'scroll'oroverflowY: 'scroll'in its style instead. Apply content styles to the view or an explicit childView;contentContainerStyleis no longer available. Scroll events, indicators,useScrollbarand the node's scrolling methods work with these views.The scrolling guide and live example now live on the View documentation page.
Packages:
@soundor/react. -
#237
f0cfe73Thanks @dm-balakin! -usePressablegives a component of your own whatPressabledoes: presses, long presses, and whether it is pressed, hovered or focused.Pressableis now made with it.Packages:
@soundor/react. -
#217
cdb88a2Thanks @dm-balakin! - Add audio helpers:sine,noise,impulseandsilence;peak,rmsanddominantFrequency;noteOnandnoteOff;render(), which processes a request in chosen block sizes;readWavandwriteWav; and thetoBeSilent,toBeCloseToAudioandtoMatchAudioSnapshotmatchers.Packages:
@soundor/vitest-e2e. -
#216
8e00a56Thanks @dm-balakin! - Add thetoBeChecked,toBeEnabled,toHaveFocusandtoMatchScreenshotmatchers. A failed test now leaves a screenshot, the UI tree and the host's log in.soundor/test-results/.Packages:
@soundor/vitest-e2e.
Patch Changes
-
#230
b428816Thanks @dm-balakin! - Check the template's complete dependency tree with the selected package manager before generating a project. Try the tested package versions first, then older stable versions within explicit template minimums, keeping the CLI release group together and resolving independent runtimes separately. Preserve release-age policies, explain unavailable releases and fallbacks, and install using the resolved lockfile.Packages:
create-soundor-app. -
#243
ede9005Thanks @dm-balakin! - Correct documentation for node components, event props, protocol version 2 and Apple accessibility integration. Runtime behavior and API signatures are unchanged.Packages:
@soundor/devtools-protocol,@soundor/environment,@soundor/react. -
#235
9110364Thanks @dm-balakin! - The simulated runtime firesscrollfrom code as the real ones do: once at the next frame, also forscrollTopandscrollLeft, and not when the position did not move.Packages:
@soundor/test-runtime.