Commit 86b5ef9
DevBot
refactor(element): remove dead v0.43 renderer/hydration residue (#1273 O2, B2.13)
Dead-code proof (import graph from every deno.json exports entrypoint +
CLI/bin entries, plus repo-wide symbol search incl. tests, www, tools,
examples): zero consumers for each removal. All five deleted modules were
shipped to npm because every package publishes src/**.
Deleted:
- src/types.ts (ElementDefinition render()->VNode typing of the removed
runtime renderer)
- src/internal/protocol/vnode.ts (VNode/ComponentFn/ComponentCtor/RenderFn)
- src/internal/protocol/prop.ts (ADR-0052 static prop-decl typing,
superseded by compiler __compiledProperties)
- src/internal/core/dom-utils.ts (clearChildren, unused since #902-era
renderer removal)
- src/internal/core/dsd-shadow-root.ts (hasPopulatedShadowRoot, unused)
Slimmed:
- internal/protocol/render.ts: dropped the legacy DSD-pipeline interfaces
(RenderPhase, RenderInput, RenderHooks, DsdOptions, RenderErrorCode,
DsdComponentConstructor, DsdComponent) and the VNode import; kept the
live RenderError/RenderOutput/HydrationHint/DsdRenderMetrics/
SsrAdmissionDecision contract unchanged (snapshot shapes identical).
- internal/protocol/hydration-markers.ts: removed the v0.43 marker
constants (DATA_SIGNAL*, DATA_EID, DATA_SSR_PROPS, BRANCH_MARKER_PREFIX,
FOR_ITEM_PREFIX, FOR_END_PREFIX) and parseSignalAttrSpec. The compiled
model claims through oe:pN program anchors; the marker literals are
already forbidden in built artifacts by check-v044-legacy-absence.ts.
DATA_OE_LIGHT stays: it is the live ADR-0142 light-mode marker, consumed
via literals across the generated-code boundary by design.
Public surface: DATA_SSR_PROPS re-export removed from src/index.ts and
src/public-runtime.ts. The data-ssr-props channel was already documented
as gone (app/preact.ts); the export was classed internal-importable, had
no consumer anywhere in the repo, and is deleted rather than deprecated
per the B2.13 removal authority. Interface snapshot, package-surface
class map and content graph regenerated; the only snapshot delta is the
DATA_SSR_PROPS symbol removal.
Also fixes the stale reader list in ssr-registry-markers.ts (element's
define-element.ts no longer exists; the SSR stub marker is read by
app/preact.ts).
Refs #1273. Stage #1288 risk #8.1 parent 36dc582 commit 86b5ef9
8 files changed
Lines changed: 18 additions & 141 deletions
File tree
- docs
- current
- release
- packages/element/src
- internal/protocol
- www/app/data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
| |||
467 | 466 | | |
468 | 467 | | |
469 | 468 | | |
470 | | - | |
| 469 | + | |
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 83 | | |
90 | 84 | | |
91 | 85 | | |
| |||
Lines changed: 11 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | | - | |
8 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 17 | | |
33 | 18 | | |
34 | 19 | | |
| |||
38 | 23 | | |
39 | 24 | | |
40 | 25 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
0 commit comments