maya naming: blocks→lists folder, renderer→render + readable aliases#20
Merged
Conversation
The folder held only the KeyedList family once the legacy block helpers fell away. Rename it to the honest category — lists/ — with an index.js barrel (pure barrel: co-equal leaves, no namesake primary). lists/ also gives VirtualList a home when it lands. - delete AnchorBlock.js (orphan) and Toggle.js (only the barrel re-exported it; no importers) - subpath export ./blocks -> ./lists; azoth umbrella re-export follows - valhalla import + the live KeyedList design-doc link updated - TODO: drop the resolved AnchorBlock/Toggle line Full suite green: 301 passed | 4 skipped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01156Jwbhv8ue51zDZdvdmbM
The per-call-site factory is `render` (file render.js); the stack accessor is `activeRenderer` (renderer mode = fresh DOM, the default; rerenderer mode = cached by call site). The four generated runtime aliases are spelled out — __compose / __createComponent / __composeComponent / __render — so compiled output reads as written rather than enciphered. It's the surface you actually inspect and debug; minification handles the ship size. - maya: renderer.js → render.js; renderer() → render(); the ./renderer subpath points at render.js; activeRerenderer → activeRenderer (def + importers render.js and compose.js) - thoth codegen emits the readable aliases: Analyzer token rC → createComponent (getImports prefixes __), Transpiler call literal, template-generators METHOD + makeRenderer, vite bind/template imports - inline codegen snapshots updated in place — identifier-only change, so no -u needed (sidesteps the -u coalescing bug); COMPILER.md aliases refreshed rerenderer / Rerenderer keep their names. Full suite green: 301 passed | 4 skipped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01156Jwbhv8ue51zDZdvdmbM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Code-only naming pass for maya (and the thoth codegen that targets it). No docs in this PR.
2a —
blocks/→lists/(f814986)The folder held only the KeyedList family once the legacy block helpers fell away. Renamed to the honest category, with an
index.jsbarrel (pure barrel — co-equal leaves, no namesake primary).lists/also gives VirtualList a home when it lands.AnchorBlock.js(orphan) +Toggle.js(only the barrel re-exported it; no importers)./blocks→./lists; azoth umbrella + valhalla import follow2b —
renderer→render, spell out the runtime aliases (9037e21)The per-call-site factory is
render(filerender.js); the stack accessor isactiveRenderer. The four generated runtime aliases are spelled out —__compose/__createComponent/__composeComponent/__render— so compiled output reads as written rather than enciphered. It's the surface you actually inspect and debug; minification handles ship size.-u(sidesteps the-ucoalescing bug)rerenderer/Rerendererkeep their namesTests
Full suite green: 301 passed | 4 skipped.
🤖 Generated with Claude Code