1 | import './chunk-BYXBJQAS.js';
|
2 | import { __toESM, require_picocolors } from './chunk-3VVDG2YT.js';
|
3 | import { lt } from 'semver';
|
4 | import { dedent } from 'ts-dedent';
|
5 |
|
6 | var import_picocolors=__toESM(require_picocolors(),1);var minimalVersionsMap={"@angular/core":"15.0.0","react-scripts":"5.0.0",next:"13.5.0",preact:"10.0.0",svelte:"4.0.0",vue:"3.0.0",vite:"4.0.0"},typedKeys=obj=>Object.keys(obj),blocker={id:"dependenciesVersions",async check({packageManager}){return (await Promise.all(typedKeys(minimalVersionsMap).map(async packageName=>({packageName,installedVersion:await packageManager.getPackageVersion(packageName),minimumVersion:minimalVersionsMap[packageName]})))).reduce((acc,{installedVersion,minimumVersion,packageName})=>acc||(packageName&&installedVersion&<(installedVersion,minimumVersion)?{installedVersion,packageName,minimumVersion}:acc),!1)},log(options,data){switch(data.packageName){case"react-scripts":return dedent`
|
7 | Support for react-script < 5.0.0 has been removed.
|
8 | Please see the migration guide for more information:
|
9 | ${import_picocolors.default.yellow("https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#create-react-app-dropped-cra4-support")}
|
10 |
|
11 | Upgrade to the latest version of react-scripts.
|
12 | `;case"vue":return dedent`
|
13 | Support for Vue 2 has been removed.
|
14 | Please see the migration guide for more information:
|
15 | ${import_picocolors.default.yellow("https://v3-migration.vuejs.org/")}
|
16 |
|
17 | Please upgrade to the latest version of Vue.
|
18 | `;case"@angular/core":return dedent`
|
19 | Support for Angular < 15 has been removed.
|
20 | Please see the migration guide for more information:
|
21 | ${import_picocolors.default.yellow("https://angular.io/guide/update-to-version-15")}
|
22 |
|
23 | Please upgrade to the latest version of Angular.
|
24 | `;case"next":return dedent`
|
25 | Support for Next.js < 13.5 has been removed.
|
26 | Please see the migration guide for more information:
|
27 | ${import_picocolors.default.yellow("https://nextjs.org/docs/pages/building-your-application/upgrading/version-13")}
|
28 |
|
29 | Please upgrade to the latest version of Next.js.
|
30 | `;default:return dedent`
|
31 | Support for ${data.packageName} version < ${data.minimumVersion} has been removed.
|
32 | Since version 8, Storybook needs a minimum version of ${data.minimumVersion}, but you have version ${data.installedVersion}.
|
33 |
|
34 | Please update this dependency.
|
35 | `}}};
|
36 |
|
37 | export { blocker };
|