Skip to content

Commit 5134ffb

Browse files
committed
feat(mantine)!: upgrade to Mantine 9
Bumps @mantine/core and @mantine/code-highlight peers from ^8.3.17 to ^9.0.0 (dev-tested against 9.4.1) and declares @mantine/hooks explicitly — core@9 pins its hooks peer exactly, and the previously auto-installed 8.3.17 could no longer satisfy it. Zero code changes required: the package's API surface (Typography, MantineProvider, useComputedColorScheme, ActionIcon/CopyButton/Flex/ Tooltip, CodeHighlight adapter family) survives every 9.0 breaking change — the source already used the Typography name, no removed props or split hooks are referenced, and the SCSS only overrides CSS variables v9 retains. Consumers inherit v9's visual defaults (radius md, solid light-variant colors) and its React 19.2 floor. Verified: SSR smoke suite, full preflight, and a live storybook pass (CodeHighlightTabs with collapse/copy, JSON deep-parse, mermaid with ActionIcons, KaTeX, tables — zero console errors). BREAKING CHANGE: peer dependencies now require @mantine/core ^9.0.0 and @mantine/code-highlight ^9.0.0 (which require react >=19.2).
1 parent edcb14f commit 5134ffb

2 files changed

Lines changed: 33 additions & 103 deletions

File tree

packages/mantine/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
},
5858
"peerDependencies": {
5959
"@ai-react-markdown/core": "^1.4.9",
60-
"@mantine/code-highlight": "^8.3.17",
61-
"@mantine/core": "^8.3.17",
60+
"@mantine/code-highlight": "^9.0.0",
61+
"@mantine/core": "^9.0.0",
6262
"highlight.js": "^11.11.1",
6363
"react": ">=19",
6464
"react-dom": ">=19"
@@ -69,8 +69,9 @@
6969
},
7070
"devDependencies": {
7171
"@ai-react-markdown/core": "workspace:*",
72-
"@mantine/code-highlight": "^8.3.18",
73-
"@mantine/core": "^8.3.18",
72+
"@mantine/code-highlight": "^9.4.1",
73+
"@mantine/core": "^9.4.1",
74+
"@mantine/hooks": "^9.4.1",
7475
"@types/lodash-es": "^4.17.12",
7576
"@types/node": "^25.9.5",
7677
"autoprefixer": "^10.5.2",

pnpm-lock.yaml

Lines changed: 28 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)