-
Notifications
You must be signed in to change notification settings - Fork 158
Add support for "use step" functions in class instance methods #777
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: 01-09-add_support_for_custom_class_instance_serialization
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: cae9a83 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🧪 E2E Test Results❌ Some tests failed Summary
❌ Failed Tests🪟 Windows (1 failed)nextjs-turbopack (1 failed):
🌍 Community Worlds (23 failed)mongodb (1 failed):
redis (1 failed):
starter (20 failed):
turso (1 failed):
Details by Category✅ ▲ Vercel Production
✅ 💻 Local Development
✅ 📦 Local Production
✅ 🐘 Local Postgres
❌ 🪟 Windows
❌ 🌍 Community Worlds
❌ Some E2E test jobs failed:
Check the workflow run for details. |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2809f4c to
d9a2fca
Compare
84dfb97 to
90402ec
Compare
96e1c18 to
9daa6c8
Compare
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.
9daa6c8 to
cae9a83
Compare
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.

TL;DR
Added support for "use step" directive in class instance methods, allowing instance methods to be used as workflow steps.
What changed?
ClassName.prototype.methodNamethiscontext across workflow/step boundariesHow to test?
The PR includes a new end-to-end test
instanceMethodStepWorkflowthat demonstrates the functionality:Counterclass with instance methods marked as stepsthiscontextWhy make this change?
This change enables a more natural object-oriented programming model when working with workflows. Previously, only static methods, standalone functions, and object methods could be marked as steps. Now, developers can create classes with instance methods that are steps, allowing for better encapsulation and more intuitive code organization. This is particularly useful for complex workflows that need to maintain state across multiple step invocations.