Skip to content

fix: update fast-element exports#7488

Closed
janechu wants to merge 4 commits intoreleases/fast-element-v3from
users/janechu/update-exports
Closed

fix: update fast-element exports#7488
janechu wants to merge 4 commits intoreleases/fast-element-v3from
users/janechu/update-exports

Conversation

@janechu
Copy link
Copy Markdown
Collaborator

@janechu janechu commented Apr 24, 2026

Pull Request

📖 Description

  • make the root @microsoft/fast-element export FASTElement only and publish the remaining APIs on focused subpaths
  • replace import-time side effects with explicit registerFAST(), registerFASTDebugMessages(), and installPolyfills() hooks
  • move hydratable ViewTemplate support into the template runtime and remove the legacy hydration installer entrypoints
  • migrate internal consumers, docs, generated API pages, and size reports to the new entrypoint structure

🎫 Issues

👩‍💻 Reviewer Notes

  • supersedes the abandoned draft in fix: keep fast-element exports explicit #7485; this version keeps the root barrel limited to FASTElement and removes the hydration installer entrypoints instead of preserving them
  • @microsoft/fast-router now includes a type: none beachball change file so npm run checkchange passes alongside the existing fast-element entries
  • feature work is split into three commits, followed by a merge from releases/fast-element-v3 to bring in fix: remove shared kernel #7487 and clear conflicts

📑 Test Plan

  • npm run build
  • npm run prebuild -w sites/website
  • npm run test
  • npm run biome:check
  • npm run checkchange

✅ 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 4 commits April 23, 2026 18:18
Replace side-effect installers with explicit registration, add kernel types, and move hydration support into the template runtime.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move non-FASTElement imports onto explicit fast-element subpaths across router, examples, benchmarks, and declarative fixtures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update package docs, website content, generated API pages, and size reports to match the new fast-element entrypoint structure.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Re-apply the small set of export-surface and change-file differences that were lost when the branch was rebased onto releases/fast-element-v3.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@janechu janechu force-pushed the users/janechu/update-exports branch from ca1b4c5 to 293e972 Compare April 24, 2026 01:24
@janechu
Copy link
Copy Markdown
Collaborator Author

janechu commented Apr 24, 2026

Too many changes, unclear on the resolution of side effects and dead code.

@janechu janechu closed this Apr 24, 2026
@janechu janechu deleted the users/janechu/update-exports branch April 24, 2026 03:16
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