• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

humanspeak / svelte-json-view-lite / 28787448947
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: perf/23-trim-per-node-signal-count
DEFAULT BRANCH: main
Ran 06 Jul 2026 11:14AM UTC
Jobs 1
Files 10
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Jul 2026 11:13AM UTC coverage: 86.653%. First build
28787448947

push

github

web-flow
perf: trim per-node signal count by merging deriveds (#31)

* test: add per-node signal-budget guardrails (#23)

Source-inspection tests asserting the merged/inlined derived budgets
for JsonPrimitiveValue and ExpandableObject. Currently red — the #23
implementation (merge kind/rendered/activeSnippet; inline childLevel/
hasField/lastIndex) follows in the next commit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* perf: trim per-node signal count by merging deriveds

Every $derived is a reaction object with a deps array, so a large tree
holds one per derived per node. Collapse the redundant ones:

- JsonPrimitiveValue: merge the kind/rendered/activeSnippet trio into a
  single `primitive` derived returning a discriminated union
  { kind, text, valueStyle, snippet }, dropping a leaf row from 5
  reactions to 3. The predicate narrowing also removes the per-branch
  value casts.
- ExpandableObject: inline the trivial scalar deriveds childLevel
  (level + 1), hasField (field !== undefined), and lastIndex
  (count - 1) at their use sites, dropping a container from 10 to 7.

Pure internal refactor: identical rendered output and snippet dispatch.
Turns the signal-budget guardrails green.

Closes #23

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor: tidy PrimitiveRender type and inline hasField

Cleanup pass on the #23 signal-count refactor:

- Extract the shared { text, valueStyle } fields into a base type
  intersected with the discriminated kind/snippet arms, instead of
  restating them on all 9 union members. Preserves the kind-based
  narrowing the template relies on for type-safe snippet dispatch.
- Inline hasField as `field !== undefined` at its single use site, the
  same trimming already applied in ExpandableObject, dropping a leaf
  row to 2 derived reactions.

No behavior change; svelte-check and the full suite stay green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
... (continued)

171 of 225 branches covered (76.0%)

Branch coverage included in aggregate %.

27 of 30 new or added lines in 2 files covered. (90.0%)

238 of 247 relevant lines covered (96.36%)

228.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
68.89
src/lib/JsonPrimitiveValue.svelte
Jobs
ID Job ID Ran Files Coverage
1 node-22 - 28787448947.1 06 Jul 2026 11:14AM UTC 10
86.65
GitHub Action Run
Source Files on build 28787448947
  • Tree
  • List 10
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28787448947
  • 25f2a22d on github
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc