_sessionTrackedJobs and _sessionDoneJobs accumulated jobIds across the whole session — IDs of jobs already removed from queueJobs (by removeFromQueueOnDone or the auto-cap that lands in handleBatchDone) stayed in those sets forever. ~50 bytes/entry × hundreds of batches × many jobs/batch = small but real growth over a multi-day session. At batch-done, walk the sets and drop any ID that's no longer present in queueJobs. _completedUploadKeys is intentionally kept — it's the dedup against re-queueing the same file across batches and would break that contract if pruned. The prune is a single pass per batch-done (rare event) and only happens when the sets aren't already empty. 97/97 tests still green.
1.8 KiB
1.8 KiB
Verbesserungs-Loop — open items
Released
- ✅ 3.3.0 — Performance-Fixes (queue-cap, sort-throttle, history-delegation, recent-cap) + Log-Recovery
- ✅ 3.3.1 —
removeFromQueueOnDonecoalesced via microtask (kein O(N²) mehr bei done-Bursts) - ✅ 3.3.2 —
fileuploader.logAuto-Rotation bei 50 MB (max 3 Backups: .1 .2 .3) - ✅ 3.3.3 —
_jobLogCollectorCap auf 1000 tracked jobs (FIFO-eviction beim Überschreiten) - ✅ 3.3.4 —
applyQueueSelectionClasses+applyRecentSelectionClassesnutzengetElementsByClassName(live HTMLCollection statt querySelectorAll re-query bei jedem Klick) - ✅ 3.3.5 — Log-Rotation extrahiert nach
lib/log-rotation.js+ 10 neue Unit-Tests (cap, shift, eviction, idempotency, maxBackups=1, invalid input, no-extension) - ✅ 3.3.6 — CSS
.queue-rowtransition nur noch auf:hover(kein 150ms compositor-tween bei status-flips) - ✅ 3.3.7 —
_sessionTrackedJobs/_sessionDoneJobswerden bei handleBatchDone gegen current queueJobs geprunt (no more unbounded session memory growth across batches)
Open items (priorisiert)
Code-Qualität (deferred — bräuchte jsdom für DOM/state)
- queue-cap-prune-Logik (3.3.0 handleBatchDone)
- sortQueueJobs dynamic-throttle (3.3.0)
- removeFromQueueOnDone microtask-coalesce (3.3.1) — Microtask-Timing schwer zu testen ohne fake-timer setup
Loop-Status
Alle initial im 3.3.0-Audit identifizierten Items sind nun adressiert. Loop kann pausiert werden bis neue User-Beschwerden / neue Audit-Findings auftauchen, oder weiterlaufen für Quality-Improvement-Sweep (z.B. eslint cleanup, comment audit, dead-code).
Loop-Notes
- Cron-Job
01e33ae1läuft alle 30min (:07/:37), Session-only. - Pro Iteration: GENAU EIN Issue. Auto-Release bei grünen Tests. Boundary: keine Features, keine Major-Refactors.