-
Notifications
You must be signed in to change notification settings - Fork 575
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
simplify error and cause #2347
simplify error and cause #2347
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.
I have a loose recall that v16.8 is what lambda deploys, so changing this would be detrimental.
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2347 +/- ##
==========================================
- Coverage 85.49% 85.48% -0.02%
==========================================
Files 76 76
Lines 6867 6867
==========================================
- Hits 5871 5870 -1
- Misses 996 997 +1
☔ View full report in Codecov by Sentry. |
@mcollina thanks for your comment. I believe you are referring to AWS Lambda. According to the docs, they support Node.js |
Can we make a test for node 16? |
There is already one for node v16.8 in CI |
If support of v16.8 is important, then those changes are breaking due to |
This relates to #2327. Due to rebase of changes from master to next, the changes looks weird. I decided to create a new clean MR.
Rationale
Since Node v16.9.0,
Error
supportscause
property.Changes
Replace
Object.assign
withnew Error(.., { cause })
.Status