Skip to content
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

Release: Prerelease 8.5.0-beta.1 #30079

Merged
merged 30 commits into from
Dec 16, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 16, 2024

This is an automated pull request that bumps the version from 8.5.0-beta.0 to 8.5.0-beta.1.
Once this pull request is merged, it will trigger a new release of version 8.5.0-beta.1.
If you're not a core maintainer with permissions to release you can ignore this pull request.

To do

Before merging the PR, there are a few QA steps to go through:

  • Add the "freeze" label to this PR, to ensure it doesn't get automatically forced pushed by new changes.
  • Add the "ci:daily" label to this PR, to trigger the full test suite to run on this PR.

And for each change below:

  1. Ensure the change is appropriate for the version bump. E.g. patch release should only contain patches, not new or de-stabilizing features. If a change is not appropriate, revert the PR.
  2. Ensure the PR is labeled correctly with one of: "BREAKING CHANGE", "feature request", "bug", "maintenance", "dependencies", "documentation", "build", "unknown".
  3. Ensure the PR title is correct, and follows the format "[Area]: [Summary]", e.g. "React: Fix hooks in CSF3 render functions". If it is not correct, change the title in the PR.
    • Areas include: React, Vue, Core, Docs, Controls, etc.
    • First word of summary indicates the type: “Add”, “Fix”, “Upgrade”, etc.
    • The entire title should fit on a line

This is a list of all the PRs merged and commits pushed directly to next, that will be part of this release:

  • 🐛 Bug: Addon Test: Fix printing null% for coverage #30061
  • 🔧 Maintenance: Addon A11y: Remove warnings API #30049
  • 🐛 Bug: Addon A11y: Show errors of axe properly #30050
  • 🔧 Maintenance: Telemetry: Add metadata distinguishing "apps" from "design systems" #30070
  • 🐛 Bug: Addon A11y: Add conditional rendering for a11y violation number in Testing Module #30073

If you've made any changes doing the above QA (change PR titles, revert PRs), manually trigger a re-generation of this PR with this workflow and wait for it to finish. It will wipe your progress in this to do, which is expected.

Feel free to manually commit any changes necessary to this branch after you've done the last re-generation, following the Make Manual Changes section in the docs, especially if you're making changes to the changelog.

When everything above is done:


Generated changelog

8.5.0-beta.1

kasperpeulen and others added 28 commits December 12, 2024 16:09
…s-api

# Conflicts:
#	docs/writing-tests/accessibility-testing.mdx
…-from-status

Addon A11y: Add conditional rendering for a11y violation number in Testing Module
Telemetry: Add metadata distinguishing "apps" from "design systems"
Addon A11y: Show errors of axe properly
@github-actions github-actions bot added the release For PRs that trigger new releases. Automated label Dec 16, 2024
Addon Test: Fix printing null% for coverage
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

29 file(s) reviewed, 13 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +136 to 141
{typeof error === 'string'
? error
: error instanceof Error
? error.toString()
: JSON.stringify(error)}
</>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider using a dedicated error formatting utility function to handle error types consistently across the codebase

## 8.5.0-beta.1

- Addon A11y: Add conditional rendering for a11y violation number in Testing Module - [#30073](https://github.com/storybookjs/storybook/pull/30073), thanks @valentinpalkovic!
- Addon A11y: Remove warnings API - [#30049](https://github.com/storybookjs/storybook/pull/30049), thanks @kasperpeulen!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Breaking change: Removes warnings API and warning levels configuration from a11y addon

Comment on lines 37 to 45
if (result) {
const hasViolations = (result?.violations.length ?? 0) > 0;

const hasErrors = result?.violations.some(
(violation) => !warnings.includes(violation.impact!)
);

reporting.addReport({
type: 'a11y',
version: 1,
result: result,
status: hasErrors ? 'failed' : hasViolations ? 'warning' : 'passed',
status: hasViolations ? 'failed' : 'passed',
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Breaking change: Simplified status reporting from three states (passed/warning/failed) to two states (passed/failed). This needs to be documented in MIGRATION.md

Comment on lines +25 to +27
const promiseLike: ExecaStreamer = new Promise<void>((aResolver, aRejecter) => {
resolver = aResolver;
}) as any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: The Promise resolver is created but the rejector parameter is unused. Consider removing the unused parameter or handling rejection cases.

command: string,
options?: Parameters<typeof execaCommand>[1]
) {
const process = execaCommand(command, { shell: true, buffer: false, ...options });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: setting shell:true can be a security risk if command includes user input

Comment on lines +23 to +25
} catch {
return undefined;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: catch block silently returns undefined without logging the error - consider adding error logging for debugging

@@ -0,0 +1,37 @@
import type { PackageJson } from '../types';

const routerPackages = new Set([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider adding @ionic/angular-router and @ionic/vue-router to support Ionic framework routing packages

Comment on lines +6 to +7
const command = `git grep -l composeStor` + (path ? ` -- ${path}` : '');
return await execCommandCountLines(command);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: The git grep command is missing the full word boundary - should be composeStories to avoid partial matches

Comment on lines +9 to +11
// exit code 1 if no matches are found
return err.exitCode === 1 ? 0 : undefined;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Returning undefined for non-exit-code-1 errors loses important error information that could help debug issues

Comment on lines +15 to +19
"targets": {
"sandbox": {},
"sb:dev": {},
"sb:build": {}
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: The empty target configurations could use more explicit settings to ensure proper sandbox, dev and build behavior

@storybook-bot storybook-bot force-pushed the version-non-patch-from-8.5.0-beta.0 branch from 1188d0f to ba9d402 Compare December 16, 2024 15:03
@vanessayuenn vanessayuenn added ci:daily Run the CI jobs that normally run in the daily job. freeze Freeze the Release PR with this label labels Dec 16, 2024
Copy link

nx-cloud bot commented Dec 16, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ba9d402. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@storybook-pr-benchmarking
Copy link

Package Benchmarks

Commit: ba9d402, ran on 16 December 2024 at 16:28:44 UTC

The following packages have significant changes to their size or dependencies:

@storybook/vue3-vite

Before After Difference
Dependency count 111 107 🎉 -4 🎉
Self size 16 KB 15 KB 🎉 -8 B 🎉
Dependency size 45.54 MB 45.46 MB 🎉 -78 KB 🎉
Bundle Size Analyzer Link Link

@storybook/preset-vue3-webpack

Before After Difference
Dependency count 378 374 🎉 -4 🎉
Self size 9 KB 9 KB 🎉 -6 B 🎉
Dependency size 50.58 MB 50.51 MB 🎉 -78 KB 🎉
Bundle Size Analyzer Link Link

@vanessayuenn vanessayuenn merged commit 862c699 into next-release Dec 16, 2024
99 of 110 checks passed
@vanessayuenn vanessayuenn deleted the version-non-patch-from-8.5.0-beta.0 branch December 16, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:daily Run the CI jobs that normally run in the daily job. freeze Freeze the Release PR with this label release For PRs that trigger new releases. Automated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants