diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d82a9f02e3d..972358244954 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ executors: default: 'medium' working_directory: /tmp/storybook docker: - - image: cimg/node:14.19 + - image: cimg/node:16.17.1 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:14.19-browsers + - image: cimg/node:16.17.1-browsers environment: NODE_OPTIONS: --max_old_space_size=3076 resource_class: <> diff --git a/.github/autolabeler.yml b/.github/autolabeler.yml deleted file mode 100644 index 8adb8d840075..000000000000 --- a/.github/autolabeler.yml +++ /dev/null @@ -1,25 +0,0 @@ -'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 ad24e2a15920..2ee462fde9f1 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: '14' + node-version: '16' - 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 5c1bcfe05c9e..6126cdb91108 100644 --- a/.github/workflows/generate-repros-next.yml +++ b/.github/workflows/generate-repros-next.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 16 - uses: actions/checkout@v2 - name: Setup git user run: | diff --git a/.github/workflows/generate-repros.yml b/.github/workflows/generate-repros.yml index 43b11ccfcce2..9be313267787 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: 14 + node-version: 16 - uses: actions/checkout@v2 - name: Setup git user run: | diff --git a/.github/workflows/tests-unit.yml b/.github/workflows/tests-unit.yml index 5dcf0e463f48..5e0a605f6dd0 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: [14, 16] + node_version: [16] include: - os: macos-latest node_version: 16 diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index 72489ff11586..841e6ece5392 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": "^14.14.20 || ^16.0.0", + "@types/node": "^16.0.0", "formik": "^2.2.9", "typescript": "~4.6.3" }, diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index bc4d44c4b491..6fd72c3ce2a6 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -46,7 +46,7 @@ "@storybook/docs-tools": "7.0.0-alpha.37", "@storybook/node-logger": "7.0.0-alpha.37", "@storybook/store": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 29fc97ed88a5..7a08e2a9400c 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.37", "@storybook/html": "7.0.0-alpha.37", "@storybook/preset-html-webpack": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 3dbd9ca55fbe..6f2cfb94160a 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.37", "@storybook/preact": "7.0.0-alpha.37", "@storybook/preset-preact-webpack": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 1e6bb981dc3d..7c64b646adbe 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": "^14.14.20 || ^16.0.0", + "@types/node": "^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 3088f6f90dee..179b1a241088 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.37", "@storybook/preset-react-webpack": "7.0.0-alpha.37", "@storybook/react": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0" + "@types/node": "^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 47d9b5900384..68674f164d1b 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.37", "@storybook/preset-server-webpack": "7.0.0-alpha.37", "@storybook/server": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 bfde3d29bf8d..f53589c97ca2 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": "^14.14.20 || ^16.0.0", + "@types/node": "^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 5158e319a16d..56a602020322 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.37", "@storybook/preset-vue-webpack": "7.0.0-alpha.37", "@storybook/vue": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 df1062606c55..050648d9ffb5 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": "^14.14.20 || ^16.0.0", + "@types/node": "^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 5b8d71351a3e..d2748ac5f65e 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.37", "@storybook/preset-vue3-webpack": "7.0.0-alpha.37", "@storybook/vue3": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 5c6c8f5d0968..a7f11f0a6ed5 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": "^14.14.20 || ^16.0.0", + "@types/node": "^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 599570b7b97d..ca570da85294 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.37", "@storybook/preset-web-components-webpack": "7.0.0-alpha.37", "@storybook/web-components": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 2d1b9171ea56..a776407fb9e8 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": "^17.0.23", + "@types/node": "^16.0.0", "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 c1374bb6b174..d64b2270f2b2 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.37", "@storybook/store": "7.0.0-alpha.37", "@storybook/theming": "7.0.0-alpha.37", - "@types/node": "^14.0.10 || ^16.0.0", + "@types/node": "^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 a9c95226fc54..78eba1114f03 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.37", "@types/babel__core": "^7.0.0", "@types/express": "^4.7.0", - "@types/node": "^14.0.10 || ^16.0.0", + "@types/node": "^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 5f7a80d2284f..127e14bec7d7 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.37", "@storybook/store": "7.0.0-alpha.37", "@storybook/telemetry": "7.0.0-alpha.37", - "@types/node": "^14.0.10 || ^16.0.0", + "@types/node": "^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 397aa59f89b4..87dfb8c7a887 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.37", "@storybook/node-logger": "7.0.0-alpha.37", - "@types/node": "^14.0.10 || ^16.0.0", + "@types/node": "^16.0.0", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/lib/theming/package.json b/code/lib/theming/package.json index 099955198244..95d7100810aa 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": "^14.14.20 || ^16.0.0", + "@types/node": "^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 9a5439d67eea..70e5040ab7fe 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": "^14.14.20 || ^16.0.0", + "@types/node": "^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 8c0b6e5063a2..dbd485e00953 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.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 270a7fa58a06..ea768d31993d 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.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 02fc9b89669a..40a4c5d2fc52 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.37", "@storybook/react": "7.0.0-alpha.37", "@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 52e34d8349d1..f9ea87675e45 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.37", "@storybook/core-webpack": "7.0.0-alpha.37", "@storybook/server": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 974f0a854347..c2f6a3cb43da 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.37", "@storybook/docs-tools": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 88419651a94f..991c2b726d86 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.37", "@storybook/docs-tools": "7.0.0-alpha.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 d07531849d87..3c7b1e60a152 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.37", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 6585e2925f65..f373dc792357 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -58,7 +58,7 @@ "@storybook/docs-tools": "7.0.0-alpha.37", "@storybook/store": "7.0.0-alpha.37", "@types/estree": "^0.0.51", - "@types/node": "^14.14.20 || ^16.0.0", + "@types/node": "^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 ae80037f984c..311e69a54b13 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6600,7 +6600,7 @@ __metadata: "@storybook/jest": ^0.0.10 "@storybook/testing-library": 0.0.14-next.0 "@storybook/theming": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 formik: ^2.2.9 global: ^4.4.0 jest-mock: ^27.0.6 @@ -6984,7 +6984,7 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.37 "@storybook/store": 7.0.0-alpha.37 "@types/autoprefixer": ^9.7.2 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@types/react": ^16.14.23 "@types/react-dom": ^16.9.14 "@types/semver": ^7.3.4 @@ -7178,7 +7178,7 @@ __metadata: "@storybook/preview-web": 7.0.0-alpha.37 "@storybook/source-loader": 7.0.0-alpha.37 "@types/express": ^4.17.13 - "@types/node": ^17.0.23 + "@types/node": ^16.0.0 "@vitejs/plugin-react": ^2.0.0 browser-assert: ^1.2.1 es-module-lexer: ^0.9.3 @@ -7218,7 +7218,7 @@ __metadata: "@storybook/store": 7.0.0-alpha.37 "@storybook/theming": 7.0.0-alpha.37 "@types/case-sensitive-paths-webpack-plugin": ^2.1.6 - "@types/node": ^14.0.10 || ^16.0.0 + "@types/node": ^16.0.0 "@types/semver": ^7.3.4 "@types/terser-webpack-plugin": ^5.2.0 "@types/webpack-dev-middleware": ^5.3.0 @@ -7474,7 +7474,7 @@ __metadata: "@types/babel__core": ^7.0.0 "@types/express": ^4.7.0 "@types/mock-fs": ^4.13.0 - "@types/node": ^14.0.10 || ^16.0.0 + "@types/node": ^16.0.0 "@types/picomatch": ^2.3.0 "@types/pretty-hrtime": ^1.0.0 chalk: ^4.1.0 @@ -7543,7 +7543,7 @@ __metadata: "@storybook/telemetry": 7.0.0-alpha.37 "@types/compression": ^1.7.0 "@types/ip": ^1.1.0 - "@types/node": ^14.0.10 || ^16.0.0 + "@types/node": ^16.0.0 "@types/node-fetch": ^2.5.7 "@types/pretty-hrtime": ^1.0.0 "@types/semver": ^7.3.4 @@ -7596,7 +7596,7 @@ __metadata: dependencies: "@storybook/core-common": 7.0.0-alpha.37 "@storybook/node-logger": 7.0.0-alpha.37 - "@types/node": ^14.0.10 || ^16.0.0 + "@types/node": ^16.0.0 ts-dedent: ^2.0.0 typescript: ~4.6.3 webpack: 5 @@ -7799,7 +7799,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.37 "@storybook/html": 7.0.0-alpha.37 "@storybook/preset-html-webpack": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -7979,7 +7979,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.37 "@storybook/preact": 7.0.0-alpha.37 "@storybook/preset-preact-webpack": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 preact: ^10.5.13 react: 16.14.0 react-dom: 16.14.0 @@ -8014,7 +8014,7 @@ __metadata: resolution: "@storybook/preset-html-webpack@workspace:presets/html-webpack" dependencies: "@storybook/core-webpack": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 html-loader: ^3.1.0 react: 16.14.0 react-dom: 16.14.0 @@ -8031,7 +8031,7 @@ __metadata: dependencies: "@babel/plugin-transform-react-jsx": ^7.12.12 "@storybook/core-webpack": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 preact: ^10.5.13 react: 16.14.0 react-dom: 16.14.0 @@ -8054,7 +8054,7 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.37 "@storybook/react": 7.0.0-alpha.37 "@storybook/react-docgen-typescript-plugin": 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@types/semver": ^7.3.4 "@types/util-deprecate": ^1.0.0 babel-plugin-add-react-displayname: ^0.0.5 @@ -8085,7 +8085,7 @@ __metadata: "@storybook/core-server": 7.0.0-alpha.37 "@storybook/core-webpack": 7.0.0-alpha.37 "@storybook/server": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 fs-extra: ^9.0.1 global: ^4.4.0 jest-specific-snapshot: ^4.0.0 @@ -8125,7 +8125,7 @@ __metadata: dependencies: "@storybook/core-webpack": 7.0.0-alpha.37 "@storybook/docs-tools": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 react: 16.14.0 react-dom: 16.14.0 ts-loader: ^9.2.8 @@ -8152,7 +8152,7 @@ __metadata: dependencies: "@storybook/core-webpack": 7.0.0-alpha.37 "@storybook/docs-tools": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@vue/compiler-sfc": ^3.2.33 react: 16.14.0 react-dom: 16.14.0 @@ -8179,7 +8179,7 @@ __metadata: "@babel/plugin-syntax-import-meta": ^7.10.4 "@babel/preset-env": ^7.12.11 "@storybook/core-webpack": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 babel-loader: ^7.0.0 || ^8.0.0 babel-plugin-bundled-import-meta: ^0.3.1 lit-html: 2.0.2 @@ -8246,7 +8246,7 @@ __metadata: "@storybook/client-api": 7.0.0-alpha.37 "@storybook/preview-web": 7.0.0-alpha.37 "@storybook/react": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@vitejs/plugin-react": ^2.0.0 ast-types: ^0.14.2 magic-string: ^0.26.1 @@ -8266,7 +8266,7 @@ __metadata: "@storybook/builder-webpack5": 7.0.0-alpha.37 "@storybook/preset-react-webpack": 7.0.0-alpha.37 "@storybook/react": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 jest-specific-snapshot: ^4.0.0 typescript: ~4.6.3 peerDependencies: @@ -8294,7 +8294,7 @@ __metadata: "@storybook/docs-tools": 7.0.0-alpha.37 "@storybook/store": 7.0.0-alpha.37 "@types/estree": ^0.0.51 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@types/util-deprecate": ^1.0.0 acorn: ^7.4.1 acorn-jsx: ^5.3.1 @@ -8445,7 +8445,7 @@ __metadata: "@types/jest": ^26.0.16 "@types/js-yaml": ^3.12.6 "@types/lodash": ^4.14.167 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@types/node-cleanup": ^2.1.1 "@types/prompts": 2.0.11 "@types/react": ^16.14.23 @@ -8633,7 +8633,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.37 "@storybook/preset-server-webpack": 7.0.0-alpha.37 "@storybook/server": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 react: 16.14.0 react-dom: 16.14.0 typescript: ~4.6.3 @@ -8710,7 +8710,7 @@ __metadata: "@storybook/preview-web": 7.0.0-alpha.37 "@storybook/svelte": 7.0.0-alpha.37 "@sveltejs/vite-plugin-svelte": ^1.0.0 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 magic-string: ^0.26.1 svelte: ^3.0.0 sveltedoc-parser: ^4.2.1 @@ -8807,7 +8807,7 @@ __metadata: "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 "@storybook/client-logger": 7.0.0-alpha.37 "@types/fs-extra": ^9.0.6 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 deep-object-diff: ^1.1.0 fs-extra: ^9.0.1 global: ^4.4.0 @@ -8910,7 +8910,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.37 "@storybook/preset-vue-webpack": 7.0.0-alpha.37 "@storybook/vue": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 react: 16.14.0 react-dom: 16.14.0 typescript: ~4.6.3 @@ -8939,7 +8939,7 @@ __metadata: "@storybook/core-server": 7.0.0-alpha.37 "@storybook/preview-web": 7.0.0-alpha.37 "@storybook/vue3": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@vitejs/plugin-vue": ^3.0.0 magic-string: ^0.26.1 typescript: ~4.6.3 @@ -8956,7 +8956,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.37 "@storybook/preset-vue3-webpack": 7.0.0-alpha.37 "@storybook/vue3": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@vue/compiler-sfc": 3.0.0 react: 16.14.0 react-dom: 16.14.0 @@ -9030,7 +9030,7 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.37 "@storybook/preview-web": 7.0.0-alpha.37 "@storybook/web-components": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 "@vitejs/plugin-vue": ^3.0.3 magic-string: ^0.26.1 typescript: ~4.6.3 @@ -9047,7 +9047,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.37 "@storybook/preset-web-components-webpack": 7.0.0-alpha.37 "@storybook/web-components": 7.0.0-alpha.37 - "@types/node": ^14.14.20 || ^16.0.0 + "@types/node": ^16.0.0 lit-html: 2.0.2 react: 16.14.0 react-dom: 16.14.0 @@ -9909,20 +9909,13 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^14.0.10 || ^16.0.0, @types/node@npm:^14.14.20 || ^16.0.0": +"@types/node@npm:^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" diff --git a/netlify.toml b/netlify.toml index 7e062ca407be..02524193f8d9 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 = "14" + NODE_VERSION = "16" YARN_VERSION = "1.22.10" DOTENV_DISPLAY_WARNING = "none" STORYBOOK_EXAMPLE_APP ="true" diff --git a/scripts/.babelrc.js b/scripts/.babelrc.js index 239b0bd63340..effa585e527e 100644 --- a/scripts/.babelrc.js +++ b/scripts/.babelrc.js @@ -6,7 +6,7 @@ const withTests = { shippedProposals: true, useBuiltIns: 'usage', corejs: '3', - targets: { node: 'current' }, + targets: { node: '16' }, }, ], ], @@ -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: 'current' }; +const targets = process.env.BABEL_MODE === 'esm' ? { chrome: '100' } : { node: '16' }; module.exports = { compact: false, @@ -147,7 +147,7 @@ module.exports = { shippedProposals: true, useBuiltIns: 'usage', targets: { - node: '14', + node: '16', }, modules, corejs: '3', @@ -179,7 +179,7 @@ module.exports = { shippedProposals: true, useBuiltIns: 'usage', targets: { - node: '14', + node: '16', }, corejs: '3', modules: false, diff --git a/scripts/package.json b/scripts/package.json index b04debc8b93f..d914897a238a 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": "^14.14.20 || ^16.0.0", + "@types/node": "^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 e21f930fb21a..ba24134c4f1e 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": ^14.14.20 || ^16.0.0 + "@types/node": ^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:^14.14.20 || ^16.0.0": - version: 16.11.64 - resolution: "@types/node@npm:16.11.64" - checksum: 4b5ee37e3d2dc3364abbffee7e9f4c27fc22b44305ff5920fcc1b7fe08343bf113fface6a565c2406f77f8818d5ddcfb31652df6a43e4ab971976256d176bf37 +"@types/node@npm:^16.0.0": + version: 16.11.65 + resolution: "@types/node@npm:16.11.65" + checksum: 5d66c2e0119ff194b2e196b0016d5d083fd332a114cea04822fbc22a7733b2feba0db9de380a289f457312a24b2f313396084b682d670038f5b2ced2d14fc659 languageName: node linkType: hard