Skip to content

Commit c51eb57

Browse files
authored
Merge pull request #28815 from storybookjs/version-non-patch-from-8.3.0-alpha.4
2 parents 70079f4 + c65379c commit c51eb57

File tree

1,880 files changed

+20897
-6492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,880 files changed

+20897
-6492
lines changed

.circleci/config.yml

+49-26
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ parameters:
1616
default: "next"
1717

1818
executors:
19-
sb_node_18_classic:
19+
sb_node_22_classic:
2020
parameters:
2121
class:
2222
description: The Resource class
@@ -25,7 +25,7 @@ executors:
2525
default: "small"
2626
working_directory: /tmp/storybook
2727
docker:
28-
- image: cimg/node:18.19.1
28+
- image: cimg/node:22.6.0
2929
environment:
3030
NODE_OPTIONS: --max_old_space_size=6144
3131
resource_class: <<parameters.class>>
@@ -38,7 +38,20 @@ executors:
3838
default: "small"
3939
working_directory: /tmp/storybook
4040
docker:
41-
- image: cimg/node:18.19.1-browsers
41+
- image: cimg/node:18.20.3-browsers
42+
environment:
43+
NODE_OPTIONS: --max_old_space_size=6144
44+
resource_class: <<parameters.class>>
45+
sb_node_22_browsers:
46+
parameters:
47+
class:
48+
description: The Resource class
49+
type: enum
50+
enum: ["small", "medium", "medium+", "large", "xlarge"]
51+
default: "small"
52+
working_directory: /tmp/storybook
53+
docker:
54+
- image: cimg/node:22.6.0-browsers
4255
environment:
4356
NODE_OPTIONS: --max_old_space_size=6144
4457
resource_class: <<parameters.class>>
@@ -74,7 +87,6 @@ orbs:
7487
browser-tools: circleci/[email protected]
7588
discord: antonioned/[email protected]
7689
codecov: codecov/[email protected]
77-
bun-orb: cmgriffing/[email protected]
7890
node: circleci/[email protected]
7991
8092

