Skip to content

refactor!: Deprecate Block.getVars()#9574

Merged
gonfunko merged 3 commits intov13from
getvars
Jan 20, 2026
Merged

refactor!: Deprecate Block.getVars()#9574
gonfunko merged 3 commits intov13from
getvars

Conversation

@gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #1498

Proposed Changes

This PR deprecates Block.getVars() in favor of Block.getVarModels(), and removes @internal from the latter. This method is more flexible as it returns the entire variable model objects rather than just their IDs (or, in the case of procedure blocks, their names). renameVar mentioned in the bug was removed long ago.

Breaking Changes

If you are calling Block.getVars(), you should call Block.getVarModels() instead. To get just the IDs, Block.getVarModels().map(model => model.getId()) should be identical to the old behavior.

@gonfunko gonfunko requested a review from a team as a code owner January 15, 2026 21:46
@gonfunko gonfunko requested review from maribethb and removed request for a team January 15, 2026 21:46
@github-actions github-actions bot added breaking change Used to mark a PR or issue that changes our public APIs. PR: refactor labels Jan 15, 2026
@gonfunko gonfunko merged commit 4c79ea1 into v13 Jan 20, 2026
7 of 8 checks passed
@gonfunko gonfunko deleted the getvars branch January 20, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Used to mark a PR or issue that changes our public APIs. PR: refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants