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.0.0-alpha.6 #25357

Merged
merged 21 commits into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3539f3b
a11y: link to the docs for the test runner
Flambe Dec 19, 2023
bf43fe0
NextJS: Autoconfigure public directory for new projects
shilman Dec 20, 2023
1054872
Merge branch 'next' into shilman/nextjs-public-dir
ndelangen Dec 21, 2023
cee492f
fix typo
JoeKarow Dec 21, 2023
51bc5b8
Merge branch 'next' into JoeKarow/fix-docs-typo
jonniebigodes Dec 22, 2023
99fb196
Merge pull request #25302 from JoeKarow/JoeKarow/fix-docs-typo
jonniebigodes Dec 22, 2023
b85cd03
Merge branch 'next' into patch-1
jonniebigodes Dec 22, 2023
a2c325e
Merge pull request #25272 from Flambe/patch-1
jonniebigodes Dec 22, 2023
2ae4efa
Vue3: Fix pnp by making compiler-core a dependency
shilman Dec 23, 2023
e2c05c6
Merge branch 'next-release' into next
storybook-bot Dec 24, 2023
028652d
Vite: Fix pre-transform error in Vite 5
yannbf Dec 27, 2023
aa0b69c
Merge pull request #25329 from storybookjs/yann/pre-transform-error-v…
yannbf Dec 28, 2023
b835806
Merge pull request #25311 from storybookjs/shilman/vue3-fix-compiler
shilman Dec 29, 2023
9adea6e
Merge pull request #25279 from storybookjs/shilman/nextjs-public-dir
shilman Dec 29, 2023
53450ae
Docs: Build feature option fixes
jonniebigodes Dec 29, 2023
09f9aad
CsfFile: Fix snapshot tests
shilman Dec 29, 2023
9fea5e9
Polish aside wording
jonniebigodes Dec 29, 2023
acb96db
Merge pull request #25382 from storybookjs/shilman/fix-csffile-snapshots
shilman Dec 29, 2023
64e7968
Merge branch 'next' into docs_fix_test_api_reference
jonniebigodes Dec 29, 2023
a9503dc
Merge pull request #25381 from storybookjs/docs_fix_test_api_reference
jonniebigodes Dec 29, 2023
8241b71
Write changelog for 8.0.0-alpha.6 [skip ci]
storybook-bot Dec 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 8.0.0-alpha.6

- NextJS: Autoconfigure public directory for new projects - [#25279](https://github.com/storybookjs/storybook/pull/25279), thanks [@shilman](https://github.com/shilman)!
- Vite: Fix pre-transform error in Vite 5 - [#25329](https://github.com/storybookjs/storybook/pull/25329), thanks [@yannbf](https://github.com/yannbf)!
- Vue3: Fix pnp by making compiler-core a dependency - [#25311](https://github.com/storybookjs/storybook/pull/25311), thanks [@shilman](https://github.com/shilman)!

## 8.0.0-alpha.5

- Core: Remove the `-s` flag from build & dev - [#25266](https://github.com/storybookjs/storybook/pull/25266), thanks [@ndelangen](https://github.com/ndelangen)!
Expand Down
2 changes: 1 addition & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ To summarize:

#### typescript.skipBabel deprecated

We will remove the `typescript.skipBabel` option in Storybook 8.0.0. Please use `typescirpt.skipCompiler` instead.
We will remove the `typescript.skipBabel` option in Storybook 8.0.0. Please use `typescript.skipCompiler` instead.

#### Primary doc block accepts of prop

Expand Down
4 changes: 4 additions & 0 deletions code/addons/a11y/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export const inaccessible = () => (
);
```

## Automate accessibility tests with test runner

The test runner does not apply any rules that you have set on your stories by default. You can configure the runner to correctly apply the rules by [following the guide on the Storybook docs](https://storybook.js.org/docs/writing-tests/accessibility-testing#automate-accessibility-tests-with-test-runner).

## Roadmap

- Make UI accessible
Expand Down
2 changes: 2 additions & 0 deletions code/builders/builder-vite/src/vite-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export async function createViteServer(options: Options, devServer: Server) {

const config = {
...commonCfg,
// Needed in Vite 5: https://github.com/storybookjs/storybook/issues/25256
assetsInclude: ['/sb-preview/**'],
// Set up dev server
server: {
middlewareMode: true,
Expand Down
6 changes: 6 additions & 0 deletions code/lib/cli/src/generators/NEXTJS/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import { join } from 'path';
import { existsSync } from 'fs';
import { CoreBuilder } from '../../project_types';
import { baseGenerator } from '../baseGenerator';
import type { Generator } from '../types';

const generator: Generator = async (packageManager, npmOptions, options) => {
let staticDir;
if (existsSync(join(process.cwd(), 'public'))) staticDir = 'public';

await baseGenerator(
packageManager,
npmOptions,
{ ...options, builder: CoreBuilder.Webpack5 },
'react',
{
staticDir,
extraAddons: ['@storybook/addon-onboarding'],
},
'nextjs'
Expand Down
Loading