Skip to content

Commit c09116f

Browse files
committed
chore(release): v1.5.0
Also widens core's optional katex peer to ^0.16.0 || ^0.17.0 — the old ^0.16.0 range excluded the 0.17 line the repo itself tests against, giving npm consumers on katex 0.17 spurious ERESOLVE conflicts — and syncs the READMEs' Mantine peer tables to ^9.0.0.
1 parent 5134ffb commit c09116f

7 files changed

Lines changed: 70 additions & 69 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ pnpm add @ai-react-markdown/mantine @ai-react-markdown/core \
8383

8484
### Peer Dependencies
8585

86-
| Peer | Required by | Version |
87-
| ------------------------- | ---------------------------------------------- | ---------- |
88-
| `react` / `react-dom` | both packages | `>=19.0.0` |
89-
| `katex` | `core` (optional — only if you import its CSS) | `^0.16.0` |
90-
| `@mantine/core` | `mantine` | `^8.3.17` |
91-
| `@mantine/code-highlight` | `mantine` | `^8.3.17` |
92-
| `highlight.js` | `mantine` | `^11.11.1` |
86+
| Peer | Required by | Version |
87+
| ------------------------- | ---------------------------------------------- | ---------------------- |
88+
| `react` / `react-dom` | both packages | `>=19.0.0` |
89+
| `katex` | `core` (optional — only if you import its CSS) | `^0.16.0 \|\| ^0.17.0` |
90+
| `@mantine/core` | `mantine` | `^9.0.0` |
91+
| `@mantine/code-highlight` | `mantine` | `^9.0.0` |
92+
| `highlight.js` | `mantine` | `^11.11.1` |
9393

9494
> `katex` is an **optional peer**. It ships transitively via `rehype-katex`, so hoisted installers (npm, yarn classic, default pnpm) resolve `'katex/dist/katex.min.css'` automatically. Strict-isolation installers (yarn PnP, `pnpm --node-linker=isolated`) must install it explicitly. Skip this only if you never render math.
9595
@@ -672,7 +672,7 @@ Issues and pull requests are welcome. For non-trivial changes, please open an is
672672

673673
Reporting a bug helps most when it includes:
674674

675-
- The package and version (`@ai-react-markdown/core@1.4.9` …)
675+
- The package and version (`@ai-react-markdown/core@1.5.0` …)
676676
- The relevant `<AIMarkdown>` / `<MantineAIMarkdown>` props
677677
- A minimal markdown sample that reproduces the issue
678678
- For streaming-related bugs: the chunk sequence (one string per chunk)

docs/release-highlights.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ A distilled, human-readable summary of what's notable in each version — extrac
66
77
---
88

9+
## 1.5.x — Mantine 9
10+
11+
### 1.5.0 — `@ai-react-markdown/mantine` moves to Mantine 9
12+
13+
- `@ai-react-markdown/mantine` now requires `@mantine/core` and `@mantine/code-highlight` `^9.0.0` as peers (tested against 9.4.1). No API changes on our side — the package's surface survives every Mantine 9 breaking change untouched. Consumers inherit Mantine 9's defaults: `md` (8px) default radius, solid light-variant colors (Mantine's `v8CssVariablesResolver` restores the 8.x look), and a React 19.2 floor.
14+
- If you install `@mantine/hooks` yourself, note that `@mantine/core@9` pins its hooks peer to the exact matching version — keep the three `@mantine/*` packages on one version.
15+
- Core is unchanged in behavior. One internal type adaptation for `@types/hast` ≥3.0.5: the aggregated footnote footer's `<li>` numbering is now stored as a string in hast (`value: "3"` instead of `value: 3`) — the rendered DOM is byte-identical.
16+
- Core's optional `katex` peer widens to `^0.16.0 || ^0.17.0`. The range previously excluded 0.17 (a `^0.16.0` range does not match 0.17 under 0.x semver), so npm users on katex 0.17 hit spurious `ERESOLVE` conflicts — even though the library is continuously tested against 0.17.
17+
918
## 1.4.x — Customization surface hardening
1019

1120
The 1.4 line opened up the customization surface (URL sanitization, document namespacing, design tokens) and put guardrails around it so consumers can extend safely.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ai-react-markdown",
3-
"version": "1.4.9",
3+
"version": "1.5.0",
44
"private": true,
55
"type": "module",
66
"description": "A React component for rendering AI-generated Markdown with LaTeX math, GFM, syntax highlighting and more.",

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ai-react-markdown/core",
3-
"version": "1.4.9",
3+
"version": "1.5.0",
44
"description": "Core rendering engine for ai-react-markdown — LaTeX preprocessing, plugin pipeline, and React components.",
55
"publishConfig": {
66
"access": "public"
@@ -61,7 +61,7 @@
6161
"peerDependencies": {
6262
"react": ">=19.0.0",
6363
"react-dom": ">=19.0.0",
64-
"katex": "^0.16.0"
64+
"katex": "^0.16.0 || ^0.17.0"
6565
},
6666
"peerDependenciesMeta": {
6767
"katex": {

packages/mantine/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ yarn add @ai-react-markdown/mantine @ai-react-markdown/core
3636
{
3737
"react": ">=19",
3838
"react-dom": ">=19",
39-
"@ai-react-markdown/core": "^1.4.9",
40-
"@mantine/core": "^8.3.17",
41-
"@mantine/code-highlight": "^8.3.17",
39+
"@ai-react-markdown/core": "^1.5.0",
40+
"@mantine/core": "^9.0.0",
41+
"@mantine/code-highlight": "^9.0.0",
4242
"highlight.js": "^11.11.1"
4343
}
4444
```

packages/mantine/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ai-react-markdown/mantine",
3-
"version": "1.4.9",
3+
"version": "1.5.0",
44
"description": "Mantine UI integration for ai-react-markdown — themed typography, syntax highlighting via @mantine/code-highlight, Mermaid diagrams, and automatic color scheme detection.",
55
"publishConfig": {
66
"access": "public"
@@ -56,7 +56,7 @@
5656
"typecheck": "tsc --noEmit -p tsconfig.json"
5757
},
5858
"peerDependencies": {
59-
"@ai-react-markdown/core": "^1.4.9",
59+
"@ai-react-markdown/core": "^1.5.0",
6060
"@mantine/code-highlight": "^9.0.0",
6161
"@mantine/core": "^9.0.0",
6262
"highlight.js": "^11.11.1",

0 commit comments

Comments
 (0)