-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Release: Prerelease 8.5.0-beta.1 #30079
Conversation
…s-api # Conflicts: # docs/writing-tests/accessibility-testing.mdx
… kasper/remove-warnings-api
…-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
Addon A11y: Remove warnings API
Addon Test: Fix printing null% for coverage
There was a problem hiding this 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
{typeof error === 'string' | ||
? error | ||
: error instanceof Error | ||
? error.toString() | ||
: JSON.stringify(error)} | ||
</> |
There was a problem hiding this comment.
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! |
There was a problem hiding this comment.
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
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', | ||
}); |
There was a problem hiding this comment.
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
const promiseLike: ExecaStreamer = new Promise<void>((aResolver, aRejecter) => { | ||
resolver = aResolver; | ||
}) as any; |
There was a problem hiding this comment.
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 }); |
There was a problem hiding this comment.
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
} catch { | ||
return undefined; | ||
} |
There was a problem hiding this comment.
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([ |
There was a problem hiding this comment.
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
const command = `git grep -l composeStor` + (path ? ` -- ${path}` : ''); | ||
return await execCommandCountLines(command); |
There was a problem hiding this comment.
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
// exit code 1 if no matches are found | ||
return err.exitCode === 1 ? 0 : undefined; | ||
} |
There was a problem hiding this comment.
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
"targets": { | ||
"sandbox": {}, | ||
"sb:dev": {}, | ||
"sb:build": {} | ||
}, |
There was a problem hiding this comment.
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
1188d0f
to
ba9d402
Compare
☁️ Nx Cloud ReportCI 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 targetsSent with 💌 from NxCloud. |
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
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 |
This is an automated pull request that bumps the version from
8.5.0-beta.0
to8.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:
And for each change below:
This is a list of all the PRs merged and commits pushed directly to
next
, that will be part of this release: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