fix(execution): multi-decorator support with @trace() and handle hidden returned promises#57
Merged
Conversation
Contributor
Coverage report
Show files with reduced coverage 🔻
Test suite run success78 tests passing in 9 suites. Report generated by 🧪jest coverage report action from 9fbf1b5 |
135bf15 to
1392be0
Compare
…dden returned promises - Added support for using multiple decorators, including @trace(). - Fixed issues with hidden returned promises in async functions. - Updated tests to check new features and ensure proper behavior. - Simplified examples for better understanding.⚠️ Compatibility Notice: - The `execute()` function now passes two arguments to the callback instead of one. - The `execute()` function no longer includes the `options` argument and no longer updates the context when bound.
1392be0 to
9fbf1b5
Compare
Contributor
|
🚫 Unpublished versions: ∅
|
Contributor
|
🚫 Unpublished versions: |
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.
PR Summary
Enhancements & Fixes
✅ Added support for multiple decorators, including
@trace(), ensuring they work together seamlessly.✅ Fixed issues with hidden returned promises in async functions, improving execution consistency.
✅ Updated tests to validate new functionality and ensure correctness.
✅ Simplified examples for better readability and ease of understanding.
✅ Refactored the
execute()function to improve clarity and maintainability.Main Fix Example
🔹 The
execute()function now passes two arguments to the callback instead of one.🔹 The
execute()function no longer includes theoptionsargument and does not update the context when bound.✅ Except for these minor changes, this PR maintains full backward compatibility (NO BREAKING CHANGES).
Let me know if you'd like further refinements! 🚀