SuperSwingTimer v0.3.8
What's new
v0.3.8 - 2026-11-27
Added
- Cooldown HUD type contracts (
SuperSwingTimer_CooldownHUD.lua).SSTCooldownHUDButton(border, icon, swipe, glow overlay, text layer, count/charge text, glow/desat flags, bound key/spell) andSSTCooldownHUDSwipenow describe the real button, so the pooled button, the state accessor and the tests agree on one shape instead ofFrame+ ad-hoc fields.
Fixed
- Login taint on WoW Forever removed (
ADDON_ACTION_FORBIDDENfromRefreshCombatLogRegistration). Forever keeps the combat log restricted for the whole session, so the runtime toggle only ever ran its unsubscribe branch atPLAYER_ENTERING_WORLD— and mutating a CLEU subscription on that client is a forbidden action (RegisterEvent/UnregisterEventgate onEnum.ForbiddenAspect.EventRegistrations), whichpcallcannot suppress: the client fires the taint event before the call returns, so every login raised it once (BugSack aggregated them as1x, then3x, then4x). The toggle and its three call sites are deleted; the subscription is decided once inRegisterEventsand never touched again, andUnregisterEventno longer appears anywhere in the addon. Forever now gets its swing resolution fromUNIT_COMBATinstead (newns.HandleUnitCombat, which reads only the unit token and the outcome tag — the payload'samountfield is a secret value and is never touched), so the melee landing callbacks, landing flash and queue-tint restore fire at the real landing instant rather than the predicted one. The event is registered only whenns.isForeveris true, so Classic Era, TBC Anniversary and Titanforge keep their existing CLEU path and event set byte for byte. - SavedVariables nil-safety at the migration.
MigrateDBnow returns the table it normalized, and as a last resort seeds one fromns.DB_DEFAULTSwhen the client hands back no SavedVariable at all, so the migration ladder can never index a nil table.OnAddonLoadedcaptures that returned table once for its eleven dimension and three colour reads instead of re-resolving the global between statements. - Settings writes guard the table they write to, one site at a time. Every remaining
SuperSwingTimerDB.<field> = …apply path now checks the SavedVariables table first — thirteen apply functions (ApplyBarBackgroundColor,ApplyBarBorderColor,ApplySparkSettings,ApplyIndicatorBlendMode,ApplySparkTextureLayer,ApplyWeaveMarkerLayer,ApplyWeaveSparkSettings,ApplyWeaveSparkTextureLayer,ApplyWeaveSparkAlpha,ApplyWeaveTriangleSettings,ApplyMinimalMode,InitBars,StopMoveMode) plus the hunter ranged-bar label, bar position save, bar size, border size, bar texture, ranged texture and texture-layer setters — so a settings write can no longer error out mid-pass and leave bars half-applied. There is deliberately no shared accessor: each path reads and writes only the specific table it owns, so nothing is created behind another subsystem's back. - Class-key lookups only index with a real class token.
GetBuffToggle/GetBuffSize(Forever buff rows) andHasActiveTimers(State) gate on a genuine, non-secret class string first: WoW Forever's identity-restrictedUnitClasscan return a secret value, and indexing a table with a secret throws in combat. - Every test case that touches SavedVariables checks it first. The cases guard the table before the first read or write and record a failure instead of silently dereferencing nil, so a missing table fails the case loudly rather than poisoning the run. The secret-text label case also builds its stub as a
FontString, which is what production actually sets.
Changed
- Analyzer gate moved to
wowlua_ls(v0.39) andlua5.1.luacheckis retired for this repo: it does not model the WoW API, secret values, or the four client flavors, and its output was churn. The gate is nowluac5.1 -p SuperSwingTimer*.lua run_tests.lua,lua5.1 run_tests.luaand a per-filewowlua_lscheck. .wowluarc.jsonnow points at this tree. Everylibraryroot wasLibs/…, a directory that does not exist here, and two vendored directories were missing entirely, so third-party code was analyzed as ours.librarynow lists the realLib/roots (includingLib/LibClassicSwingTimerAPI/andLib/LibDetours-1.0/) andignorelists real directories, removing ~27 vendored warnings from the report. Flavor coverage (retail,classic,classic_era,mainline,forever) and thesecret-*error severities are unchanged.run_tests.luais analyzed instead of fully silenced. Its blanket---@diagnostic disableis narrowed to---@diagnostic disable: unused-vararg, the one rule the WoW stubs violate on purpose, so real diagnostics in the harness now surface.
Notes
- Diagnostic baseline: 270 errors → 0, verified file by file; the only diagnostics left in addon files are hints.
- DB schema stays at
ns.DB_CURRENT_VERSION = 70— no migration was added, so no player setting is rewritten by this release. - Version surfaces bumped together to
v0.3.8:SuperSwingTimer.toc, thens.GetDisplayVersion()fallback, theSuperSwingTimer_Config.luapanel fallbacks, therun_tests.luametadata mock, and the suite's TOC assertion.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

