-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Stop abusing Composer architecture #1
Comments
BREAKING CHANGES: - Scene doesn't extend Composer anymore - remove monkey patches - add Composer2 and StepComposer with special methods - remove undocumented SceneManager methods (wait, mustResume) - prefix private props/methods with _
BREAKING CHANGES: - Scene doesn't extend Composer anymore - remove monkey patches - add Composer2 and StepComposer with special methods - remove undocumented SceneManager methods (wait, mustResume) - prefix private props/methods with _
After playing around I went with a bit less radical approach. I cleaned the internals and stopped relying on composer internals. However, the API is almost the same and in most cases no changes to user code will be required. The scene still has The unnumbered steps problem was not addressed in this release, it will be covered separately. |
Oops! Seems like semantic release didn't recognize the breaking changes. |
BREAKING CHANGE: - Scene doesn't extend Composer anymore - remove monkey patches - add Composer2 and StepComposer with special methods - remove undocumented SceneManager methods (wait, mustResume) - prefix private props/methods with _
Released in v8.0.0. |
So far I've been using grammy-scenes with 2 bots, ~15 scenes, and ~100 "steps", and I wanted to share my observations.
What I like:
scene.call
/ctx.scene.call
(goto, exit, etc.) counterparts, where the former is simply a shortcut for the latter.What I don't like:
.use()
)..always()
feels counter-intuitive.So I'm thinking on blending the two approaches, the one that I've used initially with the current one. I'm thinking like this:
The text was updated successfully, but these errors were encountered: