triode

Changelog

[Unreleased]

Added

  • A Fluid Blue example with an animated dye simulation from Triode Extensions and live speed, viscosity, and reset controls.
  • A Waveform Scope example that blends two sine waves into a hosted texture and draws a moving feedback trail with live controls.
  • A Texture Layout example that wraps a hosted mosaic around a rotating box, with live seed and grid density controls.
  • A Terrain Component Pilot that gives two reusable terrain surfaces independent controls and routes their shared Hydra inputs through one JSX scene into feedback.
  • A Line Loop Thread recipe for auditioning the position signal while the trail keeps playing.
  • A typed triode/tsl entry point that emits GLSL and WGSL fragment functions from built-in signal graphs in Node, with host bindings for controls and history sampling.
  • JavaScript and JSX syntax coloring and fullscreen live coding in the Playground, with a fullscreen source overlay in the Examples viewer.
  • Output-scoped live scalar controls and a pending state for setup values that need a cue Run.
  • Ten editable Three.js r157 examples in the JSX Playground and Examples gallery.
  • The Playground groups Three.js adaptations and shows upstream credits, original source, and the MIT license for the selected preset.
  • The Examples gallery labels Three.js adaptations on their cards and shows the upstream credits, source, and MIT license in the viewer.
  • One TSL rendering pipeline through Three.js WebGPURenderer, with automatic WebGL 2 fallback and a renderer-independent triode/graph entry point.
  • A checked local build route for the pinned final GLSL JSX Playground, including original shader source and share parameters.
  • GitHub Pages site build pipeline (npm run site:build) that generates docs and runnable example pages from repository sources.
  • GitHub Pages deployment workflow (.github/workflows/pages.yml) for automatic publishing on main.
  • Cross-browser smoke tests (npm run test:smoke:browser) using Playwright Chromium and Firefox against examples/quickstart.html.
  • Non-global 3D browser smoke test (npm run test:smoke:browser:non-global) to guard against implicit global coupling regressions.
  • Regression smoke test (npm run test:smoke:regression) for runtime bug fixes in 3D helpers and media utilities.
  • Release metadata verification script (npm run release:verify-meta) for changelog/version/tag consistency.
  • Release checksum generation script (npm run release:checksums) that writes release-checksums.txt.
  • CI and release workflows now run cross-browser smoke tests and upload tarball + checksum artifacts on tags.
  • Issue templates for bug, performance regression, and creative regression triage.
  • Repo quality gates:
  • - npm run lint - npm run typecheck - npm run format:check

Changed

  • Points Waves and Terrain Displacement use reusable Playground components, with the sketch keeping control of texture routing and camera setup.
  • Instanced Columns uses a reusable JSX column field with grouped layout and height controls. The Column Field Rehearsal shows two fields with independent controls.
  • Dots Noise, Color Smear, Dense White Dots, Single Dot, and Scrolling Dots Storm use shorter draw("dots", …) cues in the Playground.
  • Textured Box is the default Playground sketch and replaces Hydra texture and JSX cube and Box over Yellow. The Common Recipes show how to layer the cube over yellow noise.
  • Seven Playground presets use shorter trail() cues with their existing fade and Trail controls. The Playground Guide shows how to open and close Shared Ring while keeping the same markers.
  • The JSX Playground uses PointField, Path, and Segments for drawing. Use samples() to share ordered positions and colors between a path and its markers. Inline TriodeGrid sketches require migration. See Drawing in the Playground Guide.
  • Initialize library clients with await Triode.create(options). The rendering property reports the actual backend and adapter.
  • Define custom transforms with setFunction({ name, type, inputs, node }). Raw GLSL and composer effects run in the archived editor. WebGL 1, shader precision options, and the GLSL registry package entry were removed.
  • Redesigned the Triode site, docs, Examples, and JSX Playground with persistent themes and a live example viewer.
  • Package name is now triode (repository distribution remains Git tags + GitHub artifacts).
  • Browser bundle filename is now dist/triode.js (replacing dist/hydra-synth.js).
  • Documentation now positions triode as a standalone 3D live coding engine with Hydra editor/REPL drop-in compatibility.
  • Distribution docs now define triode's release channel as Git tags + GitHub artifacts.
  • Quickstart install snippets are pinned to release tag v1.0.0 instead of floating branch refs.
  • Runtime docs now explicitly define browser-only package execution and non-global mode usage.

Fixed

  • Points Waves keeps its phase and viewpoint across compatible formula edits, including at zero Wave speed.
  • Textured Box updates its oscillator as you drag Frequency while the scene keeps playing.
  • Dynamic Instancing now holds the current Suzanne lattice pose at zero rotation speed and resumes from that pose when the speed increases.
  • Restore the Playground trails in Line Loop Thread and Dots Storm, and restore the standalone gallery compositions for Terrain Displacement and Instanced Columns.
  • Restored the sketch color, vector, matrix and coordinate helpers.
  • Fixed custom combine callback arguments, portable graph output references and TypeScript support for built-in graph chains.
  • Removed implicit hydraSynth global runtime coupling from 3D internals by introducing explicit runtime context wiring.
  • Fixed source canvas resize behavior when only one dimension changes.
  • Fixed camera resize listener binding/removal mismatch in mixins.
  • Fixed hemisphere light options merge logic.
  • Fixed world relief noise argument ordering and getReliefAt() scene lookup.
  • Fixed VideoRecorder source buffer reference to avoid runtime ReferenceError.
  • Fixed arr.image() loading path to return resolved image data asynchronously instead of a permanently empty typed array.
  • Fixed undefined width/height usage in cmp.lookAtBox() orthographic path.

[1.0.0] - 2026-02-21

Added

  • CI workflow for build, smoke testing, and package dry-run checks.
  • Release verification workflow for v* tags that uploads npm tarball artifacts.
  • Canvas smoke test script (npm run test:smoke).
  • Module-load smoke test (npm run test:smoke:module) with strict ESM import coverage.
  • Local dev entrypoint restored at dev/index.js.
  • New onboarding and operations docs:
  • - docs/getting-started.md - docs/production-checklist.md - docs/release.md - examples/README.md

  • Contributor and security docs:
  • - CONTRIBUTING.md - SECURITY.md

  • Quickstart static example: examples/quickstart.html.

Changed

  • Versioning reset to 1.0.0 to establish an independent release line for triode.

Fixed

  • Constructor canvas initialization now uses the created canvas safely when no canvas is supplied.
  • Canvas resize helpers no longer rely on implicit global state.
  • ESM import specifiers now use explicit .js extensions in internal and three/examples imports.
  • Top-level window.* assignments are guarded to avoid immediate crashes in non-browser module loading.
  • arr.image() now fails with a clear error when tx loader is unavailable instead of throwing an unbound reference error.
  • Package import entry now loads from a stable bundled wrapper (src/package-entry.js) instead of raw source modules.

[1.4] - 2025-09-24

Legacy hydra-synth baseline reference for triode: hydra-synth 1.4.

See original changelog: https://github.com/hydra-synth/hydra-synth/blob/main/CHANGELOG.md#14---2025-09-24

Source CHANGELOG.md