fix(other): dedupe @redocly/theme to a single version - #392
Merged
Conversation
marketing-pages@0.2.27 declares an exact peer on @redocly/theme 0.69.0-next.0, while realm 0.137.0-next.1 hard-depends on 0.69.0-next.1. npm satisfied both by hoisting next.0 to the root and nesting next.1 under realm, api-docs, and asyncapi-docs, leaving two copies of the theme in the tree and risking duplicate React context and styled-components instances at runtime. Add a @redocly/theme override pinned to 0.69.0-next.1 (the version realm 0.137.0-next.1 requires) so the whole tree resolves to one copy. Realm cannot be downgraded to 0.137.0-next.0 instead: the accordion and accordion-group Markdoc tags that motivated the bump were only added in 0.137.0-next.1. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
marketing-site AI Review: 🟢 Completed
Note
Low Risk
Resolving the dual-versioning of @redocly/theme mitigates the risk of runtime errors caused by duplicate React contexts and styled-components instances, and involves no direct application logic changes.
Overview
Adds an npm override in package.json to enforce a single version of @redocly/theme (0.69.0-next.1) across the dependency tree. The package-lock.json file is subsequently updated to remove nested duplicate copies of the theme and its sub-dependencies, fixing an unresolved issue from a previous PR.
Daryna-del
approved these changes
Aug 18, 2026
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.
What/Why/How?
Follow-up to #391, fixes the #391 (comment)
Reference
Check yourself
Security