Skip to content

maya naming: blocks→lists folder, renderer→render + readable aliases#20

Merged
martypdx merged 2 commits into
mainfrom
maya-lists
Jul 5, 2026
Merged

maya naming: blocks→lists folder, renderer→render + readable aliases#20
martypdx merged 2 commits into
mainfrom
maya-lists

Conversation

@martypdx

Copy link
Copy Markdown
Collaborator

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.js barrel (pure barrel — co-equal leaves, no namesake primary). lists/ also gives VirtualList a home when it lands.

  • deleted AnchorBlock.js (orphan) + Toggle.js (only the barrel re-exported it; no importers)
  • subpath ./blocks./lists; azoth umbrella + valhalla import follow

2b — rendererrender, spell out the runtime aliases (9037e21)

The per-call-site factory is render (file render.js); the stack accessor is activeRenderer. 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.

  • thoth codegen emits the readable aliases (Analyzer token + Transpiler/template-generators/vite literals)
  • inline codegen snapshots updated in place — identifier-only change, no -u (sidesteps the -u coalescing bug)
  • rerenderer / Rerenderer keep their names

Tests

Full suite green: 301 passed | 4 skipped.

🤖 Generated with Claude Code

martypdx and others added 2 commits June 23, 2026 10:19
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
@martypdx martypdx merged commit a55eb7e into main Jul 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant