-
-
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.5 #30124
base: next-release
Are you sure you want to change the base?
Conversation
…ENV handling in build scripts
- Introduced a new feature flag `developmentModeForBuild` to enhance testability in built Storybooks. - Updated build configurations to set `process.env.NODE_ENV` to `development` when the feature is enabled. - Cleaned up unnecessary definitions in various preset and configuration files.
Co-authored-by: Kyle Gach <[email protected]>
Co-authored-by: Kyle Gach <[email protected]>
…omponents React: Use Act wrapper in Storybook for component rendering
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.
23 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile
@@ -35,9 +35,22 @@ export async function build(options: Options) { | |||
} | |||
: {}), | |||
}, | |||
}).build; | |||
} as InlineConfig).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.
logic: Missing type assertion on config.build assignment could cause type errors
// @ts-expect-error Ignore this error, because in the `webpack` preset the user actually hasn't defined a config yet. | ||
...config.plugins, |
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: Spreading undefined plugins will cause runtime error if config.plugins is not initialized
if (jestFakeTimersAreEnabled()) { | ||
// @ts-expect-error global jest | ||
jest.advanceTimersByTime(0); | ||
} |
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 more type-safe approach for Jest timer detection instead of @ts-expect-error
eventWrapper: (cb) => { | ||
let result; | ||
act(() => { | ||
result = cb(); | ||
return result; | ||
}); | ||
return result; | ||
}, |
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: eventWrapper does not handle async events - could cause issues with async event handlers
Core: Fix `ERR_PACKAGE_PATH_NOT_EXPORTED` in `@storybook/node-logger`
ecd0dd9
to
421fa8e
Compare
This is an automated pull request that bumps the version from
8.5.0-beta.4
to8.5.0-beta.5
.Once this pull request is merged, it will trigger a new release of version
8.5.0-beta.5
.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:ERR_PACKAGE_PATH_NOT_EXPORTED
in@storybook/node-logger
#30093If 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.5
ERR_PACKAGE_PATH_NOT_EXPORTED
in@storybook/node-logger
- #30093, thanks @JReinhold!