fix(svelte): preserve scoped reads in keyed each blocks (0.2.4) #489

Merged
buildagent merged 1 commit from fix/svelte-keyed-template-reads into master 2026-11-04 20:43:01 +01:00
Member

Simple keyed Svelte loops such as {#each items as item (item.id)}{item}{message}{/each} discarded their body reads because the header's key was treated as an unknown binding. Recognize only a bounded simple binding list followed by a parenthesized identifier/path key. Evaluate the key under the loop's lexical scope, preserve outer bindings in else branches, and keep compound keys, calls and destructuring explicitly unsupported.

Refs #434. Svelte 0.2.4 changes only this package, its recorded bytes/catalog row and its own tests. Resolver authority, ABI, host code, other language packages and CI deadlines are unchanged.

Validation:

  • Corrected exhaustive fixture fails against the previous extractor and passes against the candidate; eight shipped fixtures pass conformance.
  • 21 package-suite tests pass (one existing diagnostic test ignored), including reproducible guest bytes, ordinary/durable/reopen controls, lexical decoys, unsupported syntax and an oversized-key bound.
  • Ten signed-package cases pass through published v0.41.34 over snapshot and daemon MCP, including exact own-file references, diagnostics, live edits/deletion and restart with the embedded producers configured.
  • Guest formatting, Clippy, rustdoc, workspace formatting and 82 release-contract checks pass.
  • CI classifier selects only Svelte; every host group is false.

A separate startup progress-state failure was preserved during a restart that automatically adopted another producer. It is outside this package repair and is not claimed fixed here.

Simple keyed Svelte loops such as `{#each items as item (item.id)}{item}{message}{/each}` discarded their body reads because the header's key was treated as an unknown binding. Recognize only a bounded simple binding list followed by a parenthesized identifier/path key. Evaluate the key under the loop's lexical scope, preserve outer bindings in else branches, and keep compound keys, calls and destructuring explicitly unsupported. Refs #434. Svelte 0.2.4 changes only this package, its recorded bytes/catalog row and its own tests. Resolver authority, ABI, host code, other language packages and CI deadlines are unchanged. Validation: - Corrected exhaustive fixture fails against the previous extractor and passes against the candidate; eight shipped fixtures pass conformance. - 21 package-suite tests pass (one existing diagnostic test ignored), including reproducible guest bytes, ordinary/durable/reopen controls, lexical decoys, unsupported syntax and an oversized-key bound. - Ten signed-package cases pass through published v0.41.34 over snapshot and daemon MCP, including exact own-file references, diagnostics, live edits/deletion and restart with the embedded producers configured. - Guest formatting, Clippy, rustdoc, workspace formatting and 82 release-contract checks pass. - CI classifier selects only Svelte; every host group is false. A separate startup progress-state failure was preserved during a restart that automatically adopted another producer. It is outside this package repair and is not claimed fixed here.
fix(svelte): preserve scoped reads in simple keyed each blocks
All checks were successful
CI / OSS corpus (tier 1) (pull_request) Has been skipped
CI / OSS corpus tier-3 scale (nightly) (pull_request) Has been skipped
CI / Grammar rebuild from source (nightly) (pull_request) Has been skipped
CI / cargo test (pull_request) Has been skipped
CI / cargo test (daemon transport) (pull_request) Has been skipped
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
Package CI / package suites (clippy) (pull_request) Successful in 1m47s
Package CI / package (csharp) (pull_request) Successful in 2s
Package CI / package (javascript) (pull_request) Successful in 2s
Package CI / package (rust) (pull_request) Successful in 1s
Package CI / package (ruby) (pull_request) Successful in 2s
Package CI / package (python) (pull_request) Successful in 2s
Package CI / package (php) (pull_request) Successful in 4s
Package CI / package (xaml) (pull_request) Successful in 3s
Package CI / package (timeline) (pull_request) Successful in 2s
Package CI / package (vue) (pull_request) Successful in 4s
Package CI / package (typescript) (pull_request) Successful in 3s
Package CI / package-corpus (javascript) (pull_request) Successful in 5s
Package CI / package-corpus (csharp) (pull_request) Successful in 5s
Package CI / package-corpus (ruby) (pull_request) Successful in 4s
Package CI / package-corpus (rust) (pull_request) Successful in 5s
Package CI / package-corpus (php) (pull_request) Successful in 5s
Package CI / package-corpus (python) (pull_request) Successful in 5s
Package CI / package-corpus (vue) (pull_request) Successful in 3s
Package CI / package-corpus (xaml) (pull_request) Successful in 4s
Package CI / package-corpus (typescript) (pull_request) Successful in 4s
Package CI / package-corpus (timeline) (pull_request) Successful in 5s
Package CI / package-corpus (svelte) (pull_request) Successful in 11s
Package CI / package (svelte) (pull_request) Successful in 2m32s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
fd19c6e500
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index!489
No description provided.