v2.1.0 release: Swift 6.4 modernization

Typed throws across the closed-error-set APIs (OSC, MIDI, engine add/schedule,
bus/config/parameter, and the WAV/RF64/Spectral file codecs — source-compatible
narrowing, new .ioFailure cases), plus internal hardening: NSLock-guarded
scheduling/MIDI state moved to Mutex<State>, and the Spectral/FFT scratch owners
moved to a ~Copyable RTScratchBuffer RAII buffer. No API or behavioral change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-09-24 19:54:59 -07:00
parent 2c20b02e59
commit 844dc4d9cd
42 changed files with 835 additions and 640 deletions
+24
View File
@@ -7,6 +7,30 @@ functionality in a backward-compatible way.
---
## 2.1.0 — Swift 6.4 modernization
An internal-hardening release adopting modern Swift on the 6.4 toolchain. No
behavioral change, and the public surface stays source-compatible.
**Typed throws.** The closed-error-set APIs now declare their concrete error
type instead of untyped `throws`, so a caller gets an exhaustive `catch` with no
downcast: OSC (`OSCDecodeError` / `OSCServerError`), MIDI (`MIDIError`, on both
the CoreMIDI and ALSA backends), the engine's bus / config / parameter setters,
the public node-add surface — `add` / `schedule` — (`EngineAddError`), and the
self-contained file codecs (`WavFileError` / `RF64WriterError` /
`SpectralFileError`). Narrowing an API from `throws` to `throws(E)` is
source-compatible — existing `try` call sites are unaffected. The WAV and
Spectral codecs gain an `.ioFailure` case that funnels an underlying
`FileHandle` failure into the typed error.
**Concurrency & memory hardening (internal).** NSLock-guarded state in the
scheduling and MIDI classes moved into `Mutex<State>` for compiler-enforced lock
discipline, and the Spectral/FFT scratch owners moved from hand-managed raw
pointers to a `~Copyable` `RTScratchBuffer` (compiler-guaranteed single free, no
ARC on the handle). No API or behavioral change.
---
## 2.0.0 — Linux support
The major release: Lyrebird now runs on **Linux**, in addition to macOS and iOS.