Skip to content
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

refactor!: Use IVariableMap instead of VariableMap #8401

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Jul 19, 2024

The basics

-[x] I validated my changes

The details

Resolves

Fixes #8371, #8079, #8075

Proposed Changes

This PR uses IVariableMap in place of hardcoding VariableMap. It also refactors variable deletion handling; the VariableMap methods getVariableUsesById and deleteVariableById are deprecated and moved to the Variables namespace.

Breaking Change

The VariableMap.deleteVariable method now unconditionally deletes uses of the variable in question as well.

@gonfunko gonfunko requested a review from a team as a code owner July 19, 2024 22:06
@gonfunko gonfunko requested a review from rachel-fenichel July 19, 2024 22:06
@gonfunko gonfunko changed the title refactor! Use IVariableMap instead of VariableMap refactor!: Use IVariableMap instead of VariableMap Jul 19, 2024
@github-actions github-actions bot added breaking change Used to mark a PR or issue that changes our public APIs. PR: refactor labels Jul 19, 2024
@gonfunko gonfunko merged commit 21c0a7d into google:rc/v12.0.0 Jul 22, 2024
7 checks passed
@gonfunko gonfunko deleted the use-ivariable-map branch July 22, 2024 16:18
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