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 one map for toolbox contents. #8654

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

gonfunko
Copy link
Contributor

The basics

The details

Proposed Changes

This PR updates the toolbox to use a single Map for keeping track of its contents, in place of an array and an object keyed by ID. Previously, these two sources of truth needed to be kept in sync, which was error prone, and also minorly memory inefficient. Now, there is a single source of truth. This is a breaking changed because the protected fields contents_ and contentMap_ have been removed and replaced by the single protected field contents.

@gonfunko gonfunko requested a review from a team as a code owner November 11, 2024 20:29
@github-actions github-actions bot added breaking change Used to mark a PR or issue that changes our public APIs. PR: refactor labels Nov 11, 2024
@gonfunko gonfunko merged commit ae2a140 into google:rc/v12.0.0 Nov 12, 2024
11 checks passed
@gonfunko gonfunko deleted the toolbox-map branch November 12, 2024 17:52
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