Repository navigation
Features
- Export QR sequences as animated GIF (#27)
- Cap encoded block degree (#30, closes #23): the fountain encoder now uses a Robust Soliton distribution (
c = 0.2,δ = 0.5) truncated atmaxDegree(default32). For large inputs this needs roughly 15% fewer frames and decodes much faster (k=1000: 144% → 128% mean overhead, ~40× faster decoding; k=3000 previously ran out of memory).luby-transform:createEncoder(data, sliceSize, options)accepts{ compress?, maxDegree?, random? }. A boolean third argument still meanscompress. New exportDEFAULT_MAX_DEGREE.@qifi/generate: newmaxDegreeoption.qifiCLI: new--max-degree <count>flag.
Fixes
- Prefer the rear camera by default (#29, closes #26): the scanner requests
facingMode: environmentunless the user explicitly picked a camera, no longer triggers extra permission prompts, and serializes camera switching to avoid leaked streams.
Compatibility
- No breaking API changes. The frame format is unchanged, so scanners and decoders from earlier versions can decode frames produced by 0.3.0.
- Behavior change: default degree distribution changed from uncapped Ideal Soliton to capped Robust Soliton; frame headers are now bounded (≤ 144 bytes).
Docs
- Document
maxDegreeand the new degree distribution in the package READMEs.
Full Changelog: v0.2.0...v0.3.0