Skip to content

Commit 2c3e4df

Browse files
Update Storybook to v10.1.2 (#95)
1 parent ca19f1b commit 2c3e4df

File tree

7 files changed

+402
-408
lines changed

7 files changed

+402
-408
lines changed

packages/addon-mcp/src/mcp-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const initializeMCPServer = async (options: Options) => {
6464
transport = new HttpTransport(server, { path: null });
6565

6666
origin = `http://localhost:${options.port}`;
67-
logger.debug('MCP server origin:', origin);
67+
logger.debug(`MCP server origin: ${origin}`);
6868
return server;
6969
};
7070

packages/addon-mcp/src/telemetry.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ describe('collectTelemetry', () => {
8282
).resolves.not.toThrow();
8383

8484
expect(logger.debug).toHaveBeenCalledWith(
85-
'Error collecting telemetry:',
86-
error,
85+
`Error collecting telemetry: ${error}`,
8786
);
8887
});
8988

packages/addon-mcp/src/telemetry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export async function collectTelemetry({
2121
...payload,
2222
});
2323
} catch (error) {
24-
logger.debug('Error collecting telemetry:', error);
24+
logger.debug(`Error collecting telemetry: ${error}`);
2525
}
2626
}

packages/addon-mcp/src/tools/get-story-urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function addGetStoryUrlsTool(
6666
)?.id;
6767

6868
if (foundStoryId) {
69-
logger.debug('Found story ID:', foundStoryId);
69+
logger.debug(`Found story ID: ${foundStoryId}`);
7070
result.push(`${origin}/?path=/story/${foundStoryId}`);
7171
foundStoryCount++;
7272
} else {

packages/addon-mcp/src/utils/fetch-story-index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { logger } from 'storybook/internal/node-logger';
1111
export async function fetchStoryIndex(origin: string): Promise<StoryIndex> {
1212
const indexUrl = `${origin}/index.json`;
1313

14-
logger.debug('Fetching story index from:', indexUrl);
14+
logger.debug(`Fetching story index from: ${indexUrl}`);
1515

1616
const response = await fetch(indexUrl);
1717

@@ -23,7 +23,9 @@ export async function fetchStoryIndex(origin: string): Promise<StoryIndex> {
2323

2424
const index = (await response.json()) as StoryIndex;
2525

26-
logger.debug('Story index entries found:', Object.keys(index.entries).length);
26+
logger.debug(
27+
`Story index entries found: ${Object.keys(index.entries).length}`,
28+
);
2729

2830
return index;
2931
}

pnpm-lock.yaml

Lines changed: 382 additions & 389 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ packages:
66
- eval/evals/*/experiments/*/project
77

88
catalog:
9-
'@storybook/addon-a11y': 10.1.0-alpha.11
10-
'@storybook/addon-docs': 10.1.0-alpha.11
11-
'@storybook/addon-vitest': 10.1.0-alpha.11
12-
'@storybook/react-vite': 10.1.0-alpha.11
9+
'@storybook/addon-a11y': 10.1.2
10+
'@storybook/addon-docs': 10.1.2
11+
'@storybook/addon-vitest': 10.1.2
12+
'@storybook/react-vite': 10.1.2
1313
'@tmcp/adapter-valibot': ^0.1.4
1414
'@tmcp/transport-http': ^0.8.0
1515
'@tmcp/transport-stdio': ^0.4.1
16-
eslint-plugin-storybook: 10.1.0-alpha.11
17-
storybook: 10.1.0-alpha.11
16+
eslint-plugin-storybook: 10.1.2
17+
storybook: 10.1.2
1818
tmcp: ^1.16.0
1919
tsdown: ^0.15.12
2020
typescript: ^5.9.3
@@ -25,10 +25,10 @@ catalog:
2525
catalogs:
2626
experiments:
2727
'@eslint/js': 9.39.1
28-
'@storybook/addon-a11y': 10.1.0-alpha.11
29-
'@storybook/addon-docs': 10.1.0-alpha.11
30-
'@storybook/addon-vitest': 10.1.0-alpha.11
31-
'@storybook/react-vite': 10.1.0-alpha.11
28+
'@storybook/addon-a11y': 10.1.2
29+
'@storybook/addon-docs': 10.1.2
30+
'@storybook/addon-vitest': 10.1.2
31+
'@storybook/react-vite': 10.1.2
3232
'@types/node': 24.10.1
3333
'@types/react': 19.2.6
3434
'@types/react-dom': 19.2.3
@@ -37,11 +37,11 @@ catalogs:
3737
eslint: 9.39.1
3838
eslint-plugin-react-hooks: 7.0.1
3939
eslint-plugin-react-refresh: 0.4.24
40-
eslint-plugin-storybook: 10.1.0-alpha.11
40+
eslint-plugin-storybook: 10.1.2
4141
globals: 16.5.0
4242
react: 19.2.0
4343
react-dom: 19.2.0
44-
storybook: 10.1.0-alpha.11
44+
storybook: 10.1.2
4545
typescript: 5.9.3
4646
typescript-eslint: 8.47.0
4747
vite: 7.2.2

0 commit comments

Comments
 (0)