-
Notifications
You must be signed in to change notification settings - Fork 29
Upgrade Next.js to 15, React to 19, and related deps #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| legacy-peer-deps=true | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -20,16 +20,16 @@ | |||||
| "@storybook/icons": "^1.2.9", | ||||||
| "@types/mdx": "^2.0.13", | ||||||
| "copy-to-clipboard": "^3.3.3", | ||||||
| "framer-motion": "^11.2.12", | ||||||
| "framer-motion": "^12", | ||||||
| "graphql-request": "^7.1.0", | ||||||
| "human-format": "^1.2.0", | ||||||
| "next": "^14.2.4", | ||||||
| "next-plausible": "^3.12.0", | ||||||
| "next": "^15", | ||||||
| "next-plausible": "^4.0.0", | ||||||
| "next-themes": "^0.3.0", | ||||||
|
Comment on lines
24
to
28
|
||||||
| "posthog-js": "^1.306.0", | ||||||
| "prismjs": "^1.29.0", | ||||||
| "react": "^18", | ||||||
| "react-dom": "^18", | ||||||
| "react": "^19", | ||||||
| "react-dom": "^19", | ||||||
| "rehype": "^13.0.1", | ||||||
| "rehype-stringify": "^10.0.0", | ||||||
| "rehype-urls": "^1.2.0", | ||||||
|
|
@@ -41,8 +41,8 @@ | |||||
| "devDependencies": { | ||||||
| "@types/node": "^20", | ||||||
| "@types/prismjs": "^1.26.4", | ||||||
| "@types/react": "^18", | ||||||
| "@types/react-dom": "^18", | ||||||
| "@types/react": "^19", | ||||||
| "@types/react-dom": "^19", | ||||||
| "eslint": "^8", | ||||||
| "eslint-config-next": "14.2.4", | ||||||
|
||||||
| "eslint-config-next": "14.2.4", | |
| "eslint-config-next": "^15", |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,7 +40,7 @@ const lineAnimationLength = 1550; | |||||
| const lineAnimationDelay = 500; | ||||||
|
|
||||||
| interface PureUITestsProps { | ||||||
| forwardRef: React.RefObject<HTMLDivElement>; | ||||||
| forwardRef: React.RefObject<HTMLDivElement | null>; | ||||||
| activeIndex: number; | ||||||
| isAnimatingLoop: boolean; | ||||||
| isPaused: boolean | null; | ||||||
|
|
@@ -173,7 +173,7 @@ export const baseWorkflows = [ | |||||
| ]; | ||||||
|
|
||||||
| export function UITests() { | ||||||
| const ref = useRef(null); | ||||||
| const ref = useRef<HTMLDivElement>(null); | ||||||
|
||||||
| const ref = useRef<HTMLDivElement>(null); | |
| const ref = useRef<HTMLDivElement | null>(null); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| import { type DocsVersion } from '@repo/utils'; | ||
|
|
||
| const baseUrl = 'https://storybook.js.org'; | ||
|
|
||
| export const getLlmsBannerLines = ({ version }: { version: DocsVersion }) => [ | ||
| '# Storybook', | ||
| '', | ||
| '> Storybook is a frontend workshop for building UI components and pages in isolation. It helps with UI development, testing, and documentation.', | ||
| '', | ||
| `Current version: ${version.label} (${version.id})`, | ||
| '', | ||
| '## Documentation', | ||
| '', | ||
| `- [Storybook Docs](${baseUrl}/docs): Main documentation`, | ||
| `- [Full Documentation (Markdown)](${baseUrl}/llms-full.txt): Complete documentation in plain text for LLM consumption`, | ||
| '', | ||
| '## Markdown Access', | ||
| '', | ||
| 'Append `.md` to any docs URL to get clean markdown with code examples:', | ||
| `- \`${baseUrl}/docs/writing-stories/decorators.md\``, | ||
| `- \`${baseUrl}/docs/9/writing-stories/decorators.md\` (Version 9)`, | ||
| '', | ||
| '### Query Parameters', | ||
| '', | ||
| 'All markdown endpoints (`.md` URLs and `llms-full.txt`) support these query parameters:', | ||
| '- `renderer` - Framework filter for code snippets (default: `react`). Options: `react`, `vue`, `angular`, `svelte`, `web-components`, `solid`, `preact`, `html`, `ember`, `qwik`', | ||
| '- `language` - Language filter for code snippets (default: `ts`). Options: `ts`, `js`', | ||
| '- `codeOnly` - When `true`, returns only the code snippets without prose', | ||
| '', | ||
| 'Examples:', | ||
| '- `GET /docs/writing-stories/decorators.md?renderer=vue&language=ts`', | ||
| '- `GET /docs/writing-stories/decorators.md?codeOnly=true`', | ||
| '- `GET /llms-full.txt?renderer=angular&language=js`', | ||
| '', | ||
| '### Versioned Access', | ||
| '', | ||
| 'Prefix the path with a version slug for older versions:', | ||
| ]; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> | ||
| /// <reference path="./.next/types/routes.d.ts" /> | ||
|
|
||
| // NOTE: This file should not be edited | ||
| // see https://nextjs.org/docs/basic-features/typescript for more information. | ||
| // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting
legacy-peer-deps=truerepo-wide disables peer dependency resolution errors for all installs, which can mask real version incompatibilities (especially during a major Next/React upgrade) and make runtime issues harder to diagnose. Prefer resolving peer conflicts directly (align@next/*/Storybook versions, use npmoverrides, etc.) or scope this to CI/workarounds with clear justification.