From 187a6332708ee5a9254d56fc0ca4230d3661478c Mon Sep 17 00:00:00 2001 From: Illia Date: Tue, 18 Aug 2026 13:23:37 +0300 Subject: [PATCH] fix(other): dedupe @redocly/theme to a single version 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) --- package-lock.json | 127 ++-------------------------------------------- package.json | 3 +- 2 files changed, 6 insertions(+), 124 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8701fd8e1..7b28cf821 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2193,45 +2193,6 @@ "styled-components": "^6.4.2" } }, - "node_modules/@redocly/api-docs/node_modules/@redocly/theme": { - "version": "0.69.0-next.1", - "resolved": "https://registry.npmjs.org/@redocly/theme/-/theme-0.69.0-next.1.tgz", - "integrity": "sha512-UONtFqLzgvOT3sj9VieK31UmyRVBeu/5UgtHK1tundfW8BMVW+m/mT+1dgqVytCokHSng+ICXzVlA50+j5xAIQ==", - "license": "MIT", - "dependencies": { - "@redocly/config": "0.53.1", - "@tanstack/react-query": "5.62.3", - "@tanstack/react-virtual": "3.13.0", - "@xyflow/react": "^12.8.2", - "copy-to-clipboard": "3.3.3", - "file-saver": "2.0.5", - "highlight-words-core": "1.2.2", - "hotkeys-js": "3.10.1", - "i18next": "22.4.15", - "jszip": "3.10.1", - "lodash.debounce": "^4.0.8", - "lodash.throttle": "4.1.1", - "nprogress": "0.2.0", - "openapi-sampler": "^1.7.2", - "react-calendar": "5.1.0", - "react-date-picker": "11.0.0" - }, - "peerDependencies": { - "@markdoc/markdoc": "0.5.2", - "lodash.debounce": "^4.0.8", - "lodash.throttle": "^4.1.1", - "react": "^19.2.7", - "react-dom": "^19.2.7", - "react-router": "^8.3.0", - "styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0" - } - }, - "node_modules/@redocly/api-docs/node_modules/highlight-words-core": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.2.tgz", - "integrity": "sha512-BXUKIkUuh6cmmxzi5OIbUJxrG8OAk2MqoL1DtO3Wo9D2faJg2ph5ntyuQeLqaHJmzER6H5tllCDA9ZnNe9BVGg==", - "license": "MIT" - }, "node_modules/@redocly/asyncapi-docs": { "version": "1.14.0-next.1", "resolved": "https://registry.npmjs.org/@redocly/asyncapi-docs/-/asyncapi-docs-1.14.0-next.1.tgz", @@ -2253,45 +2214,6 @@ "react": "^19.2.7" } }, - "node_modules/@redocly/asyncapi-docs/node_modules/@redocly/theme": { - "version": "0.69.0-next.1", - "resolved": "https://registry.npmjs.org/@redocly/theme/-/theme-0.69.0-next.1.tgz", - "integrity": "sha512-UONtFqLzgvOT3sj9VieK31UmyRVBeu/5UgtHK1tundfW8BMVW+m/mT+1dgqVytCokHSng+ICXzVlA50+j5xAIQ==", - "license": "MIT", - "dependencies": { - "@redocly/config": "0.53.1", - "@tanstack/react-query": "5.62.3", - "@tanstack/react-virtual": "3.13.0", - "@xyflow/react": "^12.8.2", - "copy-to-clipboard": "3.3.3", - "file-saver": "2.0.5", - "highlight-words-core": "1.2.2", - "hotkeys-js": "3.10.1", - "i18next": "22.4.15", - "jszip": "3.10.1", - "lodash.debounce": "^4.0.8", - "lodash.throttle": "4.1.1", - "nprogress": "0.2.0", - "openapi-sampler": "^1.7.2", - "react-calendar": "5.1.0", - "react-date-picker": "11.0.0" - }, - "peerDependencies": { - "@markdoc/markdoc": "0.5.2", - "lodash.debounce": "^4.0.8", - "lodash.throttle": "^4.1.1", - "react": "^19.2.7", - "react-dom": "^19.2.7", - "react-router": "^8.3.0", - "styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0" - } - }, - "node_modules/@redocly/asyncapi-docs/node_modules/highlight-words-core": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.2.tgz", - "integrity": "sha512-BXUKIkUuh6cmmxzi5OIbUJxrG8OAk2MqoL1DtO3Wo9D2faJg2ph5ntyuQeLqaHJmzER6H5tllCDA9ZnNe9BVGg==", - "license": "MIT" - }, "node_modules/@redocly/config": { "version": "0.53.1", "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.53.1.tgz", @@ -2745,51 +2667,12 @@ "styled-components": "^5.3.11 || ^6.0.0" } }, - "node_modules/@redocly/realm/node_modules/@redocly/theme": { - "version": "0.69.0-next.1", - "resolved": "https://registry.npmjs.org/@redocly/theme/-/theme-0.69.0-next.1.tgz", - "integrity": "sha512-UONtFqLzgvOT3sj9VieK31UmyRVBeu/5UgtHK1tundfW8BMVW+m/mT+1dgqVytCokHSng+ICXzVlA50+j5xAIQ==", - "license": "MIT", - "dependencies": { - "@redocly/config": "0.53.1", - "@tanstack/react-query": "5.62.3", - "@tanstack/react-virtual": "3.13.0", - "@xyflow/react": "^12.8.2", - "copy-to-clipboard": "3.3.3", - "file-saver": "2.0.5", - "highlight-words-core": "1.2.2", - "hotkeys-js": "3.10.1", - "i18next": "22.4.15", - "jszip": "3.10.1", - "lodash.debounce": "^4.0.8", - "lodash.throttle": "4.1.1", - "nprogress": "0.2.0", - "openapi-sampler": "^1.7.2", - "react-calendar": "5.1.0", - "react-date-picker": "11.0.0" - }, - "peerDependencies": { - "@markdoc/markdoc": "0.5.2", - "lodash.debounce": "^4.0.8", - "lodash.throttle": "^4.1.1", - "react": "^19.2.7", - "react-dom": "^19.2.7", - "react-router": "^8.3.0", - "styled-components": "^4.1.1 || ^5.3.11 || ^6.0.0" - } - }, "node_modules/@redocly/realm/node_modules/colorette": { "version": "2.0.20", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "license": "MIT" }, - "node_modules/@redocly/realm/node_modules/highlight-words-core": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.2.tgz", - "integrity": "sha512-BXUKIkUuh6cmmxzi5OIbUJxrG8OAk2MqoL1DtO3Wo9D2faJg2ph5ntyuQeLqaHJmzER6H5tllCDA9ZnNe9BVGg==", - "license": "MIT" - }, "node_modules/@redocly/realm/node_modules/marked": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", @@ -2821,11 +2704,10 @@ "license": "MIT" }, "node_modules/@redocly/theme": { - "version": "0.69.0-next.0", - "resolved": "https://registry.npmjs.org/@redocly/theme/-/theme-0.69.0-next.0.tgz", - "integrity": "sha512-WoaOX3dEyxklBCONcoYbjqZmg4QMUTZm0TMXAKRFVyJK1dkvoGp/m8ETj0GqZdSE9XK5npWEWZBMvp84BXL8aw==", + "version": "0.69.0-next.1", + "resolved": "https://registry.npmjs.org/@redocly/theme/-/theme-0.69.0-next.1.tgz", + "integrity": "sha512-UONtFqLzgvOT3sj9VieK31UmyRVBeu/5UgtHK1tundfW8BMVW+m/mT+1dgqVytCokHSng+ICXzVlA50+j5xAIQ==", "license": "MIT", - "peer": true, "dependencies": { "@redocly/config": "0.53.1", "@tanstack/react-query": "5.62.3", @@ -2858,8 +2740,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.2.tgz", "integrity": "sha512-BXUKIkUuh6cmmxzi5OIbUJxrG8OAk2MqoL1DtO3Wo9D2faJg2ph5ntyuQeLqaHJmzER6H5tllCDA9ZnNe9BVGg==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@redocly/yaml-language-server-parser": { "version": "0.3.0", diff --git a/package.json b/package.json index 36bbd018e..ed787a200 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "js-cookie@<3.0.7": "3.0.7", "markdown-it@<14.2.0": "14.3.0", "dompurify@<3.4.13": "3.4.13", - "@redocly/realm": "0.137.0-next.1" + "@redocly/realm": "0.137.0-next.1", + "@redocly/theme": "0.69.0-next.1" } }