Soundor
Soundor

Soundor 0.16.0 Contains breaking changes

Release notes for Soundor 0.16.0.

All Soundor releases

15 changes — 11 features, 3 fixes, 1 breaking change

Minor Changes

  • #215 9e4c0ef Thanks @dm-balakin! - Add soundor build juce --debug: a one-shot Debug build with DevTools and the UI embedded, for tests, in .soundor/debug/juce/<format>/. Add --out <dir> to soundor build, for releases and debug builds.

    Packages: @soundor/vitest-e2e, soundor.

  • #208 01bf473 Thanks @dm-balakin! - Enable the soundor package 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 include customConditions: ["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 7fb3f13 Thanks @dm-balakin! - soundor dev juce opens the VST3 in @soundor/vst3-host, now an optional peer, when the project installs it and formats has vst3; otherwise the Standalone, as before. juceRuntime({ dev: { launch } }) chooses ('vst3', 'standalone' or false), and the v and s keys open either at any time. The plugin's state is kept in .soundor/state/juce/vst3.json between 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 get ctx.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's libstdc++-static); only the published executables link it.

    Packages: @soundor/core, create-soundor-app.

  • #213 c6a011f Thanks @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-host is an optional peer, and @soundor/devtools-server is 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 crashed recreate() on JUCE plugins, whose handlers can be gone by then.

    Packages: @soundor/driver.

  • #214 cdbebe4 Thanks @dm-balakin! - Add @soundor/vitest-e2e: Vitest tests of a built VST3 plugin in the real host, with launchPlugin(), launchHost(), the soundor({ vst3 }) plugin and the toBeVisible, toBeHidden and toHaveText matchers. Vst3Plugin from @soundor/driver/vst3 gains locators that survive a reopened editor, pointer, keyboard, screenshot() and parameter(). Vst3Host gains parameter(title).

    Packages: @soundor/driver, @soundor/vitest-e2e.

  • #238 2daa8a0 Thanks @dm-balakin! - ResizeObserver is a global that observes nodes, as on the Web: its callback is told after a frame's requestAnimationFrame callbacks 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. useScrollbar no longer reads sizes every frame: it is told of changes by a ResizeObserver and by scroll events. New useCanvasSize keeps a canvas's drawing buffer exactly the device pixels its box covers.

    Packages: @soundor/environment, @soundor/react, @soundor/test-runtime, vitest-environment-soundor.

  • #240 ca0158b Thanks @dm-balakin! - Any view scrolls when its style says so, an Animated.View too: overflow: 'scroll' scrolls, as in CSS, and overflowX and overflowY scroll one axis (they win over overflow). ScrollView is now a view with that style, its children in a content container, and it always scrolls; scrollIndicators and onScroll are props of every View. Nodes scroll smoothly with scrollTo()/scrollBy() and behavior: 'smooth', and scrollIntoView() brings a node into view in every view around it that scrolls.

    Breaking:

    • createScrollView() and the 'scroll' node type are gone: create a view with overflow: '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 takes axis: useScrollbar(ref, { axis: 'horizontal' }) is useScrollbar(ref).horizontal.

    Packages: @soundor/environment, @soundor/react, @soundor/test-runtime.

  • #235 9110364 Thanks @dm-balakin! - useScrollbar makes a scrollbar of your own from ordinary nodes, and ScrollView's scrollIndicators={false} leaves out the built-in one. Nodes gain scrollIndicators, clientWidth and clientHeight.

    Packages: @soundor/environment, @soundor/react, @soundor/test-runtime.

  • #242 1b4e0a0 Thanks @dm-balakin! - Remove ScrollView and ScrollViewProps. Use View or Animated.View with overflow: 'scroll', overflowX: 'scroll' or overflowY: 'scroll' in its style instead. Apply content styles to the view or an explicit child View; contentContainerStyle is no longer available. Scroll events, indicators, useScrollbar and 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 f0cfe73 Thanks @dm-balakin! - usePressable gives a component of your own what Pressable does: presses, long presses, and whether it is pressed, hovered or focused. Pressable is now made with it.

    Packages: @soundor/react.

  • #217 cdb88a2 Thanks @dm-balakin! - Add audio helpers: sine, noise, impulse and silence; peak, rms and dominantFrequency; noteOn and noteOff; render(), which processes a request in chosen block sizes; readWav and writeWav; and the toBeSilent, toBeCloseToAudio and toMatchAudioSnapshot matchers.

    Packages: @soundor/vitest-e2e.

  • #216 8e00a56 Thanks @dm-balakin! - Add the toBeChecked, toBeEnabled, toHaveFocus and toMatchScreenshot matchers. 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 b428816 Thanks @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 ede9005 Thanks @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 9110364 Thanks @dm-balakin! - The simulated runtime fires scroll from code as the real ones do: once at the next frame, also for scrollTop and scrollLeft, and not when the position did not move.

    Packages: @soundor/test-runtime.

On this page