-
-
Notifications
You must be signed in to change notification settings - Fork 263
Fix: Date/BigInt transformers not returning transformed values in array map callbacks #2906
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
base: main
Are you sure you want to change the base?
Conversation
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2906 +/- ##
==========================================
- Coverage 30.89% 30.89% -0.01%
==========================================
Files 488 488
Lines 40458 40464 +6
Branches 2522 2523 +1
==========================================
Hits 12501 12501
- Misses 27922 27928 +6
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Date and BigInt transformers were generating expressions that created transformed objects but failed to return them in array map callbacks, causing runtime type mismatches where TypeScript claimed
Datebut runtime hadstring.Changes
expressions.ts: WrapdateExpressionsandbigIntExpressionsin return statements whendataExpressionis a string (array item context)Before/After
Test Coverage
Added
transformers-array-date-ref.jsonspec covering:array<string format=date-time>)$refto array typesresponseTransformeroptionOriginal prompt
$ref#2902💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.