Skip to content

Commit 1fe208e

Browse files
Merge pull request #25105 from storybookjs/valentin/set-engines-field-to-node-18
Maintenance: Set engines field to Node.js >= 18 for packages
2 parents fcd5cb8 + b6c438a commit 1fe208e

File tree

24 files changed

+28
-23
lines changed

24 files changed

+28
-23
lines changed

MIGRATION.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- [From version 7.x to 8.0.0](#from-version-7x-to-800)
44
- [Implicit actions can not be used during rendering (for example in the play function)](#implicit-actions-can-not-be-used-during-rendering-for-example-in-the-play-function)
55
- [Core changes](#core-changes)
6+
- [Dropping support for Node.js 16](#dropping-support-for-nodejs-16)
67
- [Autotitle breaking fixes](#autotitle-breaking-fixes)
78
- [React v18 in the manager UI (including addons)](#react-v18-in-the-manager-ui-including-addons)
89
- [Storyshots has been removed](#storyshots-has-been-removed)
@@ -380,6 +381,10 @@ To summarize:
380381

381382
### Core changes
382383

384+
#### Dropping support for Node.js 16
385+
386+
In Storybook 8, we have dropped Node.js 16 support since it reached end-of-life on 2023-09-11. Storybook 8 supports Node.js 18 and above.
387+
383388
#### Autotitle breaking fixes
384389

385390
In Storybook 7, the file name `path/to/foo.bar.stories.js` would result in the [autotitle](https://storybook.js.org/docs/react/configure/overview#configure-story-loading) `path/to/foo`. In 8.0, this has been changed to generate `path/to/foo.bar`. We consider this a bugfix but it is also a breaking change if you depended on the old behavior. To get the old titles, you can manually specify the desired title in the default export of your story file. For example:

code/frameworks/angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
}
112112
},
113113
"engines": {
114-
"node": ">=16.0.0"
114+
"node": ">=18.0.0"
115115
},
116116
"publishConfig": {
117117
"access": "public"

code/frameworks/ember/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
5555
},
5656
"engines": {
57-
"node": ">=16.0.0"
57+
"node": ">=18.0.0"
5858
},
5959
"publishConfig": {
6060
"access": "public"

code/frameworks/html-webpack5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@babel/core": "*"
6262
},
6363
"engines": {
64-
"node": ">=16.0.0"
64+
"node": ">=18.0.0"
6565
},
6666
"publishConfig": {
6767
"access": "public"

code/frameworks/preact-webpack5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"preact": "^8.0.0||^10.0.0"
6363
},
6464
"engines": {
65-
"node": ">=16.0.0"
65+
"node": ">=18.0.0"
6666
},
6767
"publishConfig": {
6868
"access": "public"

code/frameworks/react-webpack5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
}
7171
},
7272
"engines": {
73-
"node": ">=16.0.0"
73+
"node": ">=18.0.0"
7474
},
7575
"publishConfig": {
7676
"access": "public"

code/frameworks/server-webpack5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"typescript": "^5.3.2"
5858
},
5959
"engines": {
60-
"node": ">=16.0.0"
60+
"node": ">=18.0.0"
6161
},
6262
"publishConfig": {
6363
"access": "public"

code/frameworks/svelte-webpack5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"svelte-loader": "*"
6464
},
6565
"engines": {
66-
"node": ">=16.0.0"
66+
"node": ">=18.0.0"
6767
},
6868
"publishConfig": {
6969
"access": "public"

code/frameworks/vue3-webpack5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"vue": "^3.0.0"
6666
},
6767
"engines": {
68-
"node": ">=16.0.0"
68+
"node": ">=18.0.0"
6969
},
7070
"publishConfig": {
7171
"access": "public"

code/frameworks/web-components-webpack5/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"lit": "^2.0.0 || ^3.0.0"
6666
},
6767
"engines": {
68-
"node": ">=16.0.0"
68+
"node": ">=18.0.0"
6969
},
7070
"publishConfig": {
7171
"access": "public"

code/presets/html-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@babel/core": "*"
6262
},
6363
"engines": {
64-
"node": ">=16.0.0"
64+
"node": ">=18.0.0"
6565
},
6666
"publishConfig": {
6767
"access": "public"

code/presets/preact-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"preact": "^8.0.0||^10.0.0"
6464
},
6565
"engines": {
66-
"node": ">=16.0.0"
66+
"node": ">=18.0.0"
6767
},
6868
"publishConfig": {
6969
"access": "public"

code/presets/react-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
}
105105
},
106106
"engines": {
107-
"node": ">=16.0.0"
107+
"node": ">=18.0.0"
108108
},
109109
"publishConfig": {
110110
"access": "public"

code/presets/server-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"yaml": "^2.3.1"
7171
},
7272
"engines": {
73-
"node": ">=16.0.0"
73+
"node": ">=18.0.0"
7474
},
7575
"publishConfig": {
7676
"access": "public"

code/presets/svelte-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"svelte-loader": "*"
8181
},
8282
"engines": {
83-
"node": ">=16.0.0"
83+
"node": ">=18.0.0"
8484
},
8585
"publishConfig": {
8686
"access": "public"

code/presets/vue3-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"vue": "^3.0.0"
8181
},
8282
"engines": {
83-
"node": ">=16.0.0"
83+
"node": ">=18.0.0"
8484
},
8585
"publishConfig": {
8686
"access": "public"

code/presets/web-components-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"lit": "^2.0.0 || ^3.0.0"
6969
},
7070
"engines": {
71-
"node": ">=16.0.0"
71+
"node": ">=18.0.0"
7272
},
7373
"publishConfig": {
7474
"access": "public"

code/renderers/html/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@babel/core": "*"
6161
},
6262
"engines": {
63-
"node": ">=16.0.0"
63+
"node": ">=18.0.0"
6464
},
6565
"publishConfig": {
6666
"access": "public"

code/renderers/preact/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"preact": "^8.0.0||^10.0.0"
6161
},
6262
"engines": {
63-
"node": ">=16.0.0"
63+
"node": ">=18.0.0"
6464
},
6565
"publishConfig": {
6666
"access": "public"

code/renderers/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
}
8888
},
8989
"engines": {
90-
"node": ">=16.0.0"
90+
"node": ">=18.0.0"
9191
},
9292
"publishConfig": {
9393
"access": "public"

code/renderers/server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"typescript": "^5.3.2"
6161
},
6262
"engines": {
63-
"node": ">=16.0.0"
63+
"node": ">=18.0.0"
6464
},
6565
"publishConfig": {
6666
"access": "public"

code/renderers/svelte/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"svelte": "^4.0.0 || ^5.0.0-next.16"
7272
},
7373
"engines": {
74-
"node": ">=16.0.0"
74+
"node": ">=18.0.0"
7575
},
7676
"publishConfig": {
7777
"access": "public"

code/renderers/vue3/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"vue": "^3.0.0"
7272
},
7373
"engines": {
74-
"node": ">=16.0.0"
74+
"node": ">=18.0.0"
7575
},
7676
"publishConfig": {
7777
"access": "public"

code/renderers/web-components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"lit": "^2.0.0 || ^3.0.0"
7272
},
7373
"engines": {
74-
"node": ">=16.0.0"
74+
"node": ">=18.0.0"
7575
},
7676
"publishConfig": {
7777
"access": "public"

0 commit comments

Comments
 (0)