@@ -109,7 +121,7 @@ jobs:
109121
pretty-docs:
110122
executor:
111123
class: medium
112-
name: sb_node_18_classic
124+
name: sb_node_22_classic
113125
steps:
114126
- git-shallow-clone/checkout_advanced:
115127
clone_options: "--depth 1 --verbose"
@@ -135,12 +147,10 @@ jobs:
135147
build:
136148
executor:
137149
class: xlarge
138-
name: sb_node_18_classic
150+
name: sb_node_22_classic
139151
steps:
140152
- git-shallow-clone/checkout_advanced:
141153
clone_options: "--depth 1 --verbose"
142-
- bun-orb/setup:
143-
version: 1.1.1
144154
- restore_cache:
145155
name: Restore Yarn cache
146156
keys:
@@ -182,7 +192,7 @@ jobs:
182192
lint:
183193
executor:
184194
class: large
185-
name: sb_node_18_classic
195+
name: sb_node_22_classic
186196
steps:
187197
- git-shallow-clone/checkout_advanced:
188198
clone_options: "--depth 1 --verbose"
@@ -198,12 +208,10 @@ jobs:
198208
check:
199209
executor:
200210
class: xlarge
201-
name: sb_node_18_classic
211+
name: sb_node_22_classic
202212
steps:
203213
- git-shallow-clone/checkout_advanced:
204214
clone_options: "--depth 1 --verbose"
205-
- bun-orb/setup:
206-
version: 1.1.1
207215
- attach_workspace:
208216
at: .
209217
- nx/set-shas:
@@ -218,7 +226,7 @@ jobs:
218226
- report-workflow-on-failure
219227
- cancel-workflow-on-failure
220228
script-checks:
221-
executor: sb_node_18_browsers
229+
executor: sb_node_22_browsers
222230
steps:
223231
- git-shallow-clone/checkout_advanced:
224232
clone_options: "--depth 1 --verbose"
@@ -238,15 +246,15 @@ jobs:
238246
name: Run tests
239247
command: |
240248
cd scripts
241-
yarn test --coverage
249+
yarn test --coverage --coverage.all=false
242250
- store_test_results:
243251
path: scripts/junit.xml
244252
- report-workflow-on-failure
245253
- cancel-workflow-on-failure
246254
unit-tests:
247255
executor:
248256
class: xlarge
249-
name: sb_node_18_browsers
257+
name: sb_node_22_browsers
250258
steps:
251259
- git-shallow-clone/checkout_advanced:
252260
clone_options: "--depth 1 --verbose"
@@ -256,7 +264,7 @@ jobs:
256264
name: Test
257265
command: |
258266
cd code
259-
yarn test --coverage
267+
yarn test --coverage --coverage.all=false
260268
- store_test_results:
261269
path: code/junit.xml
262270
- persist_to_workspace:
@@ -268,7 +276,7 @@ jobs:
268276
coverage:
269277
executor:
270278
class: small
271-
name: sb_node_18_browsers
279+
name: sb_node_22_browsers
272280
steps:
273281
- git-shallow-clone/checkout_advanced:
274282
clone_options: "--depth 1 --verbose"
@@ -279,7 +287,7 @@ jobs:
279287
chromatic-internal-storybook:
280288
executor:
281289
class: medium+
282-
name: sb_node_18_browsers
290+
name: sb_node_22_browsers
283291
environment:
284292
NODE_OPTIONS: --max_old_space_size=6144
285293
steps:
@@ -301,7 +309,7 @@ jobs:
301309
type: integer
302310
executor:
303311
class: medium
304-
name: sb_node_18_browsers
312+
name: sb_node_22_browsers
305313
parallelism: << parameters.parallelism >>
306314
steps:
307315
- git-shallow-clone/checkout_advanced:
@@ -348,18 +356,16 @@ jobs:
348356
type: integer
349357
executor:
350358
class: large
351-
name: sb_node_18_browsers
359+
name: sb_node_22_browsers
352360
parallelism: << parameters.parallelism >>
353361
steps:
354362
- git-shallow-clone/checkout_advanced:
355363
clone_options: "--depth 1 --verbose"
356-
- bun-orb/setup:
357-
version: 1.1.1
358364
- attach_workspace:
359365
at: .
360366
- run:
361367
name: Starting Event Collector
362-
command: node --loader esbuild-register/loader -r esbuild-register ./event-log-collector.ts
368+
command: yarn jiti ./event-log-collector.ts
363369
working_directory: scripts
364370
background: true
365371
- run:
@@ -373,7 +379,7 @@ jobs:
373379
TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task build)
374380
if [[ $TEMPLATE != bench/* ]]
375381
then
376-
node --loader esbuild-register/loader -r esbuild-register ./event-log-checker.ts build $TEMPLATE
382+
yarn jiti ./event-log-checker.ts build $TEMPLATE
377383
fi
378384
working_directory: scripts
379385
- report-workflow-on-failure:
@@ -431,7 +437,7 @@ jobs:
431437
type: integer
432438
executor:
433439
class: medium
434-
name: sb_node_18_browsers
440+
name: sb_node_22_browsers
435441
parallelism: << parameters.parallelism >>
436442
steps:
437443
- checkout
@@ -514,7 +520,7 @@ jobs:
514520
test-empty-init:
515521
executor:
516522
class: medium
517-
name: sb_node_18_browsers
523+
name: sb_node_22_browsers
518524
parameters:
519525
packageManager:
520526
type: string
@@ -602,6 +608,23 @@ jobs:
602608
IN_STORYBOOK_SANDBOX: true
603609
STORYBOOK_INIT_EMPTY_TYPE: << parameters.template >>
604610
STORYBOOK_DISABLE_TELEMETRY: true
611+
- when:
612+
condition:
613+
equal: ["react-vite-ts", << parameters.template >>]
614+
steps:
615+
- run:
616+
name: Storybook init from empty directory (--skip-install)
617+
command: |
618+
cd code
619+
yarn local-registry --open &
620+
cd ../../
621+
mkdir empty-<< parameters.template >>-no-install
622+
cd empty-<< parameters.template >>-no-install
623+
npx storybook init --yes --skip-install
624+
environment:
625+
IN_STORYBOOK_SANDBOX: true
626+
STORYBOOK_INIT_EMPTY_TYPE: << parameters.template >>
627+
STORYBOOK_DISABLE_TELEMETRY: true
605628
- report-workflow-on-failure
606629
test-portable-stories:
607630
parameters:

.git-blame-ignore-revs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
c0896915fb7fb9a8dd416b9aebca17abd909d1c1
33
a41c227037e7e7249b8b376f838f4f8bcc3e3e59
44
13c46e6c0b7f3dd8cf4ba42d1cfd6714f4777d54
5-
0a4522a3f84773f39daec4820c49b8a92e9f9d11
5+
0a4522a3f84773f39daec4820c49b8a92e9f9d11
6+
e12039c0593ba021ce27cb7245b6067677f27625
7+
513bb66bb9729ece57581b6eb50e5b338c47c0b9

.github/workflows/canary-release-pr.yml

-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ jobs:
6060
with:
6161
node-version-file: ".nvmrc"
6262

63-
- uses: oven-sh/setup-bun@v1
64-
with:
65-
bun-version: 1.1.1
66-
6763
- name: Cache dependencies
6864
uses: actions/cache@v4
6965
with:

.github/workflows/generate-sandboxes.yml

-8
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ jobs:
2929
- uses: actions/checkout@v4
3030
with:
3131
ref: next
32-
33-
- uses: oven-sh/setup-bun@v1
34-
with:
35-
bun-version: 1.1.1
3632

3733
- uses: actions/setup-node@v4
3834
with:
@@ -86,10 +82,6 @@ jobs:
8682
with:
8783
ref: main
8884

89-
- uses: oven-sh/setup-bun@v1
90-
with:
91-
bun-version: 1.1.1
92-
9385
- uses: actions/setup-node@v4
9486
with:
9587
node-version-file: ".nvmrc"

.github/workflows/prepare-non-patch-release.yml

-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ jobs:
5656
with:
5757
node-version-file: ".nvmrc"
5858

59-
- uses: oven-sh/setup-bun@v1
60-
with:
61-
bun-version: 1.1.1
62-
6359
- name: Cache dependencies
6460
uses: actions/cache@v4
6561
with:

.github/workflows/prepare-patch-release.yml

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ jobs:
3535
with:
3636
node-version-file: ".nvmrc"
3737

38-
- uses: oven-sh/setup-bun@v1
39-
with:
40-
bun-version: 1.1.1
41-
4238
- name: Cache dependencies
4339
uses: actions/cache@v4
4440
with:

.github/workflows/publish.yml

-4
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ jobs:
4747
with:
4848
node-version-file: ".nvmrc"
4949

50-
- uses: oven-sh/setup-bun@v1
51-
with:
52-
bun-version: 1.1.1
53-
5450
- name: Cache dependencies
5551
uses: actions/cache@v4
5652
with:

.github/workflows/tests-unit.yml

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: oven-sh/setup-bun@v1
21-
with:
22-
bun-version: 1.1.1
2320
- name: Set node version
2421
uses: actions/setup-node@v4
2522
with:

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.19.1
1+
22.6.0

.vscode/settings.json

+5-14
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@
2424
"eslint.options": {
2525
"cache": true,
2626
"cacheLocation": ".cache/eslint",
27-
"extensions": [
28-
".js",
29-
".jsx",
30-
".mjs",
31-
".json",
32-
".ts",
33-
".tsx"
34-
]
27+
"extensions": [".js", ".jsx", ".mjs", ".json", ".ts", ".tsx"]
3528
},
3629
"eslint.useESLintClass": true,
3730
"eslint.validate": [
@@ -42,10 +35,7 @@
4235
"typescript",
4336
"typescriptreact"
4437
],
45-
"eslint.workingDirectories": [
46-
"./code",
47-
"./scripts"
48-
],
38+
"eslint.workingDirectories": ["./code", "./scripts"],
4939
"files.associations": {
5040
"*.js": "javascriptreact"
5141
},
@@ -59,5 +49,6 @@
5949
"typescript.preferences.preferTypeOnlyAutoImports": true,
6050
"typescript.preferences.quoteStyle": "single",
6151
"typescript.preferGoToSourceDefinition": true,
62-
"typescript.tsdk": "./code/node_modules/typescript/lib"
63-
}
52+
"typescript.tsdk": "./code/node_modules/typescript/lib",
53+
"vitest.workspaceConfig": "./code/vitest.workspace.ts"
54+
}

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 8.2.8
2+
3+
- CLI: Parse more Yarn Berry errors - [#28816](https://github.com/storybookjs/storybook/pull/28816), thanks @yannbf!
4+
- Fix: Invariant failed: Expected package.json#version to be defined in the "undefined" package - [#28752](https://github.com/storybookjs/storybook/pull/28752), thanks @abcdmku!
5+
16
## 8.2.7
27

38
- CPC: Fix type usage in renderers - [#28745](https://github.com/storybookjs/storybook/pull/28745), thanks @ndelangen!

CHANGELOG.prerelease.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 8.3.0-alpha.5
2+
3+
- Builder-Vite: Add null character prefix to virtual file IDs - [#28863](https://github.com/storybookjs/storybook/pull/28863), thanks @valentinpalkovic!
4+
- CLI: Fix `init --skip-install` - [#28853](https://github.com/storybookjs/storybook/pull/28853), thanks @ndelangen!
5+
- CLI: Parse more Yarn Berry errors - [#28816](https://github.com/storybookjs/storybook/pull/28816), thanks @yannbf!
6+
- Core: Make sure CJS build always has lowest prio - [#28829](https://github.com/storybookjs/storybook/pull/28829), thanks @kasperpeulen!
7+
- Maintenance: Add `node:`-prefix to node core-modules - [#28860](https://github.com/storybookjs/storybook/pull/28860), thanks @ndelangen!
8+
- Next.js: Add @storybook/nextjs-vite package - [#28800](https://github.com/storybookjs/storybook/pull/28800), thanks @valentinpalkovic!
9+
- React: Bundle in `lodash` - [#28609](https://github.com/storybookjs/storybook/pull/28609), thanks @ndelangen!
10+
- Telemetry: Add globals stats - [#28822](https://github.com/storybookjs/storybook/pull/28822), thanks @shilman!
11+
- Telemetry: Add portable stories - [#26764](https://github.com/storybookjs/storybook/pull/26764), thanks @shilman!
12+
- Telemetry: Disable save-from-controls logs for example stories - [#28870](https://github.com/storybookjs/storybook/pull/28870), thanks @shilman!
13+
- Test: Upgrade Vitest to v2 - [#28788](https://github.com/storybookjs/storybook/pull/28788), thanks @yannbf!
14+
115
## 8.3.0-alpha.4
216

317
- CSF: Allow overridding globals at the story level - [#26654](https://github.com/storybookjs/storybook/pull/26654), thanks @tmeasday!

CONTRIBUTING.md

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ You will need to have the following installed:
88
- git
99
- node
1010
- yarn
11-
- [bun](https://bun.sh/)
1211

1312
## Using fnm as a Node version manager
1413

0 commit comments

Comments
 (0)