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 7.6.0-alpha.7 #24853

Merged
merged 266 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
946d863
Fix babel and eslint
valentinpalkovic Nov 3, 2023
3c806e0
Fix tests
valentinpalkovic Nov 3, 2023
e22f3b9
Fix generate-sandbox script
valentinpalkovic Nov 3, 2023
baa57e0
Remove ts-node in scripts
valentinpalkovic Nov 3, 2023
50a7d47
Fix check script
valentinpalkovic Nov 3, 2023
c74b562
Fix run-registry script
valentinpalkovic Nov 3, 2023
50e524e
Create help.yml
joevaugh4n Nov 3, 2023
122e94f
Fix Typescript issues
valentinpalkovic Nov 6, 2023
103794e
Replace tsup with esbuild
valentinpalkovic Nov 6, 2023
b9f0e4e
Use node directly to check angular framework
valentinpalkovic Nov 6, 2023
29f5388
Fix sandbox generation
valentinpalkovic Nov 6, 2023
2b32377
Merge remote-tracking branch 'origin/next' into valentin/use-type-mod…
valentinpalkovic Nov 6, 2023
1f17431
Merge branch 'valentin/remove-lerna' into valentin/use-type-module-in…
valentinpalkovic Nov 6, 2023
cf06a9c
Fix execaCommand in build-package
valentinpalkovic Nov 6, 2023
55dc4f2
Use esMain helper to check for execution origin
valentinpalkovic Nov 7, 2023
40e627f
Add import for execa package in
valentinpalkovic Nov 7, 2023
25b6907
Fix esMain helper usage
valentinpalkovic Nov 7, 2023
4baa40f
Fix danger.js
valentinpalkovic Nov 8, 2023
4d31883
Update .github/DISCUSSION_TEMPLATE/help.yml
joevaugh4n Nov 8, 2023
758c0de
Remove custom execa implementation
valentinpalkovic Nov 8, 2023
6d5080e
Fix tests
valentinpalkovic Nov 8, 2023
9f52708
Merge remote-tracking branch 'origin/next' into deprecate-vite-cjs
valentinpalkovic Nov 8, 2023
f7dba4c
Fix identation in Migration.md
valentinpalkovic Nov 8, 2023
dca97a1
feat: tighter integration with sveltekit
paoloricciuti Nov 9, 2023
0a103b1
fix callbacks for goto, enhance, invalidate, invalidateAll
paoloricciuti Nov 10, 2023
a19c1e4
add tests
paoloricciuti Nov 10, 2023
8bcd99a
Merge branch 'next' into next
paoloricciuti Nov 10, 2023
a42fc78
add check field to update store and write README
paoloricciuti Nov 10, 2023
e184135
add components to files
paoloricciuti Nov 10, 2023
adc9704
add mocks files to files
paoloricciuti Nov 10, 2023
dddc1c9
remove logs + fix afternavigate tests
paoloricciuti Nov 10, 2023
1693051
Merge remote-tracking branch 'upstream/next' into next
paoloricciuti Nov 13, 2023
9cb6088
Merge branch 'next' into next
paoloricciuti Nov 13, 2023
81c2807
Revert "Revert "Addons, core: Make `react` and Storybook packages `de…
JReinhold Nov 14, 2023
3c41176
Merge remote-tracking branch 'origin/next' into valentin/use-type-mod…
valentinpalkovic Nov 14, 2023
e792e6f
Update package.json scripts to use
valentinpalkovic Nov 14, 2023
e8f8a65
Replace default export of esMain by named export
valentinpalkovic Nov 14, 2023
46cb2fb
Merge branch 'next' into valentin/use-type-module-in-scripts
valentinpalkovic Nov 14, 2023
737a3ed
cleanup addon-actions dependencies
JReinhold Nov 14, 2023
7e07d35
use ESM in nextjs framework, rework conditional importing of nextjs c…
JReinhold Nov 14, 2023
e559a1e
Merge pull request #24698 from storybookjs/valentin/use-type-module-i…
ndelangen Nov 15, 2023
c5cddf6
Merge pull request #24841 from storybookjs/fix-nextjs-esm
JReinhold Nov 15, 2023
9b33681
Merge branch 'next' of github.com:storybookjs/storybook into revert-2…
JReinhold Nov 15, 2023
f18dbe6
Merge branch 'next-release' into next
storybook-bot Nov 15, 2023
13c5779
Add skipCompiler option to TypeScript presets
valentinpalkovic Nov 15, 2023
b36a055
Add file extension to CommonJS file import and remove dynamic imports
valentinpalkovic Nov 15, 2023
b7e3e37
Convert check-dependencies script into Typescript
valentinpalkovic Nov 15, 2023
3ff7b92
Merge pull request #24850 from storybookjs/valentin/fix-ci-2
ndelangen Nov 15, 2023
df35702
Merge pull request #24834 from storybookjs/revert-24832-revert-24676-…
JReinhold Nov 15, 2023
3a24793
Remove Typescript preset override for vue-vite
valentinpalkovic Nov 15, 2023
ec2d929
Clarify docs on skipCompiler option
valentinpalkovic Nov 15, 2023
217b11e
Add entry to Migration.md about skipCompiler
valentinpalkovic Nov 15, 2023
7a561f4
Merge branch 'next' into valentin/introduce-skip-compiler-typescript-…
valentinpalkovic Nov 15, 2023
1eda85a
Warn on implicit actions
kasperpeulen Nov 15, 2023
23c89a1
Fix dts build
kasperpeulen Nov 15, 2023
9115617
gracefully handle ast parsing error in preview file
yannbf Nov 15, 2023
e33d18f
Update config.yml
joevaugh4n Nov 15, 2023
a0bdfc5
Merge branch 'next' into joevaugh4n-patch-3
kylegach Nov 15, 2023
4c13b24
Merge pull request #24704 from storybookjs/joevaugh4n-patch-3
kylegach Nov 15, 2023
411202f
make CLI --test flag be true when `process.env.SB_TESTBUILD` === `true`
ndelangen Nov 16, 2023
e3a5932
Prettify docs
valentinpalkovic Nov 16, 2023
1b79492
Merge pull request #24847 from storybookjs/valentin/introduce-skip-co…
valentinpalkovic Nov 16, 2023
534acf4
Merge branch 'next' into yann/handle-ast-parsing-error
valentinpalkovic Nov 16, 2023
41ab56b
fix issue where setting status without index, crashes storybook
ndelangen Nov 16, 2023
962bf86
cleanup
ndelangen Nov 16, 2023
d71bc5a
Update help.yml
joevaugh4n Nov 16, 2023
9c6cc6d
Merge pull request #24866 from storybookjs/norbert/fix-early-setStatus
ndelangen Nov 16, 2023
eb3c8c9
Update help.yml
joevaugh4n Nov 16, 2023
c4eac36
Merge pull request #24858 from storybookjs/yann/handle-ast-parsing-error
yannbf Nov 16, 2023
7aef3e4
Address review comments
kasperpeulen Nov 16, 2023
c035ba8
Merge remote-tracking branch 'origin/next' into kasper/warn-on-implic…
kasperpeulen Nov 16, 2023
9dd8a6c
Merge pull request #24856 from storybookjs/kasper/warn-on-implicit-ac…
kasperpeulen Nov 16, 2023
4c77249
Merge pull request #24862 from storybookjs/norbert/test-flag-env-vari…
kasperpeulen Nov 16, 2023
4839436
Update .github/DISCUSSION_TEMPLATE/help.yml
joevaugh4n Nov 16, 2023
5112a32
Update .github/DISCUSSION_TEMPLATE/help.yml
joevaugh4n Nov 16, 2023
f74414b
Update .github/DISCUSSION_TEMPLATE/help.yml
joevaugh4n Nov 16, 2023
0d0a1da
Core: do not fail the build on warnOnIncompatibleAddons
taozhou-glean Nov 16, 2023
b8ee9e9
chore: remove warnings by updating to [email protected]
epreston Nov 17, 2023
4b52a28
Add back image context CommonJS export
martinnabhan Nov 17, 2023
090b9be
Update yarn.lock
valentinpalkovic Nov 17, 2023
8efaead
Minor polish and added filtering tests
jonniebigodes Nov 17, 2023
02dff4d
Merge pull request #24885 from martinnabhan/bugfix/next-js-image-cont…
valentinpalkovic Nov 17, 2023
8a377f8
make it work with --test
ndelangen Nov 17, 2023
dc4786c
modify the default_files_pattern for normalizeStories to exclude mdx …
ndelangen Nov 17, 2023
d37817e
Update .github/DISCUSSION_TEMPLATE/help.yml
joevaugh4n Nov 17, 2023
6f37cc1
Update help.yml
joevaugh4n Nov 17, 2023
5776874
Update help.yml
joevaugh4n Nov 17, 2023
861170e
cleanup
ndelangen Nov 17, 2023
c643d59
fix
ndelangen Nov 17, 2023
00d021a
Update help.yml
joevaugh4n Nov 17, 2023
9a40615
Update help.yml
joevaugh4n Nov 17, 2023
913d3dc
Update help.yml
joevaugh4n Nov 17, 2023
9c3ffc8
Update help.yml
joevaugh4n Nov 17, 2023
a11fd31
Update help.yml
joevaugh4n Nov 17, 2023
c9bcdc7
Update help.yml
joevaugh4n Nov 17, 2023
f2be784
Update help.yml
joevaugh4n Nov 17, 2023
42170ad
Update help.yml
joevaugh4n Nov 17, 2023
bcdf023
Update help.yml
joevaugh4n Nov 17, 2023
36d0747
ensure the changed default_files_pattern is applied to entries that d…
ndelangen Nov 17, 2023
9adebbf
Merge branch 'next' into patch-1
valentinpalkovic Nov 17, 2023
0d9a95c
Merge pull request #24882 from epreston/patch-1
valentinpalkovic Nov 17, 2023
07374cc
disable locally
ndelangen Nov 17, 2023
ddbb446
simpler code
ndelangen Nov 17, 2023
ffb9003
Merge branch 'next' into norbert/improve-mdx-filtering
ndelangen Nov 17, 2023
d11044a
Merge pull request #24890 from storybookjs/norbert/improve-mdx-filtering
ndelangen Nov 17, 2023
b385449
fix lint
taozhou-glean Nov 17, 2023
42ce964
Hooks updates
jonniebigodes Nov 17, 2023
ca7cc86
Merge branch 'next' into next
paoloricciuti Nov 18, 2023
6ead60d
Small tweaks
jonniebigodes Nov 18, 2023
e2c41a8
tag fix and minor polish to the intro
jonniebigodes Nov 18, 2023
96e71c9
Merge branch 'next' into docs_test_runner_updates
jonniebigodes Nov 18, 2023
51d5ea7
Examples added. Docs cleanup
jonniebigodes Nov 19, 2023
adfbf2a
Merge branch 'next' into joevaugh4n-sb-help
jonniebigodes Nov 19, 2023
8aad2aa
Update design-integrations.md
kshmidt-digma Nov 20, 2023
0dbb047
Next.js: Add experimental SWC support
valentinpalkovic Nov 15, 2023
eaa373f
Add documentation to Next.js doc
valentinpalkovic Nov 15, 2023
c546fd5
Retrigger pipeline
valentinpalkovic Nov 16, 2023
5021bf4
Move virtualModule files into @storybook/core-webpack
valentinpalkovic Nov 16, 2023
115cb7b
Retrigger pipeline
valentinpalkovic Nov 16, 2023
19b6bdc
Retrigger pipeline
valentinpalkovic Nov 16, 2023
a6a3251
Use SWC for new Webpack5-based projects
valentinpalkovic Nov 16, 2023
3b9fab0
Fix Init for Angular projects
valentinpalkovic Nov 16, 2023
d003988
Remove console.log
valentinpalkovic Nov 17, 2023
5305ee9
Reposition swc loader order
valentinpalkovic Nov 17, 2023
df06528
Fix E2E test
valentinpalkovic Nov 17, 2023
e047dfa
Exclude existing swc-loader
valentinpalkovic Nov 17, 2023
f7a0756
Add error message for Next.js if swc is not supported
valentinpalkovic Nov 20, 2023
b54be15
Pass proper projectType to generators
valentinpalkovic Nov 20, 2023
39a2b46
Fix e2e tests
valentinpalkovic Nov 20, 2023
defbd62
Update code/lib/core-server/src/build-dev.ts
yannbf Nov 20, 2023
a7e5430
Move swc logic to custom generators
valentinpalkovic Nov 20, 2023
39ddc25
Change selected compiler message
valentinpalkovic Nov 20, 2023
dff960f
Update jscodeshift to fix local sandbox creation
valentinpalkovic Nov 20, 2023
5f1f16d
Change check-dependencies script to js
valentinpalkovic Nov 20, 2023
95a2add
Cleanup imports
valentinpalkovic Nov 20, 2023
1c3105a
Merge pull request #24871 from storybookjs/valentin/use-swc-in-webpac…
valentinpalkovic Nov 20, 2023
c825bd6
rename property & add tests
ndelangen Nov 20, 2023
b20a483
maybe fix for windows
ndelangen Nov 20, 2023
d840521
Fix Yarn 4 failing to install due to jscodeshift dependency issue
samvv Nov 20, 2023
f1d57e9
arg windows
ndelangen Nov 20, 2023
27fd45d
imprvoe, fix tests for windows
ndelangen Nov 20, 2023
5cdee70
oops
ndelangen Nov 20, 2023
1e82d19
aaaa
ndelangen Nov 20, 2023
9e3c955
Docs: Minor changes for code contribution docs
jonniebigodes Nov 20, 2023
78921a5
Merge pull request #24911 from storybookjs/norbert/testbuild-add-tests
ndelangen Nov 20, 2023
d859e39
Capitalize Node
jonniebigodes Nov 20, 2023
1c6ec42
Merge branch 'next' into docs_test_runner_updates
jonniebigodes Nov 20, 2023
b15a996
Merge pull request #24914 from samvv/fix-jscodeshift-dep-error
valentinpalkovic Nov 20, 2023
2f4cbb7
Merge branch 'next' into docs_updates_contributions
jonniebigodes Nov 20, 2023
28cc7c3
Merge pull request #24852 from storybookjs/valentin/add-swc-support-f…
valentinpalkovic Nov 20, 2023
6a94ba8
Merge branch 'next' into docs_updates_contributions
jonniebigodes Nov 20, 2023
d35f3f5
Merge branch 'next' into patch-1
jonniebigodes Nov 20, 2023
2c66780
Merge pull request #24916 from storybookjs/docs_updates_contributions
jonniebigodes Nov 20, 2023
b527667
Merge branch 'next' into docs_test_flag
jonniebigodes Nov 20, 2023
f17f45e
Merge branch 'next' into patch-1
jonniebigodes Nov 20, 2023
81b9809
Merge branch 'next' into joevaugh4n-sb-help
joevaugh4n Nov 20, 2023
3cd454c
Merge pull request #24907 from kshmidt-digma/patch-1
jonniebigodes Nov 20, 2023
79f81fe
Merge branch 'next' into docs_test_flag
jonniebigodes Nov 20, 2023
567318e
Merge branch 'next' into docs_test_runner_updates
jonniebigodes Nov 20, 2023
a55ac76
fix: svelte renderer run decorators twice
paoloricciuti Nov 20, 2023
661cb43
Merge branch 'next' into tao-warnOnIncompatibleAddons
taozhou-glean Nov 20, 2023
96e093f
Next.js: Fix import path in swc loader
valentinpalkovic Nov 20, 2023
0b50467
Merge pull request #24645 from storybookjs/docs_test_runner_updates
jonniebigodes Nov 20, 2023
557a048
Merge branch 'next' into docs_test_flag
jonniebigodes Nov 20, 2023
fd80591
Merge branch 'next' into fix-svelte-renderer-firing-decorator-twice
paoloricciuti Nov 20, 2023
1a7d1bf
Merge pull request #24904 from storybookjs/docs_test_flag
jonniebigodes Nov 20, 2023
4a7b7e0
add test for decorators run once
paoloricciuti Nov 20, 2023
535efc3
Merge branch 'next' into fix-svelte-renderer-firing-decorator-twice
paoloricciuti Nov 20, 2023
f529b2a
Merge pull request #24922 from storybookjs/valentin/fix-import
valentinpalkovic Nov 20, 2023
58ca1a6
Merge branch 'next' into fix-svelte-renderer-firing-decorator-twice
paoloricciuti Nov 20, 2023
0011319
FastBuild: Fix disabledAddons filter
IanVS Nov 20, 2023
445b8d4
move logic to preview.ts from SvelteDecorator
paoloricciuti Nov 20, 2023
a1ddf3c
Merge branch 'next' into next
paoloricciuti Nov 20, 2023
c686a26
fix CJS to ESM
paoloricciuti Nov 20, 2023
de04701
Update help.yml
kylegach Nov 21, 2023
09968d1
Merge branch 'next' into joevaugh4n-sb-help
kylegach Nov 21, 2023
24aaab8
Merge pull request #24868 from storybookjs/joevaugh4n-sb-help
kylegach Nov 21, 2023
18019d7
Merge branch 'next' into fix-svelte-renderer-firing-decorator-twice
paoloricciuti Nov 21, 2023
e48e387
Merge branch 'next' into next
paoloricciuti Nov 21, 2023
b0f2dc9
Merge branch 'next' into fix-disabled-addons
kasperpeulen Nov 21, 2023
a6ad352
Use temp dir to init Storybook for sandbox generation
valentinpalkovic Nov 20, 2023
40d85f0
Fix Next.js generation
valentinpalkovic Nov 20, 2023
8b48f8d
Fix Angular sandbox generation
valentinpalkovic Nov 20, 2023
8be2ce8
Set parallelism to one for sandbox generation
valentinpalkovic Nov 20, 2023
f18bd6f
Merge pull request #24909 from storybookjs/valentin/fix-check-depende…
valentinpalkovic Nov 21, 2023
42fe3e7
Merge branch 'next' into fix-svelte-renderer-firing-decorator-twice
JReinhold Nov 21, 2023
2db2a5c
Merge branch 'next' into next
JReinhold Nov 21, 2023
2d21b39
Update code/frameworks/sveltekit/README.md
paoloricciuti Nov 21, 2023
63b1b0e
Update code/frameworks/sveltekit/README.md
paoloricciuti Nov 21, 2023
230089a
fix PR comments
paoloricciuti Nov 21, 2023
1a5bcd7
Docs: Minor cleanup
jonniebigodes Nov 21, 2023
b542502
Update code/frameworks/sveltekit/src/mocks/app/stores.ts
paoloricciuti Nov 21, 2023
9de928d
better regex handling of links + add experiemental
paoloricciuti Nov 21, 2023
25e9204
Fix @vitejs/plugin-react version in top-level package.json
IanVS Nov 21, 2023
e66f93a
Update @vitejs/plugin-react resolution workaround
IanVS Nov 21, 2023
60f20ce
debug CI failure by not writing into logfile
ndelangen Nov 21, 2023
73e7bc5
Add resolutions for fallback vite plugins in "no-link" mode
IanVS Nov 21, 2023
34a449d
Only apply workarounds for sandboxes that need it
IanVS Nov 21, 2023
f57a6b8
add actions as default behavior, cleanup decorator
JReinhold Nov 21, 2023
da77256
e2e test for default sveltekit actions
JReinhold Nov 21, 2023
e3def1d
Merge branch 'fix-svelte-renderer-firing-decorator-twice' of github.c…
JReinhold Nov 21, 2023
4784208
fix decorator e2e test in dev
JReinhold Nov 21, 2023
f1031bf
Merge pull request #24945 from storybookjs/try-to-fix-ci
ndelangen Nov 22, 2023
3b7ee70
Merge branch 'next' into next
paoloricciuti Nov 22, 2023
07b7e0c
Merge branch 'next' into fix-disabled-addons
ndelangen Nov 22, 2023
aef74d6
Detect no matching export error in storybook start and build
yannbf Nov 16, 2023
2c1dcf3
Update code/lib/core-server/src/utils/build-or-throw.ts
yannbf Nov 17, 2023
f0fd10b
Update code/lib/core-events/src/errors/server-errors.ts
yannbf Nov 20, 2023
95f02fe
Merge pull request #24924 from storybookjs/fix-disabled-addons
ndelangen Nov 22, 2023
b274849
Merge branch 'next' into next
JReinhold Nov 22, 2023
9ca1966
Merge branch 'next' into fix-svelte-renderer-firing-decorator-twice
JReinhold Nov 22, 2023
967f685
make parameter types public
JReinhold Nov 22, 2023
9593add
fix types for SveltekitParameters
paoloricciuti Nov 22, 2023
87778f8
Merge pull request #24877 from storybookjs/yann/add-no-matching-expor…
yannbf Nov 22, 2023
31478ef
Merge branch 'next' into tao-warnOnIncompatibleAddons
yannbf Nov 22, 2023
9e1bad0
remove afterNavigate import
paoloricciuti Nov 22, 2023
70ceaaf
Merge branch 'next' into next
paoloricciuti Nov 22, 2023
baaca43
Merge branch 'next' into fix-svelte-renderer-firing-decorator-twice
paoloricciuti Nov 22, 2023
29facdd
Merge branch 'next' into patch-1
JReinhold Nov 22, 2023
7bdb8b6
Merge branch 'next' of github.com:storybookjs/storybook into deprecat…
JReinhold Nov 22, 2023
c344ce3
Merge pull request #24880 from taozhou-glean/tao-warnOnIncompatibleAd…
yannbf Nov 22, 2023
8d612f3
Model loaders as before each and restore mocks properly
kasperpeulen Nov 22, 2023
0130a0a
Pin new csf version
kasperpeulen Nov 22, 2023
d86a2a4
Merge branch 'next' into next
paoloricciuti Nov 22, 2023
aa4cc8d
Merge pull request #23950 from storybookjs/deprecate-vite-cjs
JReinhold Nov 22, 2023
e97331c
Merge pull request #24921 from paoloricciuti/fix-svelte-renderer-firi…
JReinhold Nov 22, 2023
62e7fbb
Merge branch 'next' of github.com:storybookjs/storybook into paoloric…
JReinhold Nov 22, 2023
d680a4b
Merge pull request #24939 from storybookjs/docs_minor_clarifications
ndelangen Nov 22, 2023
e3725f8
rename nextjs story target
JReinhold Nov 22, 2023
e0509fe
Merge pull request #24795 from paoloricciuti/next
JReinhold Nov 22, 2023
6166ab4
Merge pull request #22631 from SpookyJelly/patch-1
JReinhold Nov 22, 2023
704feaa
Fix type issues
kasperpeulen Nov 22, 2023
2aa45f3
Merge pull request #24950 from storybookjs/fix-nextjs-e2e
JReinhold Nov 22, 2023
b319f2d
Update test
kasperpeulen Nov 22, 2023
980ca21
Update test
kasperpeulen Nov 22, 2023
3c0b8cd
add sb doctor command
yannbf Sep 12, 2023
1cfce18
move utilities to doctor directory, add mismatching version checks
yannbf Nov 22, 2023
daf7083
fix tests
yannbf Nov 22, 2023
107ce09
add doctor command in error message
yannbf Nov 22, 2023
9609e12
Address review
kasperpeulen Nov 22, 2023
038ec6f
Merge remote-tracking branch 'origin/kasper/model-loaders-as-before-e…
kasperpeulen Nov 22, 2023
b501c75
Merge branch 'next' into kasper/model-loaders-as-before-each
kasperpeulen Nov 22, 2023
359c895
Update csf version
kasperpeulen Nov 22, 2023
3606e3c
Update csf version
kasperpeulen Nov 22, 2023
9cde885
Merge remote-tracking branch 'origin/kasper/model-loaders-as-before-e…
kasperpeulen Nov 22, 2023
23dcb6b
remove log
yannbf Nov 22, 2023
d2ef359
Merge pull request #22236 from storybookjs/feat/sb-doctor-command
yannbf Nov 22, 2023
12960c7
Move args enhancer to be a loader
kasperpeulen Nov 22, 2023
c9afa39
Merge pull request #24948 from storybookjs/kasper/model-loaders-as-be…
kasperpeulen Nov 22, 2023
3e17abe
Write changelog for 7.6.0-alpha.7 [skip ci]
storybook-bot Nov 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ jobs:
at: .
- run:
name: Starting Event Collector
command: yarn ts-node ./event-log-collector.ts
command: node --loader esbuild-register/loader -r esbuild-register ./event-log-collector.ts
working_directory: scripts
background: true
- run:
Expand All @@ -334,7 +334,7 @@ jobs:
TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task build)
if [[ $TEMPLATE != bench/* ]]
then
yarn ts-node ./event-log-checker build $TEMPLATE
node --loader esbuild-register/loader -r esbuild-register ./event-log-checker build $TEMPLATE
fi
working_directory: scripts
- report-workflow-on-failure:
Expand Down Expand Up @@ -645,4 +645,3 @@ workflows:
# parallelism: 4
# requires:
# - create-sandboxes

40 changes: 40 additions & 0 deletions .github/DISCUSSION_TEMPLATE/help.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
body:
- type: markdown
id: intro
attributes:
value: |
Thanks for taking the time to start a new discussion!

### Before you post
Check if someone has already asked/answered your question in a previous discussion.

### When you're ready to post
Add labels to your discussion (e.g. React, Vue, Vite) to make it clearer for other users.

- type: textarea
id: summary
attributes:
label: Summary
description: How can we help?
validations:
required: true

- type: textarea
id: additional-info
attributes:
label: Additional information
description: |
Share Your Storybook configuration (`main.js` or `main.ts`), your Storybook version number, any error messages, and any relevant dependencies. These help us get a clearer understanding of what might be going wrong.

P.S. Please [share code as text](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks) rather than as a screenshot! It makes debugging much easier and faster.
validations:
required: false

- type: input
id: reproduction
attributes:
label: Create a reproduction
description: |
Help us debug by creating a minimal reproduction with [https://storybook.new](https://storybook.new). Learn more about creating a reproduction [here](https://storybook.js.org/docs/react/contribute/how-to-reproduce).
validations:
required: false
13 changes: 8 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ contact_links:
- name: View documentation 📚
url: https://storybook.js.org/docs/
about: Check out the official docs for answers to common questions.
- name: Feature Requests 💡
- name: Feature requests 💡
url: https://github.com/storybookjs/storybook/discussions/new?category=ideas
about: Suggest a feature idea for this project.
- name: Open an RFC 🦄
url: https://github.com/storybookjs/storybook/discussions/new?category=rfc
about: Do you want to propose a more involved change to Storybook? Open an RFC (Request for Comments) to start a discussion.
- name: Questions & discussions 🤔
- name: Questions 💭
url: https://github.com/storybookjs/storybook/discussions/new?category=help
about: Need support with a Storybook problem? Open up a help request.
- name: Discussions 🙌
url: https://github.com/storybookjs/storybook/discussions
about: Ask questions, show off your Storybook, etc.
- name: Community Discord 💬
about: Show off your Storybook or discuss the project.
- name: Community Discord 🎉
url: https://discord.gg/storybook
about: Community discussions, interactive support, contributor help
about: Meet other community members and get contributor help.
5 changes: 4 additions & 1 deletion .github/workflows/generate-sandboxes-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ jobs:
git config --global user.name "Storybook Bot"
git config --global user.email "[email protected]"
- name: Install dependencies
run: node ./scripts/check-dependencies.js
run: |
cd ./scripts
node --experimental-modules ./check-dependencies.js
cd ..
- name: Compile Storybook libraries
run: yarn task --task compile --start-from=auto --no-link
- name: Publishing to local registry
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/generate-sandboxes-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ jobs:
git config --global user.name "Storybook Bot"
git config --global user.email "[email protected]"
- name: Install dependencies
run: node ./scripts/check-dependencies.js
run: |
cd ./scripts
node --experimental-modules ./check-dependencies.js
cd ..
- name: Compile Storybook libraries
run: yarn task --task compile --start-from=auto --no-link
- name: Publishing to local registry
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
## 7.6.0-alpha.7

- Actions: Warn on implicit actions - [#24856](https://github.com/storybookjs/storybook/pull/24856), thanks [@kasperpeulen](https://github.com/kasperpeulen)!
- Addons, core: Make `react` and Storybook packages `devDependencies` where possible - ATTEMPT 2 - [#24834](https://github.com/storybookjs/storybook/pull/24834), thanks [@JReinhold](https://github.com/JReinhold)!
- CLI: Add "doctor" command - [#22236](https://github.com/storybookjs/storybook/pull/22236), thanks [@yannbf](https://github.com/yannbf)!
- Core: Add deprecation notice for Vite + CommonJS - [#23950](https://github.com/storybookjs/storybook/pull/23950), thanks [@JReinhold](https://github.com/JReinhold)!
- Core: Detect no matching export error in storybook start and build - [#24877](https://github.com/storybookjs/storybook/pull/24877), thanks [@yannbf](https://github.com/yannbf)!
- Core: Fix `useStoryPrepared` hook failing with `undefined` data - [#22631](https://github.com/storybookjs/storybook/pull/22631), thanks [@SpookyJelly](https://github.com/SpookyJelly)!
- Core: Gracefully handle error when parsing preview.js file - [#24858](https://github.com/storybookjs/storybook/pull/24858), thanks [@yannbf](https://github.com/yannbf)!
- Core: Make warnOnIncompatibleAddons fault-tolerant - [#24880](https://github.com/storybookjs/storybook/pull/24880), thanks [@taozhou-glean](https://github.com/taozhou-glean)!
- Dependency: Fix Yarn 4 failing to install due to jscodeshift dependency issue - [#24914](https://github.com/storybookjs/storybook/pull/24914), thanks [@samvv](https://github.com/samvv)!
- Dependency: Update jscodeshift to v0.15.1 - [#24882](https://github.com/storybookjs/storybook/pull/24882), thanks [@epreston](https://github.com/epreston)!
- FastBuild: Fix disabledAddons filter - [#24924](https://github.com/storybookjs/storybook/pull/24924), thanks [@IanVS](https://github.com/IanVS)!
- ManagerAPI: Fix setting status without index, crashes storybook - [#24866](https://github.com/storybookjs/storybook/pull/24866), thanks [@ndelangen](https://github.com/ndelangen)!
- Next.js: Add back image context CommonJS export - [#24885](https://github.com/storybookjs/storybook/pull/24885), thanks [@martinnabhan](https://github.com/martinnabhan)!
- Next.js: Add experimental SWC support - [#24852](https://github.com/storybookjs/storybook/pull/24852), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!
- Next.js: Fix import path in swc loader - [#24922](https://github.com/storybookjs/storybook/pull/24922), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!
- Svelte: Fix decorators always running twice - [#24921](https://github.com/storybookjs/storybook/pull/24921), thanks [@paoloricciuti](https://github.com/paoloricciuti)!
- SvelteKit: Add experimental page and navigation mocking - [#24795](https://github.com/storybookjs/storybook/pull/24795), thanks [@paoloricciuti](https://github.com/paoloricciuti)!
- Test: Model loaders as before each and restore mocks properly - [#24948](https://github.com/storybookjs/storybook/pull/24948), thanks [@kasperpeulen](https://github.com/kasperpeulen)!
- TestBuild: Add env-variable support to `--test` CLI-flag - [#24862](https://github.com/storybookjs/storybook/pull/24862), thanks [@ndelangen](https://github.com/ndelangen)!
- TestBuild: Add tests and rename to camelCase - [#24911](https://github.com/storybookjs/storybook/pull/24911), thanks [@ndelangen](https://github.com/ndelangen)!
- TestBuild: Fix indexer bug - [#24890](https://github.com/storybookjs/storybook/pull/24890), thanks [@ndelangen](https://github.com/ndelangen)!
- Typescript: Add 'skipCompiler' option to TypeScript presets - [#24847](https://github.com/storybookjs/storybook/pull/24847), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!

## 7.6.0-alpha.6

- Addon: Move Visual Test addon to the code directory - [#24771](https://github.com/storybookjs/storybook/pull/24771), thanks [@cdedreuille](https://github.com/cdedreuille)!
Expand Down
62 changes: 62 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<h1>Migration</h1>

- [From version 7.5.0 to 7.6.0](#from-version-750-to-760)
- [CommonJS with Vite is deprecated](#commonjs-with-vite-is-deprecated)
- [Using implicit actions during rendering is deprecated](#using-implicit-actions-during-rendering-is-deprecated)
- [typescript.skipBabel deprecated](#typescriptskipbabel-deprecated)
- [Primary doc block accepts of prop](#primary-doc-block-accepts-of-prop)
- [Addons no longer need a peer dependency on React](#addons-no-longer-need-a-peer-dependency-on-react)
- [From version 7.4.0 to 7.5.0](#from-version-740-to-750)
Expand Down Expand Up @@ -310,6 +313,65 @@

## From version 7.5.0 to 7.6.0

#### CommonJS with Vite is deprecated

Using CommonJS in the `main` configuration with `main.cjs` or `main.cts` is deprecated, and will be removed in Storybook 8.0. This is a necessary change because [Vite will remove support for CommonJS in an upcoming release](https://github.com/vitejs/vite/discussions/13928).

You can address this by converting your `main` configuration file to ESM syntax and renaming it to `main.mjs` or `main.mts` if your project does not have `"type": "module"` in its `package.json`. To convert the config file to ESM you will need to replace any CommonJS syntax like `require()`, `module.exports`, or `__dirname`. If you haven't already, you may also consider adding `"type": "module"` to your package.json and converting your project to ESM.

#### Using implicit actions during rendering is deprecated

In Storybook 7, we inferred if the component accepts any action props,
by checking if it starts with `onX` (for example `onClick`), or as configured by `actions.argTypesRegex`.
If that was the case, we would fill in jest spies for those args automatically.

```ts
export default {
component: Button,
};

