From e9cf081d0d8985435ee6c03da8d966c625079979 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Mon, 31 Mar 2025 09:08:38 +0200 Subject: [PATCH] Documentation: Update migration documentation and dependency versions: require Next.js 14.1 and Angular 18.0. Adjusted support messages accordingly. --- MIGRATION.md | 4 ++-- .../src/autoblock/block-dependencies-versions.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index 6c5a9382ac2..ec321255c87 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -861,9 +861,9 @@ export default { #### Next.js = Require v14 and up -Storybook has dropped support for Next.js versions below 14. The minimum supported version is now Next.js 14. +Storybook has dropped support for Next.js versions below 14.1. The minimum supported version is now Next.js 14.1. -If you're using an older version of Next.js, you'll need to upgrade to Next.js 14 or newer to use the latest version of Storybook. +If you're using an older version of Next.js, you'll need to upgrade to Next.js 14.1 or newer to use the latest version of Storybook. For help upgrading your Next.js application, see the [Next.js upgrade guide](https://nextjs.org/docs/app/building-your-application/upgrading). diff --git a/code/lib/cli-storybook/src/autoblock/block-dependencies-versions.ts b/code/lib/cli-storybook/src/autoblock/block-dependencies-versions.ts index 89fed8871f0..75141226f0c 100644 --- a/code/lib/cli-storybook/src/autoblock/block-dependencies-versions.ts +++ b/code/lib/cli-storybook/src/autoblock/block-dependencies-versions.ts @@ -5,7 +5,7 @@ import { dedent } from 'ts-dedent'; import { createBlocker } from './types'; const minimalVersionsMap = { - '@angular/core': '15.0.0', + '@angular/core': '18.0.0', 'react-scripts': '5.0.0', '@storybook/preact-webpack5': '9.0.0', '@storybook/preset-preact-webpack': '9.0.0', @@ -86,7 +86,7 @@ export const blocker = createBlocker({ `; case '@angular/core': return dedent` - Support for Angular < 15 has been removed. + Support for Angular < 18 has been removed. Please see the migration guide for more information: ${picocolors.yellow('https://angular.io/guide/update-to-version-15')} @@ -94,7 +94,7 @@ export const blocker = createBlocker({ `; case 'next': return dedent` - Support for Next.js < 13.5 has been removed. + Support for Next.js < 14.1 has been removed. Please see the migration guide for more information: ${picocolors.yellow( 'https://nextjs.org/docs/pages/building-your-application/upgrading/version-13'