Skip to content

chore(fast-html): use @microsoft/fast-build to build dot-syntax fixture#7386

Merged
janechu merged 2 commits intomainfrom
users/janechu/update-fixture-to-use-fast-build-dot-syntax
Apr 8, 2026
Merged

chore(fast-html): use @microsoft/fast-build to build dot-syntax fixture#7386
janechu merged 2 commits intomainfrom
users/janechu/update-fixture-to-use-fast-build-dot-syntax

Conversation

@janechu
Copy link
Copy Markdown
Collaborator

@janechu janechu commented Apr 4, 2026

Pull Request

📖 Description

Adds the dot-syntax test fixture to @microsoft/fast-html and generates its index.html using @microsoft/fast-build, consistent with the other fixtures (attribute, binding, event, ref, slotted, when, repeat, repeat-event, children, host-bindings, lifecycle-callbacks).

The dot-syntax fixture covers deep object property access in FAST template bindings (e.g. {{object.b}}, {{object.a.b2.c}}). It verifies that @microsoft/fast-build correctly resolves nested dot-notation expressions from the root JSON state during SSR, and that FAST hydration properly reconnects those bindings for reactive updates.

The entry element in entry.html has no binding attributes — root JSON state is passed implicitly by @microsoft/fast-build. The object key in state.json is a non-primitive; the SSR uses it for template resolution without emitting it as an HTML attribute.

🎫 Issues

No open issues directly addressed.

📑 Test Plan

  • npm run build:fixtures in packages/fast-html runs cleanly and regenerates dot-syntax/index.html — shadow DOM correctly renders nested object values (bar, FOO, etc.) from root state with no object attribute on the entry element.
  • All other fixture outputs are unchanged.

✅ Checklist

General

  • I have included a change request file using $ npm run change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

janechu and others added 2 commits April 8, 2026 09:19
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… attr

Rebase onto main (includes all previous fixtures up to lifecycle-callbacks).
Resolved build-fixtures.js conflict by appending 'dot-syntax' to the
full fixture list.

Remove object="{{object}}" from entry.html — root JSON state is passed
implicitly by @microsoft/fast-build. The 'object' key in state.json
is a non-primitive; the SSR strips it from the HTML attr anyway and
uses it only for template state resolution.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@janechu janechu force-pushed the users/janechu/update-fixture-to-use-fast-build-dot-syntax branch from d33e73e to 380d1e9 Compare April 8, 2026 16:19
@janechu janechu marked this pull request as ready for review April 8, 2026 16:24
@janechu janechu merged commit dc1ca1e into main Apr 8, 2026
14 checks passed
@janechu janechu deleted the users/janechu/update-fixture-to-use-fast-build-dot-syntax branch April 8, 2026 16:33
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