export const ButtonClick = {
play: async ({ args, canvasElement }) => {
await userEvent.click(within(canvasElement).getByRole('button'));
// args.onClick is a jest spy in 7.0
await expect(args.onClick).toHaveBeenCalled();
},
};
```

In Storybook 8 this feature will be removed, and spies have to added explicitly:

```ts
import { fn } from '@storybook/test';

export default {
component: Button,
args: {
onClick: fn(),
},
};

export const ButtonClick = {
play: async ({ args, canvasElement }) => {
await userEvent.click(within(canvasElement).getByRole('button'));
await expect(args.onClick).toHaveBeenCalled();
},
};
```

For more context, see this RFC:
https://github.com/storybookjs/storybook/discussions/23649

To summarize:

- This makes CSF files less magical and more portable, so that CSF files will render the same in a test environment where docgen is not available.
- This allows users and (test) integrators to run or build storybook without docgen, boosting the user performance and allows tools to give quicker feedback.
- This will make sure that we can one day lazy load docgen, without changing how stories are rendered.

#### typescript.skipBabel deprecated

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

#### Primary doc block accepts of prop

The `Primary` doc block now also accepts an `of` prop as described in the [Doc Blocks](#doc-blocks) section. It still accepts being passed `name` or no props at all.
Expand Down
75 changes: 61 additions & 14 deletions code/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
const path = require('path');
const fs = require('fs');

const scriptPath = path.join(__dirname, '..', 'scripts');

const addonsPackages = fs
.readdirSync(path.join(__dirname, 'addons'))
.filter((p) => fs.statSync(path.join(__dirname, 'addons', p)).isDirectory());
const libPackages = fs
.readdirSync(path.join(__dirname, 'lib'))
.filter((p) => fs.statSync(path.join(__dirname, 'lib', p)).isDirectory());
const uiPackages = fs
.readdirSync(path.join(__dirname, 'ui'))
.filter((p) => fs.statSync(path.join(__dirname, 'ui', p)).isDirectory())
.filter((p) => !p.startsWith('.'));

module.exports = {
root: true,
extends: [path.join(scriptPath, '.eslintrc.js')],
extends: [path.join(scriptPath, '.eslintrc.cjs')],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
Expand Down Expand Up @@ -53,7 +65,6 @@ module.exports = {
project: null,
},
rules: {
// '@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-throw-literal': 'off',
Expand All @@ -77,15 +88,7 @@ module.exports = {
},
{
// these packages use pre-bundling, dependencies will be bundled, and will be in devDepenencies
files: [
'addons/**/*',
'frameworks/**/*',
'lib/**/*',
'builders/**/*',
'deprecated/**/*',
'renderers/**/*',
'ui/**/*',
],
files: ['frameworks/**/*', 'builders/**/*', 'deprecated/**/*', 'renderers/**/*'],
excludedFiles: ['frameworks/angular/**/*', 'frameworks/ember/**/*', 'lib/core-server/**/*'],
rules: {
'import/no-extraneous-dependencies': [
Expand All @@ -95,11 +98,47 @@ module.exports = {
},
},
{
files: ['**/ui/*', '**/ui/.storybook/*'],
files: ['**/ui/.storybook/**'],
rules: {
'import/no-extraneous-dependencies': ['error', { packageDir: __dirname }],
'import/no-extraneous-dependencies': [
'error',
{ packageDir: [__dirname], devDependencies: true },
],
},
},
...addonsPackages.map((directory) => ({
files: [path.join('**', 'addons', directory, '**', '*.*')],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
packageDir: [__dirname, path.join(__dirname, 'addons', directory)],
devDependencies: true,
},
],
},
})),
...uiPackages.map((directory) => ({
files: [path.join('**', 'ui', directory, '**', '*.*')],
rules: {
'import/no-extraneous-dependencies': [
'error',
{ packageDir: [__dirname, path.join(__dirname, 'ui', directory)], devDependencies: true },
],
},
})),
...libPackages.map((directory) => ({
files: [path.join('**', 'lib', directory, '**', '*.*')],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
packageDir: [__dirname, path.join(__dirname, 'lib', directory)],
devDependencies: true,
},
],
},
})),
{
files: [
'**/__tests__/**',
Expand All @@ -121,16 +160,24 @@ module.exports = {
'react/require-default-props': 'off',
},
},
{ files: '**/.storybook/config.js', rules: { 'global-require': 'off' } },
{
files: ['**/*.stories.*'],
rules: {
'no-console': 'off',
},
},
{
files: ['**/renderers/preact/**/*'],
rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
},
{
files: ['**/*.tsx', '**/*.ts'],
rules: {
'no-shadow': 'off',
'@typescript-eslint/ban-types': 'warn', // should become error, in the future
'react/require-default-props': 'off',
'react/prop-types': 'off', // we should use types
'react/forbid-prop-types': 'off', // we should use types
Expand Down
Loading