Skip to content

Commit 45f4fbd

Browse files
spawniaclaude
andcommitted
fix: upgrade Storybook to v10.0.5 to resolve security vulnerabilities
This upgrade resolves several critical and high-severity security vulnerabilities: - ws CRITICAL vulnerability (DoS with many HTTP headers) - form-data and parse-url CRITICAL vulnerabilities (already fixed in earlier work) Vulnerability status after upgrade: - Critical: 0 (down from 2) - High: 1 (down from 3) - Moderate: ~12 (various deprecations) Changes: - Upgraded Storybook from 8.6.14 to 10.0.5 - Ran Storybook automigrations (renderer-to-framework, remove-essential-addons) - Updated all 55 story files to use Storybook 10 import patterns: - Types (StoryFn) from @storybook/react-webpack5 (framework package) - Runtime functions (action) from storybook/test (consolidated package) - Excluded story files from TypeScript build in tsconfig.json - Fixed import order in all story files Testing: - All tests passing - Build successful - Lint passing - Storybook build successful Refs #311 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d60bbe1 commit 45f4fbd

58 files changed

Lines changed: 571 additions & 801 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
stories: ['../src/**/*.stories.tsx'],
3-
addons: ['@storybook/addon-essentials'],
3+
addons: ['@storybook/addon-docs'],
44
framework: {
55
name: '@storybook/react-webpack5',
66
options: {

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@
7979
"@rollup/plugin-typescript": "^11.1.6",
8080
"@semantic-release/changelog": "^6.0.3",
8181
"@semantic-release/git": "^10.0.1",
82-
"@storybook/addon-essentials": "^8.2.10",
83-
"@storybook/react": "^8.2.10",
84-
"@storybook/react-webpack5": "^8.2.10",
82+
"@storybook/addon-docs": "^10.0.5",
83+
"@storybook/react-webpack5": "^10.0.5",
8584
"@testing-library/dom": "^9.3.3",
8685
"@testing-library/jest-dom": "^6.6.4",
8786
"@testing-library/react": "^14.1.2",
@@ -103,7 +102,7 @@
103102
"eslint-plugin-jsx-a11y": "^6.8.0",
104103
"eslint-plugin-react": "^7.33.2",
105104
"eslint-plugin-react-hooks": "^4.6.0",
106-
"eslint-plugin-storybook": "^0.6.15",
105+
"eslint-plugin-storybook": "^10.0.5",
107106
"eslint-plugin-testing-library": "^6.2.2",
108107
"identity-obj-proxy": "^3.0.0",
109108
"jest": "^29.7.0",
@@ -122,7 +121,7 @@
122121
"rollup-plugin-peer-deps-external": "^2.2.4",
123122
"rollup-plugin-styles": "^4.0.0",
124123
"semantic-release": "^25.0.1",
125-
"storybook": "^8.2.10",
124+
"storybook": "^10.0.5",
126125
"style-loader": "^3.3.3",
127126
"styled-components": "^6.1.1",
128127
"ts-jest": "^29.1.1",

src/Alert/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react-webpack5';
22
import React from 'react';
33

44
import { Alert, AlertProps } from './index';

src/Autocomplete/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react-webpack5';
22
import React from 'react';
33

44
import { toFormInputOption } from '../Form';

src/Avatar/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react-webpack5';
22
import { range } from 'lodash';
33
import React from 'react';
44

src/BackTop/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { VerticalAlignTopOutlined } from '@ant-design/icons';
2-
import { StoryFn } from '@storybook/react';
2+
import { StoryFn } from '@storybook/react-webpack5';
33
import React from 'react';
44

55
import { BackTop, BackTopProps } from './index';

src/Badge/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BellOutlined } from '@ant-design/icons';
2-
import { StoryFn } from '@storybook/react';
2+
import { StoryFn } from '@storybook/react-webpack5';
33
import React from 'react';
44

55
import { Badge, BadgeProps } from './index';

src/Breadcrumb/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HomeOutlined } from '@ant-design/icons';
2-
import { StoryFn } from '@storybook/react';
2+
import { StoryFn } from '@storybook/react-webpack5';
33
import React from 'react';
44

55
import { Breadcrumb, BreadcrumbProps } from './index';

src/Button/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react-webpack5';
22
import React from 'react';
33

44
import {

src/Card/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react-webpack5';
22
import React from 'react';
33

44
import { THEME } from '../theme';

0 commit comments

Comments
 (0)