Skip to content

Commit 1196355

Browse files
authored
Merge pull request #20 from WizardLoop/dev
Added new features for editing and managing broadcasts, improved state handling, and fixed various issues.
2 parents 6d228a0 + c0034e9 commit 1196355

3 files changed

Lines changed: 2217 additions & 1098 deletions

File tree

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,33 @@ Added functionality to send initial status messages when gathering peers and sta
182182
- fixed `progress()` to update progress state from all methods
183183

184184
---
185+
186+
## [3.2.0] - 2026-06-13
187+
188+
### Added
189+
190+
- Edit last broadcast message with `editLastBroadcastForAll()`.
191+
- Optional `broadcastId` targeting for editing or deleting the last message of a specific broadcast.
192+
- Metadata peer loading for targeted edit/delete calls when `allUsers` is empty and `broadcastId` is provided.
193+
- Pause/resume/cancel inline controls on live broadcast status messages.
194+
- Scheduled broadcasts with durable jobs and runner methods.
195+
- Self-destruct broadcasts with a `0` to `48` hour delay.
196+
- Persisted per-broadcast metadata in `data/broadcasts/{broadcastId}.json`.
197+
- Scheduled and self-destruct job runners.
198+
- Internal error logging to `data/broadcast-errors.log`.
199+
200+
### Changed
201+
202+
- Safer state handling using shared state references by broadcast id.
203+
- Safer cancel behavior: `cancel()` now marks cancellation without clearing in-flight requests.
204+
- `progress()` now includes edit, scheduled, self-destruct, total, elapsed, and TPS fields.
205+
- Message IDs are saved during broadcast after each successful peer instead of only at the end.
206+
- `editLastBroadcastForAll()` and `deleteLastBroadcastForAll()` can use persisted broadcast metadata instead of only legacy `lastBroadcast.txt`.
207+
- `deleteAllBroadcastsForAll()` now uses one progress loop instead of concurrent progress edits from workers.
208+
209+
### Fixed
210+
211+
- Pause/resume/cancel state reference issue.
212+
- Workers not stopping after `done`.
213+
- Unsafe watchdog behavior that could duplicate sends.
214+
- Concurrent progress edits in `deleteAllBroadcastsForAll()`.

0 commit comments

Comments
 (0)