All notable changes to @arraypress/waveform-gen are documented here. The
format is based on Keep a Changelog and this
project adheres to Semantic Versioning.
- Harden
normalizePeaks— replaceMath.max(...peaks)with a reduce so very large peak arrays can't trip "RangeError: Maximum call stack size exceeded".
generatePeaks()defaultsamplesraised 200 → 1800, aligning the Node library API with the CLI (which already defaulted to 1800) and the core player's live-decode resolution. A baregeneratePeaks(file)now returns 1800 peaks — the SoundCloud-scale figure that keeps wide / high-DPI waveforms crisp. Pass{ samples }to override. CLI output is unchanged.