feat: add await expression support#157
Conversation
Add `builders.awaitExpression()` and corresponding proxy/type definitions to allow programmatic creation and parsing of `await` expressions. Closes unjs#114
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR adds complete support for JavaScript ChangesAwait Expression Feature
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
LGTM |
Add
builders.awaitExpression()and corresponding proxy/type definitions to allow programmatic creation and parsing ofawaitexpressions.Resolves #114
Changes
src/proxy/await-expression.ts— proxifier forAwaitExpressionAST nodesbuilders.awaitExpression(argument)insrc/builders.tsProxifiedAwaitExpressiontype and include it inProxifiedValueunionAwaitExpressioncase inproxify()routerSummary by CodeRabbit
Release Notes
New Features
awaitexpressions programmatically through an enhanced builder API, enabling more flexible and intuitive handling of complex asynchronous code patterns in both generated code and existing modules.Tests
awaitexpression functionality across multiple async scenarios, patterns, and common real-world use cases.