Repository navigation
Generate JavaScript bindings in canonical namespace paths - #109
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e15e0402-1dfa-4d68-b2bb-a33009d1d098
Mixed-language test coverageWorkflow status: ✅ Passed
|
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e15e0402-1dfa-4d68-b2bb-a33009d1d098
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e15e0402-1dfa-4d68-b2bb-a33009d1d098
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e15e0402-1dfa-4d68-b2bb-a33009d1d098
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e15e0402-1dfa-4d68-b2bb-a33009d1d098
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e15e0402-1dfa-4d68-b2bb-a33009d1d098
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e15e0402-1dfa-4d68-b2bb-a33009d1d098
Shawn Yuan (shuaiyuanxx)
approved these changes
Sep 1, 2026
leileizhang (lei9444)
added a commit
that referenced
this pull request
Sep 1, 2026
Resolve the codegen transaction type rename after PR #109 while preserving the Python projection changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7dd76e84-9e06-45b9-a8d1-c09f8a157550
leileizhang (lei9444)
added a commit
that referenced
this pull request
Sep 1, 2026
Keep the semantic-history regression on the schema v1 merged by PR #109. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
leileizhang (lei9444)
added a commit
that referenced
this pull request
Sep 1, 2026
Preserve the resolved PR #109 integration while replacing the merge-based history with one reviewable commit on current main. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
leileizhang (lei9444)
added a commit
that referenced
this pull request
Sep 1, 2026
Preserve the resolved PR #109 integration while replacing the merge-based history with one reviewable commit on current main. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
leileizhang (lei9444)
added a commit
that referenced
this pull request
Sep 1, 2026
* Refactor JavaScript projection planning Unify semantic type identity, pass explicit projection context, and generate roots from a structured module plan. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Test phased JavaScript collision generation Cover retained projected-name changes, root and package rewrites, clean-output byte identity, fail-closed metadata, and idempotent reruns. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Exercise retained JavaScript rename path Generate only the new type in phase two and assert exact retained aliases, root ownership, package targets, byte convergence, and idempotence. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Test retained history semantic equivalence Compare true retained generation with an independent full-current oracle while allowing only documented implementation-history artifacts to differ. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Align inventory schema test with main Keep the semantic-history regression on the schema v1 merged by PR #109. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Preserve COM-first incremental generation Ignore only Classic COM compatibility exports while continuing to validate inventory-backed Com.* WinRT modules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.dynwinrt-js-typesinventory for type identity, ABI validation, deterministic projected names, and persistent module-local compatibility aliasesConsumer impact
Root imports remain supported:
Deep imports now use canonical namespace paths, for example
./generated/windows/foundation/Uri.js. Legacy flat paths such as./generated/Uri.jsare no longer generated. Closed generic names containing named or nested types now include a readable full identity and stable hash; primitive-only generic names remain compact.The output directory is codegen-owned: existing contents may be replaced or removed and handwritten files should not be stored there. Repeated commands may append bindings when they use the same restored metadata version. After changing WinMD files, SDK versions, or reference inputs, delete the output directory and run all generation commands again; cross-version incremental migration is intentionally unsupported.
The WinApp CLI Node WinUI sample was validated with its explicit
IVector_UIElementreference migrated to the generated complete identity. That source migration belongs in the WinApp CLI repository.Validation
cargo fmt --all -- --checkcargo test -p dynwinrt-codegenUriprojection pass