v0.41.1 - Counter Refactor and Documentation Updates (2026-03-23)¶
What Changed?¶
This release removes the logger argument from Counter and moves log output responsibility to AfterGlow, keeping each module focused on a single responsibility. Documentation is also updated: the getting-started guide now uses FlameFrame throughout, and a new developer guide covers the convert.ts utilities and Cell type.
What's New¶
Refactor: Counter no longer accepts a logger argument¶
What it does:
Counter.increment() and Counter.reset() previously accepted an optional logger argument to output log messages. This created an implicit circular dependency between Counter and AfterGlow. The logger argument has been removed, and AfterGlow.count() / AfterGlow.countReset() now handle log output directly.
Before:
// AfterGlow was passing itself into Counter — circular coupling
this._counter.increment(label, this);
this._counter.reset(label, this);
After:
// Counter manages numbers; AfterGlow manages logging
const value = this._counter.increment(label);
this.info(`${label}: ${value}`);
this._counter.reset(label);
this.info(`${label}: reset to 0`);
Added¶
- Developer guide:
convert.tsutilities andCelltype (docs/dev/convert.md,docs/dev/cell.md)
Changed¶
Counter.increment()andCounter.reset(): removedloggerargumentAfterGlow.count()andAfterGlow.countReset(): now callthis.info()directly for log output- Getting-started guide (
docs/getting-started/): all examples migrated toFlameFrameAPI - Developer guide (
docs/dev/): reorganized into subfolders; added FlameFrame, FlameWright, and DataFrame/Sheets guides
Is It Safe to Upgrade?¶
- Breaking Changes: No
- Backward Compatible: Yes
Counter is an internal class not exported for direct use. The behavioral change in AfterGlow.count() and AfterGlow.countReset() is identical to before — both still log the count value via info().
Release Details¶
- Date: 2026-03-23
- Version: v0.41.1
- gaslamp: version 89
- pilotlamp: version 46
- Commits:
9b7627cdocs(gears): update Counter docstrings63ea76brefactor(gears): remove logger argument from Counter4fe60eddocs(getting-started): migrate examples to FlameFrame API525bdefdocs(dev): add cell.md and deduplicate type docs from convert.mdb14a37fdocs(dev): add convert.ts developer guide and guides section570e471docs(api): regenerate TypeDoc API referenceccdab2adocs(mkdocs): update nav for reorganized developer guide11798f8docs(dev): reorganize developer guide into subfolders76fe01adocs(guides): add FlameWright runtime type validation guide01a5bf0docs(guides): add FlameFrame and Schema Validation guide2b2fa5bdocs(guides): add DataFrame and Google Sheets guide
Known Issues¶
- None
Next Steps¶
- Continue expanding developer guides for remaining modules