From f798003dbcbe77725744114d3febd44e491b5a18 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Tue, 11 Oct 2022 18:48:56 +0200 Subject: [PATCH] Revert "upgrade to use node 16 everywhere" This reverts commit 1fad1723dfebdbf481448b8219a8c30c5074960f. --- .circleci/config.yml | 4 +- .github/autolabeler.yml | 25 +++++++ .github/workflows/danger-js.yml | 2 +- .github/workflows/generate-repros-next.yml | 2 +- .github/workflows/generate-repros.yml | 2 +- .github/workflows/tests-unit.yml | 2 +- code/addons/interactions/package.json | 2 +- code/examples/angular-cli/package.json | 2 +- code/frameworks/angular/package.json | 2 +- code/frameworks/html-webpack5/package.json | 2 +- code/frameworks/preact-webpack5/package.json | 2 +- code/frameworks/react-vite/package.json | 2 +- code/frameworks/react-webpack5/package.json | 2 +- code/frameworks/server-webpack5/package.json | 2 +- code/frameworks/svelte-vite/package.json | 2 +- code/frameworks/vue-webpack5/package.json | 2 +- code/frameworks/vue3-vite/package.json | 2 +- code/frameworks/vue3-webpack5/package.json | 2 +- .../web-components-vite/package.json | 2 +- .../web-components-webpack5/package.json | 2 +- code/lib/builder-vite/package.json | 2 +- code/lib/builder-webpack5/package.json | 2 +- code/lib/core-common/package.json | 2 +- code/lib/core-server/package.json | 2 +- code/lib/core-webpack/package.json | 2 +- code/lib/theming/package.json | 2 +- code/package.json | 2 +- code/presets/html-webpack/package.json | 2 +- code/presets/preact-webpack/package.json | 2 +- code/presets/react-webpack/package.json | 2 +- code/presets/server-webpack/package.json | 2 +- code/presets/vue-webpack/package.json | 2 +- code/presets/vue3-webpack/package.json | 2 +- .../web-components-webpack/package.json | 2 +- code/renderers/react/package.json | 2 +- code/yarn.lock | 67 ++++++++++--------- netlify.toml | 2 +- scripts/.babelrc.js | 8 +-- scripts/package.json | 2 +- scripts/yarn.lock | 10 +-- 40 files changed, 108 insertions(+), 76 deletions(-) create mode 100644 .github/autolabeler.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 80c2149f9497..0ba0d0d3d638 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ executors: default: 'medium' working_directory: /tmp/storybook docker: - - image: cimg/node:16.17.1 + - image: cimg/node:14.19 environment: NODE_OPTIONS: --max_old_space_size=3076 resource_class: <> @@ -23,7 +23,7 @@ executors: default: 'medium' working_directory: /tmp/storybook docker: - - image: cimg/node:16.17.1-browsers + - image: cimg/node:14.19-browsers environment: NODE_OPTIONS: --max_old_space_size=3076 resource_class: <> diff --git a/.github/autolabeler.yml b/.github/autolabeler.yml new file mode 100644 index 000000000000..8adb8d840075 --- /dev/null +++ b/.github/autolabeler.yml @@ -0,0 +1,25 @@ +'addon: a11y': ['addons/a11y/**'] +'addon: actions': ['addons/actions/**'] +'addon: backgrounds': ['addons/backgrounds/**'] +'addon: events ': ['addons/events/**'] +'addon: graphql ': ['addons/graphql/**'] +'addon: info': ['addons/info/**'] +'addon: jest': ['addons/jest/**'] +'addon: knobs': ['addons/knobs/**'] +'addon: links': ['addons/links/**'] +'addon: notes': ['addons/notes/**'] +'addon: options': ['addons/options/**'] +'addon: storyshots': ['addons/storyshots/**'] +'addon: viewport': ['addons/viewport/**'] +'app: angular': ['app/angular/**'] +'app: preact': ['app/preact/**'] +'app: rax': ['app/rax/**'] +'app: react': ['app/react/**'] +'app: vue': ['app/vue/**'] +'app: svelte': ['app/svelte/**'] +'app: mithril': ['app/mithril/**'] +'babel / webpack': ['webpack', 'babel'] +'cli': ['lib/cli/**'] +'compatibility with other tools': [] +'documentation': ['docs', '*.md'] +'ui': ['lib/ui'] diff --git a/.github/workflows/danger-js.yml b/.github/workflows/danger-js.yml index 2ee462fde9f1..ad24e2a15920 100644 --- a/.github/workflows/danger-js.yml +++ b/.github/workflows/danger-js.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '14' - uses: actions/checkout@master - name: Danger JS uses: danger/danger-js@10.9.0 diff --git a/.github/workflows/generate-repros-next.yml b/.github/workflows/generate-repros-next.yml index e6423865dcab..272671f4c666 100644 --- a/.github/workflows/generate-repros-next.yml +++ b/.github/workflows/generate-repros-next.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 14 - uses: actions/checkout@v2 - name: Setup git user run: | diff --git a/.github/workflows/generate-repros.yml b/.github/workflows/generate-repros.yml index 9be313267787..43b11ccfcce2 100644 --- a/.github/workflows/generate-repros.yml +++ b/.github/workflows/generate-repros.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 14 - uses: actions/checkout@v2 - name: Setup git user run: | diff --git a/.github/workflows/tests-unit.yml b/.github/workflows/tests-unit.yml index 5e0a605f6dd0..5dcf0e463f48 100644 --- a/.github/workflows/tests-unit.yml +++ b/.github/workflows/tests-unit.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - node_version: [16] + node_version: [14, 16] include: - os: macos-latest node_version: 16 diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index e9444fbdde5e..6b44b3b2d83f 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -76,7 +76,7 @@ "devDependencies": { "@storybook/jest": "^0.0.10", "@storybook/testing-library": "0.0.14-next.0", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "formik": "^2.2.9", "typescript": "~4.6.3" }, diff --git a/code/examples/angular-cli/package.json b/code/examples/angular-cli/package.json index 68c49b4cb8c0..7ad07149ae93 100644 --- a/code/examples/angular-cli/package.json +++ b/code/examples/angular-cli/package.json @@ -61,7 +61,7 @@ "@storybook/source-loader": "7.0.0-alpha.35", "@storybook/testing-library": "0.0.14-next.0", "@types/jest": "^26.0.16", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "@types/sass": "^1", "@webcomponents/custom-elements": "^1.4.3", "global": "^4.4.0", diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 7bb61e957a46..563d3e1aa783 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -46,7 +46,7 @@ "@storybook/docs-tools": "7.0.0-alpha.35", "@storybook/node-logger": "7.0.0-alpha.35", "@storybook/store": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "@types/react": "^16.14.23", "@types/react-dom": "^16.9.14", "@types/semver": "^7.3.4", diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index c9150eee67ec..fd53eb660e1c 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/package.json @@ -54,7 +54,7 @@ "@storybook/core-common": "7.0.0-alpha.35", "@storybook/html": "7.0.0-alpha.35", "@storybook/preset-html-webpack": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0" diff --git a/code/frameworks/preact-webpack5/package.json b/code/frameworks/preact-webpack5/package.json index 298efad60c97..1b11b2ddfad4 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/package.json @@ -54,7 +54,7 @@ "@storybook/core-common": "7.0.0-alpha.35", "@storybook/preact": "7.0.0-alpha.35", "@storybook/preset-preact-webpack": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 05efcc2b9ee9..a9b8ef09e1a3 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -67,7 +67,7 @@ "vite": "^3.1.3" }, "devDependencies": { - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "typescript": "~4.6.3", "vite": "^3.1.3" }, diff --git a/code/frameworks/react-webpack5/package.json b/code/frameworks/react-webpack5/package.json index 881a770859f8..db990dab3045 100644 --- a/code/frameworks/react-webpack5/package.json +++ b/code/frameworks/react-webpack5/package.json @@ -54,7 +54,7 @@ "@storybook/builder-webpack5": "7.0.0-alpha.35", "@storybook/preset-react-webpack": "7.0.0-alpha.35", "@storybook/react": "7.0.0-alpha.35", - "@types/node": "^16.0.0" + "@types/node": "^14.14.20 || ^16.0.0" }, "devDependencies": { "jest-specific-snapshot": "^4.0.0", diff --git a/code/frameworks/server-webpack5/package.json b/code/frameworks/server-webpack5/package.json index 52c659d548e4..26889e59ed39 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/package.json @@ -54,7 +54,7 @@ "@storybook/core-common": "7.0.0-alpha.35", "@storybook/preset-server-webpack": "7.0.0-alpha.35", "@storybook/server": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index 02c7d1ac20cf..1222d220e903 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -67,7 +67,7 @@ "vite": "^3.1.3" }, "devDependencies": { - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "typescript": "~4.6.3", "vite": "^3.1.3" }, diff --git a/code/frameworks/vue-webpack5/package.json b/code/frameworks/vue-webpack5/package.json index b2b9143cad04..3cb6521256bd 100644 --- a/code/frameworks/vue-webpack5/package.json +++ b/code/frameworks/vue-webpack5/package.json @@ -54,7 +54,7 @@ "@storybook/core-common": "7.0.0-alpha.35", "@storybook/preset-vue-webpack": "7.0.0-alpha.35", "@storybook/vue": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index 0978f5cea021..4d8b865e55e7 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -65,7 +65,7 @@ "vue-docgen-api": "^4.40.0" }, "devDependencies": { - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "typescript": "~4.6.3", "vite": "^3.1.3" }, diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index 8c12b537f67c..fed71e848757 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/package.json @@ -54,7 +54,7 @@ "@storybook/core-common": "7.0.0-alpha.35", "@storybook/preset-vue3-webpack": "7.0.0-alpha.35", "@storybook/vue3": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index 4f82da8f5dd7..6c4a4a54cf89 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/package.json @@ -65,7 +65,7 @@ "vite": "3" }, "devDependencies": { - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "typescript": "~4.6.3", "vite": "^3.1.0" }, diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index 8ebbf2e716d9..cb44b38eb155 100644 --- a/code/frameworks/web-components-webpack5/package.json +++ b/code/frameworks/web-components-webpack5/package.json @@ -57,7 +57,7 @@ "@storybook/core-common": "7.0.0-alpha.35", "@storybook/preset-web-components-webpack": "7.0.0-alpha.35", "@storybook/web-components": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/lib/builder-vite/package.json b/code/lib/builder-vite/package.json index f8651f07065d..a4a4525282fd 100644 --- a/code/lib/builder-vite/package.json +++ b/code/lib/builder-vite/package.json @@ -38,7 +38,7 @@ "devDependencies": { "@storybook/mdx2-csf": "^0.0.3", "@types/express": "^4.17.13", - "@types/node": "^16.0.0", + "@types/node": "^17.0.23", "typescript": "~4.6.3", "vite": "^3.1.3" }, diff --git a/code/lib/builder-webpack5/package.json b/code/lib/builder-webpack5/package.json index 1f63144d85fd..8fa91559f0bc 100644 --- a/code/lib/builder-webpack5/package.json +++ b/code/lib/builder-webpack5/package.json @@ -50,7 +50,7 @@ "@storybook/router": "7.0.0-alpha.35", "@storybook/store": "7.0.0-alpha.35", "@storybook/theming": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.0.10 || ^16.0.0", "@types/semver": "^7.3.4", "babel-loader": "^8.2.5", "babel-plugin-named-exports-order": "^0.0.2", diff --git a/code/lib/core-common/package.json b/code/lib/core-common/package.json index 4e54660af2d4..a4adf0ef02e2 100644 --- a/code/lib/core-common/package.json +++ b/code/lib/core-common/package.json @@ -51,7 +51,7 @@ "@storybook/node-logger": "7.0.0-alpha.35", "@types/babel__core": "^7.0.0", "@types/express": "^4.7.0", - "@types/node": "^16.0.0", + "@types/node": "^14.0.10 || ^16.0.0", "@types/pretty-hrtime": "^1.0.0", "chalk": "^4.1.0", "esbuild": "^0.14.48", diff --git a/code/lib/core-server/package.json b/code/lib/core-server/package.json index 2b7154c93636..dd02adfb5067 100644 --- a/code/lib/core-server/package.json +++ b/code/lib/core-server/package.json @@ -45,7 +45,7 @@ "@storybook/node-logger": "7.0.0-alpha.35", "@storybook/store": "7.0.0-alpha.35", "@storybook/telemetry": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.0.10 || ^16.0.0", "@types/node-fetch": "^2.5.7", "@types/pretty-hrtime": "^1.0.0", "@types/semver": "^7.3.4", diff --git a/code/lib/core-webpack/package.json b/code/lib/core-webpack/package.json index 6a8abb036f5e..8241dbccb2db 100644 --- a/code/lib/core-webpack/package.json +++ b/code/lib/core-webpack/package.json @@ -44,7 +44,7 @@ "dependencies": { "@storybook/core-common": "7.0.0-alpha.35", "@storybook/node-logger": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.0.10 || ^16.0.0", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/lib/theming/package.json b/code/lib/theming/package.json index f875503f0f0b..bc8089c0fd6a 100644 --- a/code/lib/theming/package.json +++ b/code/lib/theming/package.json @@ -57,7 +57,7 @@ "@emotion/react": "^11.10.4", "@emotion/styled": "^11.10.4", "@types/fs-extra": "^9.0.6", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "deep-object-diff": "^1.1.0", "fs-extra": "^9.0.1", "global": "^4.4.0", diff --git a/code/package.json b/code/package.json index d0cad9b8bc10..3f6195844d07 100644 --- a/code/package.json +++ b/code/package.json @@ -240,7 +240,7 @@ "@types/jest": "^26.0.16", "@types/js-yaml": "^3.12.6", "@types/lodash": "^4.14.167", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "@types/node-cleanup": "^2.1.1", "@types/prompts": "2.0.11", "@types/react": "^16.14.23", diff --git a/code/presets/html-webpack/package.json b/code/presets/html-webpack/package.json index fe79a4f50a8d..ef81fcaffed0 100644 --- a/code/presets/html-webpack/package.json +++ b/code/presets/html-webpack/package.json @@ -51,7 +51,7 @@ }, "dependencies": { "@storybook/core-webpack": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "html-loader": "^3.1.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/presets/preact-webpack/package.json b/code/presets/preact-webpack/package.json index 3f239d674144..31b5c9374136 100644 --- a/code/presets/preact-webpack/package.json +++ b/code/presets/preact-webpack/package.json @@ -52,7 +52,7 @@ "dependencies": { "@babel/plugin-transform-react-jsx": "^7.12.12", "@storybook/core-webpack": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index 5a9a42ca0ac0..7b93e10ff897 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -79,7 +79,7 @@ "@storybook/node-logger": "7.0.0-alpha.35", "@storybook/react": "7.0.0-alpha.35", "@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "@types/semver": "^7.3.4", "babel-plugin-add-react-displayname": "^0.0.5", "babel-plugin-react-docgen": "^4.2.1", diff --git a/code/presets/server-webpack/package.json b/code/presets/server-webpack/package.json index 33f372a8a488..eaedbc9e6aab 100644 --- a/code/presets/server-webpack/package.json +++ b/code/presets/server-webpack/package.json @@ -58,7 +58,7 @@ "@storybook/core-server": "7.0.0-alpha.35", "@storybook/core-webpack": "7.0.0-alpha.35", "@storybook/server": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/presets/vue-webpack/package.json b/code/presets/vue-webpack/package.json index 10cdc3fb5573..2149da034e54 100644 --- a/code/presets/vue-webpack/package.json +++ b/code/presets/vue-webpack/package.json @@ -62,7 +62,7 @@ "dependencies": { "@storybook/core-webpack": "7.0.0-alpha.35", "@storybook/docs-tools": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "react": "16.14.0", "react-dom": "16.14.0", "ts-loader": "^9.2.8", diff --git a/code/presets/vue3-webpack/package.json b/code/presets/vue3-webpack/package.json index fedcd2094488..4f71b9c87065 100644 --- a/code/presets/vue3-webpack/package.json +++ b/code/presets/vue3-webpack/package.json @@ -62,7 +62,7 @@ "dependencies": { "@storybook/core-webpack": "7.0.0-alpha.35", "@storybook/docs-tools": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "react": "16.14.0", "react-dom": "16.14.0", "ts-loader": "^9.2.8", diff --git a/code/presets/web-components-webpack/package.json b/code/presets/web-components-webpack/package.json index b32b9f82c551..83e5a0784480 100644 --- a/code/presets/web-components-webpack/package.json +++ b/code/presets/web-components-webpack/package.json @@ -56,7 +56,7 @@ "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/preset-env": "^7.12.11", "@storybook/core-webpack": "7.0.0-alpha.35", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "babel-loader": "^7.0.0 || ^8.0.0", "babel-plugin-bundled-import-meta": "^0.3.1", "react": "16.14.0", diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index 7ea6bf157dac..453a81a1e519 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -58,7 +58,7 @@ "@storybook/docs-tools": "7.0.0-alpha.35", "@storybook/store": "7.0.0-alpha.35", "@types/estree": "^0.0.51", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "acorn": "^7.4.1", "acorn-jsx": "^5.3.1", "acorn-walk": "^7.2.0", diff --git a/code/yarn.lock b/code/yarn.lock index 520176e68521..4ef0c2b737df 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6612,7 +6612,7 @@ __metadata: "@storybook/jest": ^0.0.10 "@storybook/testing-library": 0.0.14-next.0 "@storybook/theming": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 formik: ^2.2.9 global: ^4.4.0 jest-mock: ^27.0.6 @@ -6996,7 +6996,7 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.35 "@storybook/store": 7.0.0-alpha.35 "@types/autoprefixer": ^9.7.2 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@types/react": ^16.14.23 "@types/react-dom": ^16.9.14 "@types/semver": ^7.3.4 @@ -7189,7 +7189,7 @@ __metadata: "@storybook/preview-web": 7.0.0-alpha.35 "@storybook/source-loader": 7.0.0-alpha.35 "@types/express": ^4.17.13 - "@types/node": ^16.0.0 + "@types/node": ^17.0.23 "@vitejs/plugin-react": ^2.0.0 browser-assert: ^1.2.1 es-module-lexer: ^0.9.3 @@ -7229,7 +7229,7 @@ __metadata: "@storybook/store": 7.0.0-alpha.35 "@storybook/theming": 7.0.0-alpha.35 "@types/case-sensitive-paths-webpack-plugin": ^2.1.6 - "@types/node": ^16.0.0 + "@types/node": ^14.0.10 || ^16.0.0 "@types/semver": ^7.3.4 "@types/terser-webpack-plugin": ^5.2.0 "@types/webpack-dev-middleware": ^5.3.0 @@ -7487,7 +7487,7 @@ __metadata: "@types/babel__core": ^7.0.0 "@types/express": ^4.7.0 "@types/mock-fs": ^4.13.0 - "@types/node": ^16.0.0 + "@types/node": ^14.0.10 || ^16.0.0 "@types/picomatch": ^2.3.0 "@types/pretty-hrtime": ^1.0.0 chalk: ^4.1.0 @@ -7556,7 +7556,7 @@ __metadata: "@storybook/telemetry": 7.0.0-alpha.35 "@types/compression": ^1.7.0 "@types/ip": ^1.1.0 - "@types/node": ^16.0.0 + "@types/node": ^14.0.10 || ^16.0.0 "@types/node-fetch": ^2.5.7 "@types/pretty-hrtime": ^1.0.0 "@types/semver": ^7.3.4 @@ -7609,7 +7609,7 @@ __metadata: dependencies: "@storybook/core-common": 7.0.0-alpha.35 "@storybook/node-logger": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.0.10 || ^16.0.0 ts-dedent: ^2.0.0 typescript: ~4.6.3 webpack: 5 @@ -7812,7 +7812,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.35 "@storybook/html": 7.0.0-alpha.35 "@storybook/preset-html-webpack": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -7992,7 +7992,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.35 "@storybook/preact": 7.0.0-alpha.35 "@storybook/preset-preact-webpack": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 preact: ^10.5.13 react: 16.14.0 react-dom: 16.14.0 @@ -8027,7 +8027,7 @@ __metadata: resolution: "@storybook/preset-html-webpack@workspace:presets/html-webpack" dependencies: "@storybook/core-webpack": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 html-loader: ^3.1.0 react: 16.14.0 react-dom: 16.14.0 @@ -8044,7 +8044,7 @@ __metadata: dependencies: "@babel/plugin-transform-react-jsx": ^7.12.12 "@storybook/core-webpack": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 preact: ^10.5.13 react: 16.14.0 react-dom: 16.14.0 @@ -8067,7 +8067,7 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.35 "@storybook/react": 7.0.0-alpha.35 "@storybook/react-docgen-typescript-plugin": 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@types/semver": ^7.3.4 "@types/util-deprecate": ^1.0.0 babel-plugin-add-react-displayname: ^0.0.5 @@ -8098,7 +8098,7 @@ __metadata: "@storybook/core-server": 7.0.0-alpha.35 "@storybook/core-webpack": 7.0.0-alpha.35 "@storybook/server": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 fs-extra: ^9.0.1 global: ^4.4.0 jest-specific-snapshot: ^4.0.0 @@ -8138,7 +8138,7 @@ __metadata: dependencies: "@storybook/core-webpack": 7.0.0-alpha.35 "@storybook/docs-tools": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 react: 16.14.0 react-dom: 16.14.0 ts-loader: ^9.2.8 @@ -8165,7 +8165,7 @@ __metadata: dependencies: "@storybook/core-webpack": 7.0.0-alpha.35 "@storybook/docs-tools": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@vue/compiler-sfc": ^3.2.33 react: 16.14.0 react-dom: 16.14.0 @@ -8192,7 +8192,7 @@ __metadata: "@babel/plugin-syntax-import-meta": ^7.10.4 "@babel/preset-env": ^7.12.11 "@storybook/core-webpack": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 babel-loader: ^7.0.0 || ^8.0.0 babel-plugin-bundled-import-meta: ^0.3.1 lit-html: 2.0.2 @@ -8259,7 +8259,7 @@ __metadata: "@storybook/client-api": 7.0.0-alpha.35 "@storybook/preview-web": 7.0.0-alpha.35 "@storybook/react": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@vitejs/plugin-react": ^2.0.0 ast-types: ^0.14.2 magic-string: ^0.26.1 @@ -8279,7 +8279,7 @@ __metadata: "@storybook/builder-webpack5": 7.0.0-alpha.35 "@storybook/preset-react-webpack": 7.0.0-alpha.35 "@storybook/react": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 jest-specific-snapshot: ^4.0.0 typescript: ~4.6.3 peerDependencies: @@ -8307,7 +8307,7 @@ __metadata: "@storybook/docs-tools": 7.0.0-alpha.35 "@storybook/store": 7.0.0-alpha.35 "@types/estree": ^0.0.51 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@types/util-deprecate": ^1.0.0 acorn: ^7.4.1 acorn-jsx: ^5.3.1 @@ -8458,7 +8458,7 @@ __metadata: "@types/jest": ^26.0.16 "@types/js-yaml": ^3.12.6 "@types/lodash": ^4.14.167 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@types/node-cleanup": ^2.1.1 "@types/prompts": 2.0.11 "@types/react": ^16.14.23 @@ -8646,7 +8646,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.35 "@storybook/preset-server-webpack": 7.0.0-alpha.35 "@storybook/server": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 react: 16.14.0 react-dom: 16.14.0 typescript: ~4.6.3 @@ -8723,7 +8723,7 @@ __metadata: "@storybook/preview-web": 7.0.0-alpha.35 "@storybook/svelte": 7.0.0-alpha.35 "@sveltejs/vite-plugin-svelte": ^1.0.0 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 magic-string: ^0.26.1 svelte: ^3.0.0 sveltedoc-parser: ^4.2.1 @@ -8820,7 +8820,7 @@ __metadata: "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 "@storybook/client-logger": 7.0.0-alpha.35 "@types/fs-extra": ^9.0.6 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 deep-object-diff: ^1.1.0 fs-extra: ^9.0.1 global: ^4.4.0 @@ -8923,7 +8923,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.35 "@storybook/preset-vue-webpack": 7.0.0-alpha.35 "@storybook/vue": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 react: 16.14.0 react-dom: 16.14.0 typescript: ~4.6.3 @@ -8952,7 +8952,7 @@ __metadata: "@storybook/core-server": 7.0.0-alpha.35 "@storybook/preview-web": 7.0.0-alpha.35 "@storybook/vue3": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@vitejs/plugin-vue": ^3.0.0 magic-string: ^0.26.1 typescript: ~4.6.3 @@ -8969,7 +8969,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.35 "@storybook/preset-vue3-webpack": 7.0.0-alpha.35 "@storybook/vue3": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@vue/compiler-sfc": 3.0.0 react: 16.14.0 react-dom: 16.14.0 @@ -9043,7 +9043,7 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.35 "@storybook/preview-web": 7.0.0-alpha.35 "@storybook/web-components": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@vitejs/plugin-vue": ^3.0.3 magic-string: ^0.26.1 typescript: ~4.6.3 @@ -9060,7 +9060,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.35 "@storybook/preset-web-components-webpack": 7.0.0-alpha.35 "@storybook/web-components": 7.0.0-alpha.35 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 lit-html: 2.0.2 react: 16.14.0 react-dom: 16.14.0 @@ -9922,13 +9922,20 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^16.0.0": +"@types/node@npm:^14.0.10 || ^16.0.0, @types/node@npm:^14.14.20 || ^16.0.0": version: 16.11.65 resolution: "@types/node@npm:16.11.65" checksum: 5d66c2e0119ff194b2e196b0016d5d083fd332a114cea04822fbc22a7733b2feba0db9de380a289f457312a24b2f313396084b682d670038f5b2ced2d14fc659 languageName: node linkType: hard +"@types/node@npm:^17.0.23": + version: 17.0.45 + resolution: "@types/node@npm:17.0.45" + checksum: 0db377133d709b33a47892581a21a41cd7958f22723a3cc6c71d55ac018121382de42fbfc7970d5ae3e7819dbe5f40e1c6a5174aedf7e7964e9cb8fa72b580b0 + languageName: node + linkType: hard + "@types/normalize-package-data@npm:^2.4.0": version: 2.4.1 resolution: "@types/normalize-package-data@npm:2.4.1" @@ -11665,7 +11672,7 @@ __metadata: "@storybook/source-loader": 7.0.0-alpha.35 "@storybook/testing-library": 0.0.14-next.0 "@types/jest": ^26.0.16 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@types/sass": ^1 "@webcomponents/custom-elements": ^1.4.3 global: ^4.4.0 diff --git a/netlify.toml b/netlify.toml index 02524193f8d9..7e062ca407be 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,7 +2,7 @@ publish = "code/built-storybooks" command = "yarn task --task compile --start-from=auto --no-link && cd code && yarn build-storybooks --all" [build.environment] - NODE_VERSION = "16" + NODE_VERSION = "14" YARN_VERSION = "1.22.10" DOTENV_DISPLAY_WARNING = "none" STORYBOOK_EXAMPLE_APP ="true" diff --git a/scripts/.babelrc.js b/scripts/.babelrc.js index effa585e527e..239b0bd63340 100644 --- a/scripts/.babelrc.js +++ b/scripts/.babelrc.js @@ -6,7 +6,7 @@ const withTests = { shippedProposals: true, useBuiltIns: 'usage', corejs: '3', - targets: { node: '16' }, + targets: { node: 'current' }, }, ], ], @@ -23,7 +23,7 @@ const modules = process.env.BABEL_MODE === 'cjs' ? 'auto' : false; // FIXME: optional chaining introduced in chrome 80, not supported by wepback4 // https://github.com/webpack/webpack/issues/10227#issuecomment-642734920 -const targets = process.env.BABEL_MODE === 'esm' ? { chrome: '100' } : { node: '16' }; +const targets = process.env.BABEL_MODE === 'esm' ? { chrome: '100' } : { node: 'current' }; module.exports = { compact: false, @@ -147,7 +147,7 @@ module.exports = { shippedProposals: true, useBuiltIns: 'usage', targets: { - node: '16', + node: '14', }, modules, corejs: '3', @@ -179,7 +179,7 @@ module.exports = { shippedProposals: true, useBuiltIns: 'usage', targets: { - node: '16', + node: '14', }, corejs: '3', modules: false, diff --git a/scripts/package.json b/scripts/package.json index d914897a238a..b04debc8b93f 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -80,7 +80,7 @@ "@types/fs-extra": "^9.0.6", "@types/jest": "^26.0.16", "@types/js-yaml": "^3.12.6", - "@types/node": "^16.0.0", + "@types/node": "^14.14.20 || ^16.0.0", "@types/node-cleanup": "^2.1.1", "@types/node-fetch": "^2.5.7", "@types/prompts": "2.0.11", diff --git a/scripts/yarn.lock b/scripts/yarn.lock index ba24134c4f1e..e21f930fb21a 100644 --- a/scripts/yarn.lock +++ b/scripts/yarn.lock @@ -3367,7 +3367,7 @@ __metadata: "@types/jest": ^26.0.16 "@types/js-yaml": ^3.12.6 "@types/lodash": ^4 - "@types/node": ^16.0.0 + "@types/node": ^14.14.20 || ^16.0.0 "@types/node-cleanup": ^2.1.1 "@types/node-fetch": ^2.5.7 "@types/prompts": 2.0.11 @@ -3979,10 +3979,10 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^16.0.0": - version: 16.11.65 - resolution: "@types/node@npm:16.11.65" - checksum: 5d66c2e0119ff194b2e196b0016d5d083fd332a114cea04822fbc22a7733b2feba0db9de380a289f457312a24b2f313396084b682d670038f5b2ced2d14fc659 +"@types/node@npm:^14.14.20 || ^16.0.0": + version: 16.11.64 + resolution: "@types/node@npm:16.11.64" + checksum: 4b5ee37e3d2dc3364abbffee7e9f4c27fc22b44305ff5920fcc1b7fe08343bf113fface6a565c2406f77f8818d5ddcfb31652df6a43e4ab971976256d176bf37 languageName: node linkType: hard