Skip to content

fix(other): dedupe @redocly/theme to a single version - #392

Merged
illiaRedoc merged 1 commit into
mainfrom
fix/dedupe-realm-theme
Aug 18, 2026
Merged

fix(other): dedupe @redocly/theme to a single version#392
illiaRedoc merged 1 commit into
mainfrom
fix/dedupe-realm-theme

Conversation

@illiaRedoc

@illiaRedoc illiaRedoc commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

What/Why/How?

Follow-up to #391, fixes the #391 (comment)

Reference

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

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>
@illiaRedoc
illiaRedoc requested a review from a team as a code owner August 18, 2026 10:24

@redocly redocly Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@illiaRedoc
illiaRedoc merged commit 63f9388 into main Aug 18, 2026
7 checks passed
@illiaRedoc
illiaRedoc deleted the fix/dedupe-realm-theme branch August 18, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants