Skip to content

chore: update deps pt 2#381

Merged
hkonsti merged 2 commits into
mainfrom
hkonsti/update-dependencies-pt-2
Jul 2, 2026
Merged

chore: update deps pt 2#381
hkonsti merged 2 commits into
mainfrom
hkonsti/update-dependencies-pt-2

Conversation

@hkonsti

@hkonsti hkonsti commented Jul 1, 2026

Copy link
Copy Markdown
Member

No description provided.

@hkonsti hkonsti force-pushed the hkonsti/update-dependencies-pt-2 branch 4 times, most recently from 701b80b to 38459a1 Compare July 2, 2026 18:43
@hkonsti hkonsti force-pushed the hkonsti/update-dependencies-pt-2 branch from 38459a1 to 1b9a7cd Compare July 2, 2026 18:45
@hkonsti hkonsti merged commit 4c4cafb into main Jul 2, 2026
6 checks passed
@hkonsti hkonsti deleted the hkonsti/update-dependencies-pt-2 branch July 2, 2026 18:52
hkonsti added a commit that referenced this pull request Jul 2, 2026
The monorepo dep bump (#381) moved the repo to React 19, @types/react 19,
and TypeScript 6.0. The docs were pinned to React 18 because nextra 4.2.13
depends on a React-18-only mermaid plugin (@theguild/remark-mermaid@0.2.0),
which left them failing to build under the bumped root types (a Slot type
skew across the @types/react 18/19 boundary) and TS 6.0.

Bring the docs onto React 19 so they match the rest of the monorepo:

- Bump nextra + nextra-theme-docs to 4.6.1 (its @theguild/remark-mermaid
  ^0.3.0 supports React 19) and move the docs app to react/@types/react 19.
- global.d.ts: declare `*.css` so TS 6.0 accepts the `import "./globals.css"`
  side-effect import (Next only declares `*.module.css`).
- next.config: transpilePackages @theguild/remark-mermaid. It is ESM-only and
  nextra only aliases `@theguild/remark-mermaid/mermaid` for Turbopack, so the
  webpack production server bundle would fail to require it at runtime.
- Pin zod to 4.3.6 via a root override. zod 4.4.3 made z.custom() object keys
  error when the key is absent, which breaks nextra-theme-docs' LayoutPropsSchema
  (its Layout strips `children` before validating the schema, which lists
  `children`). chromium-bidi is scoped back to zod ^3 so the E2E toolchain is
  untouched.

Docs build passes (555 static pages); npm ci is consistent on Node 20 and 22.
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.

1 participant