-
Notifications
You must be signed in to change notification settings - Fork 9
Fix/hierarchical params followups #2014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issue found across 20 files
Prompt for AI agents (all 1 issues)
Understand the root cause of the following 1 issues and fix them.
<file name="packages/ts-transformers/src/closures/transformer.ts">
<violation number="1" location="packages/ts-transformers/src/closures/transformer.ts:632">
When computed aliases exist, the callback parameter now loses any other destructured bindings (e.g., `{ foo }`), so those locals disappear after transformation. Please keep the original bindings alongside the alias handling.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
| ); | ||
|
|
||
| return { | ||
| bindingName: elementIdentifier, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When computed aliases exist, the callback parameter now loses any other destructured bindings (e.g., { foo }), so those locals disappear after transformation. Please keep the original bindings alongside the alias handling.
Prompt for AI agents
Address the following comment on packages/ts-transformers/src/closures/transformer.ts at line 632:
<comment>When computed aliases exist, the callback parameter now loses any other destructured bindings (e.g., `{ foo }`), so those locals disappear after transformation. Please keep the original bindings alongside the alias handling.</comment>
<file context>
@@ -461,6 +466,331 @@ function normalizeBindingName(
+ );
+
+ return {
+ bindingName: elementIdentifier,
+ elementIdentifier,
+ computedAliases: aliasBucket,
</file context>
c9bc84a to
bd012a7
Compare
ee8b951 to
c3afc48
Compare
b6c65dc to
0a451ca
Compare
Map closures – reuse shared helpers for computed aliases and restore stable derive inputs; update fixtures to reflect hierarchical params without runtime regressions.
Summary by cubic
Fixes hierarchical params and computed alias handling in map closures, and makes derive inputs stable by always passing object captures. Updates fixtures to match the consistent codegen and avoids runtime regressions.
Bug Fixes
Refactors
Written for commit 0a451ca. Summary will update automatically on new commits.