Skip to content

feat: split host api methods to separate out upgrade-script calls #118

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Julusian
Copy link
Member

@Julusian Julusian commented Mar 6, 2025

Preparation for bitfocus/companion#2345

This might want to be released as 2.0.0 instead of 1.12.0, as ideally modules should be making some changes when updating to this api version.

This is written to support expressions, but we could simply not support them for now. Always set isExpression: false, so that values are treated as literals.

Additionally, companion will need to start parsing any variables in feedback options (doing so reactively), to avoid breaking these feedbacks. I think it should be safe enough if we parse variables for any field which has useVariables: true.
Maybe it should also parse for actions, but that could be too aggressive/higher risk of breakage.

TODO: Should CompanionFeedbackContext.parseVariablesInString become a no-op, as this will be always handled by companion now?
Maybe for actions too?

@Julusian Julusian changed the title wip feat: split host api methods to separate out upgrade-script calls Mar 6, 2025
@Julusian Julusian force-pushed the feat/parsing-options-in-companion branch from 3e3c05c to dc5e1bd Compare March 21, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant