Skip to content

feat: add wrap decorator#5

Merged
LeoVS09 merged 10 commits intomasterfrom
feature/vg/add-wrap-decorator
Apr 9, 2026
Merged

feat: add wrap decorator#5
LeoVS09 merged 10 commits intomasterfrom
feature/vg/add-wrap-decorator

Conversation

@LeoVS09
Copy link
Copy Markdown
Contributor

@LeoVS09 LeoVS09 commented Apr 9, 2026

BREAKING CHANGE: removed @EffectOnClass and @EffectOnMethod decorators

LeoVS09 and others added 10 commits April 8, 2026 22:00
Introduces the Wrap decorator as the foundational primitive for method/class wrapping,
providing full control over execution flow. Effect is now built on top of Wrap.

- Add Wrap decorator with WrapContext for method/class decoration
- Implement WrapOnMethod and WrapOnClass for wrapping logic
- Refactor Effect to use Wrap internally, maintaining API compatibility
- Add comprehensive test coverage for Wrap patterns
- Update exports and documentation with Wrap usage examples

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
BREAKING CHANGE: removed effect-on-class and effect-on-method
Copy link
Copy Markdown
Contributor Author

@LeoVS09 LeoVS09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LeoVS09 LeoVS09 merged commit 511ef82 into master Apr 9, 2026
1 check passed
@LeoVS09
Copy link
Copy Markdown
Contributor Author

LeoVS09 commented Apr 9, 2026

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants