fix: ensure mdx pages can be displayed by storybook by tbouffard · Pull Request #814 · maxGraph/maxGraph · GitHub
Skip to content

fix: ensure mdx pages can be displayed by storybook#814

Merged
tbouffard merged 2 commits into
mainfrom
fix/747-story_mdx_work
May 6, 2025
Merged

fix: ensure mdx pages can be displayed by storybook#814
tbouffard merged 2 commits into
mainfrom
fix/747-story_mdx_work

Conversation

@tbouffard

@tbouffard tbouffard commented May 6, 2025

Copy link
Copy Markdown
Member

Rollback react to 19.0 in website. This introduced global side effects on stories.
Also change the version of other dependencies that previously depended on react 19.1.
For example, this includes algolia and docsearch packages

Configure dependabot to prevent from bumping react in the future and reintroducing the past issue.

Notes

Closes #747

Summary by CodeRabbit

  • Chores
    • Updated dependency settings to ignore automatic updates for React and React DOM.
    • Adjusted React and React DOM version constraints to restrict updates to the 19.0.x series.

Rollback react to 19.0 in website. This introduced global side effects on stories.
Also change the version of other dependencies that previously depended on react 19.1.
For example, this includes algolia and docsearch packages

Configure dependabot to prevent from bumping react in the future and reintroducing the past issue.
@tbouffard tbouffard added the bug Something isn't working label May 6, 2025
@coderabbitai

coderabbitai Bot commented May 6, 2025

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
packages/website/package.json (1)

22-23: Semver range still allows unintended React updates
The caret range ^19.0.0 will accept all React v19.x releases (including 19.1.x), which undermines the rollback intent. If you need to strictly pin to v19.0.x, consider using a tilde range (~19.0.0) or an exact version ("react": "19.0.0").

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e17a50d and 55a073e.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • .github/dependabot.yml (1 hunks)
  • packages/website/package.json (1 hunks)
🔇 Additional comments (1)
.github/dependabot.yml (1)

27-30: Lock React updates via Dependabot ignore
These ignore rules for react and react-dom correctly prevent Dependabot from upgrading beyond v19.x, preserving Storybook 7.x compatibility.

@sonarqubecloud

sonarqubecloud Bot commented May 6, 2025

Copy link
Copy Markdown

@tbouffard tbouffard merged commit 399d874 into main May 6, 2025
@tbouffard tbouffard deleted the fix/747-story_mdx_work branch May 6, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Errors displayed when accessing to the Introduction of the storybook demo

1 participant