feat: rename the Mcu component to Mtb, deprecate Mcu - #166
Merged
Conversation
… alias Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014ftmSFU2FTtvo5JSzXvXSn
This was referenced Aug 3, 2026
abernier
added a commit
that referenced
this pull request
Aug 5, 2026
The `Mcu` → `Mtb` rename (#166, #169) covered the component, the hook and the config type, but left the shape of the value `useMtb()` returns untouched: it still handed back `mcuConfig`, `setMcuConfig` and `getMcuColor`. They are now `mtbConfig`, `setMtbConfig` and `getMtbColor`. The `mcu*` keys stay on the context value as `@deprecated` aliases holding the very same references, so existing destructuring keeps working until the next major. The `id` of the injected `<style>` tag stays `mcu-styles` — it is observable from user CSS and scripts, so renaming it would break selectors silently. Only the local binding follows the rename. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dap13K3ck1Xjt5m5i7VNAu
abernier
added a commit
that referenced
this pull request
Aug 5, 2026
The `Mcu` → `Mtb` rename (#166, #169) covered the component, the hook and the config type, but left the shape of the value `useMtb()` returns untouched: it still handed back `mcuConfig`, `setMcuConfig` and `getMcuColor`. They are now `mtbConfig`, `setMtbConfig` and `getMtbColor`. The `mcu*` keys stay on the context value as `@deprecated` aliases holding the very same references, so existing destructuring keeps working until the next major. The `id` of the injected `<style>` tag stays `mcu-styles` — it is observable from user CSS and scripts, so renaming it would break selectors silently. Only the local binding follows the rename. Claude-Session: https://claude.ai/code/session_01Dap13K3ck1Xjt5m5i7VNAu Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The React root component is now
Mtb(after the package name, material-theme-builder).Mcukeeps working as a deprecated alias ofMtb— same component, same props — flagged@deprecatedso editors strike it through; it will be removed in the next major.src/Mcu.tsx→src/Mtb.tsx(stories, helpers and tests renamed along)material-theme-builder/reactnow exports bothMtband the deprecatedMcuuseMcu/McuConfig/McuProviderare untouched (out of scope here)🤖 Generated with Claude Code
https://claude.ai/code/session_014ftmSFU2FTtvo5JSzXvXSn