The old single-source API had no live callers beyond its tests/documentation and
is replaced rather than kept as an unused wrapper.
Scope
Five files only: compiler, its tests, one runtime-context fixture, documentation
and a worker patch changeset. No new dependencies, configuration discovery,
piece/site registration policy, revision publication, worker job hooks, web
integration, fallback behavior or image-pipeline changes.
Verification
All 282 worker tests pass across 47 files.
Native artifact test prevents workspace dependency fallback and proves shared
runtime function identity/context cleanup across separately compiled templates.
Tests cover selection, output/style isolation, escaped content, reserved/quoted
names, unknown names and original source diagnostics.
ESLint, production TypeScript build, formatting and diff checks pass.
Compiler coverage is 100%; overall coverage is 97.65% statements/lines,
89.86% branches and 99.03% functions.
Independent code review found no actionable issues.
Reviewed and explicitly approved before staging. One commit above merged #124;
private plans and unrelated archive edits are excluded.
## Summary
Extend the worker compiler from one source to a named set of templates:
- `compileTemplates({ name: { source, filename } })` produces one standalone bundle.
- The generated module exports `render(name, props)` returning `{ body, head }`.
- Every template shares one Svelte server runtime; each render has independent output/CSS.
- Names are JSON-encoded and selected through a Map, including reserved or quoted names.
- Source warnings retain filenames; invalid source rejects compilation; unknown names throw.
The old single-source API had no live callers beyond its tests/documentation and
is replaced rather than kept as an unused wrapper.
## Scope
Five files only: compiler, its tests, one runtime-context fixture, documentation
and a worker patch changeset. No new dependencies, configuration discovery,
piece/site registration policy, revision publication, worker job hooks, web
integration, fallback behavior or image-pipeline changes.
## Verification
- All 282 worker tests pass across 47 files.
- Native artifact test prevents workspace dependency fallback and proves shared
runtime function identity/context cleanup across separately compiled templates.
- Tests cover selection, output/style isolation, escaped content, reserved/quoted
names, unknown names and original source diagnostics.
- ESLint, production TypeScript build, formatting and diff checks pass.
- Compiler coverage is 100%; overall coverage is 97.65% statements/lines,
89.86% branches and 99.03% functions.
- Independent code review found no actionable issues.
Reviewed and explicitly approved before staging. One commit above merged #124;
private plans and unrelated archive edits are excluded.
Reviewed and explicitly approved before staging. Compile named sources into one standalone renderer with safe name selection, shared Svelte context and isolated render output. Preserve source diagnostics; no configuration discovery, publication, job registration, or web integration.
eleith
merged commit c1f688893e into main2026-10-19 21:49:10 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Extend the worker compiler from one source to a named set of templates:
compileTemplates({ name: { source, filename } })produces one standalone bundle.render(name, props)returning{ body, head }.The old single-source API had no live callers beyond its tests/documentation and
is replaced rather than kept as an unused wrapper.
Scope
Five files only: compiler, its tests, one runtime-context fixture, documentation
and a worker patch changeset. No new dependencies, configuration discovery,
piece/site registration policy, revision publication, worker job hooks, web
integration, fallback behavior or image-pipeline changes.
Verification
runtime function identity/context cleanup across separately compiled templates.
names, unknown names and original source diagnostics.
89.86% branches and 99.03% functions.
Reviewed and explicitly approved before staging. One commit above merged #124;
private plans and unrelated archive edits are excluded.