From 742bfb05ae0079220916d88ea69fc55f8711095e Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Fri, 2 Sep 2022 23:08:48 -0400 Subject: [PATCH 1/4] Experiment: remove core-js --- code/addons/a11y/package.json | 1 - code/addons/actions/package.json | 1 - code/addons/backgrounds/package.json | 1 - code/addons/controls/package.json | 1 - code/addons/docs/package.json | 1 - code/addons/essentials/package.json | 1 - code/addons/highlight/package.json | 1 - code/addons/interactions/package.json | 1 - code/addons/jest/package.json | 1 - code/addons/links/package.json | 1 - code/addons/measure/package.json | 1 - code/addons/outline/package.json | 1 - .../storyshots/storyshots-core/package.json | 1 - .../src/frameworks/angular/loader.ts | 8 -- .../storyshots-puppeteer/package.json | 1 - code/addons/storysource/package.json | 1 - code/addons/toolbars/package.json | 3 +- code/addons/viewport/package.json | 1 - code/examples/angular-cli/package.json | 2 - code/examples/vue-3-cli/package.json | 1 - code/examples/vue-cli/package.json | 1 - code/frameworks/angular/package.json | 1 - code/frameworks/angular/src/client/globals.ts | 4 +- code/frameworks/ember/package.json | 1 - code/frameworks/html-webpack5/package.json | 1 - code/frameworks/preact-webpack5/package.json | 1 - code/frameworks/react-vite/package.json | 6 +- code/frameworks/react-webpack5/package.json | 3 +- code/frameworks/server-webpack5/package.json | 1 - code/frameworks/svelte-vite/package.json | 3 +- code/frameworks/svelte-webpack5/package.json | 1 - code/frameworks/vue-webpack5/package.json | 1 - code/frameworks/vue3-vite/package.json | 3 +- code/frameworks/vue3-webpack5/package.json | 1 - .../web-components-webpack5/package.json | 1 - code/lib/addons/package.json | 1 - code/lib/api/package.json | 1 - code/lib/blocks/package.json | 1 - code/lib/builder-webpack5/package.json | 1 - code/lib/channel-postmessage/package.json | 1 - code/lib/channel-websocket/package.json | 1 - code/lib/channels/package.json | 1 - code/lib/cli/package.json | 1 - code/lib/cli/src/generators/PREACT/index.ts | 4 +- code/lib/client-api/package.json | 1 - code/lib/client-logger/package.json | 1 - code/lib/codemod/package.json | 1 - code/lib/components/package.json | 1 - code/lib/core-client/package.json | 1 - code/lib/core-client/src/globals/polyfills.ts | 1 - code/lib/core-common/package.json | 1 - code/lib/core-events/package.json | 3 - code/lib/core-server/package.json | 1 - code/lib/core-webpack/package.json | 1 - code/lib/csf-tools/package.json | 1 - code/lib/docs-tools/package.json | 1 - code/lib/instrumenter/package.json | 1 - code/lib/node-logger/package.json | 1 - code/lib/postinstall/package.json | 3 - code/lib/preview-web/package.json | 1 - code/lib/router/package.json | 1 - code/lib/source-loader/package.json | 1 - code/lib/store/package.json | 1 - code/lib/telemetry/package.json | 1 - code/lib/theming/package.json | 1 - code/lib/ui/package.json | 2 - code/package.json | 7 -- code/presets/html-webpack/package.json | 1 - code/presets/preact-webpack/package.json | 1 - code/presets/react-webpack/package.json | 1 - code/presets/server-webpack/package.json | 1 - code/presets/svelte-webpack/package.json | 1 - code/presets/vue-webpack/package.json | 1 - code/presets/vue3-webpack/package.json | 1 - .../web-components-webpack/package.json | 1 - code/renderers/html/package.json | 1 - code/renderers/preact/package.json | 1 - code/renderers/react/package.json | 1 - code/renderers/server/package.json | 1 - code/renderers/svelte/package.json | 1 - code/renderers/vue/package.json | 1 - code/renderers/vue3/package.json | 1 - code/renderers/web-components/package.json | 1 - code/yarn.lock | 118 +++--------------- docs/configure/babel.md | 8 -- scripts/package.json | 1 - scripts/yarn.lock | 3 +- 87 files changed, 29 insertions(+), 222 deletions(-) diff --git a/code/addons/a11y/package.json b/code/addons/a11y/package.json index d5f4132152dd..b5dac5fcfcac 100644 --- a/code/addons/a11y/package.json +++ b/code/addons/a11y/package.json @@ -72,7 +72,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/theming": "7.0.0-alpha.29", "axe-core": "^4.2.0", - "core-js": "^3.8.2", "global": "^4.4.0", "lodash": "^4.17.21", "react-sizeme": "^3.0.1", diff --git a/code/addons/actions/package.json b/code/addons/actions/package.json index 3e46ac445c68..63e12fce3263 100644 --- a/code/addons/actions/package.json +++ b/code/addons/actions/package.json @@ -42,7 +42,6 @@ "@storybook/core-events": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "dequal": "^2.0.2", "global": "^4.4.0", "lodash": "^4.17.21", diff --git a/code/addons/backgrounds/package.json b/code/addons/backgrounds/package.json index 8149c3d16df1..1a9db85f2450 100644 --- a/code/addons/backgrounds/package.json +++ b/code/addons/backgrounds/package.json @@ -69,7 +69,6 @@ "@storybook/core-events": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "memoizerific": "^1.11.3", "ts-dedent": "^2.0.0", diff --git a/code/addons/controls/package.json b/code/addons/controls/package.json index 0fd9623690ad..ac0e91bb3906 100644 --- a/code/addons/controls/package.json +++ b/code/addons/controls/package.json @@ -67,7 +67,6 @@ "@storybook/node-logger": "7.0.0-alpha.29", "@storybook/store": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "lodash": "^4.17.21", "ts-dedent": "^2.0.0" }, diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index 1e4e97379b9f..d9cf6ca13b29 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -70,7 +70,6 @@ "@storybook/store": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", "babel-loader": "^8.2.5", - "core-js": "^3.8.2", "dequal": "^2.0.2", "global": "^4.4.0", "lodash": "^4.17.21", diff --git a/code/addons/essentials/package.json b/code/addons/essentials/package.json index 262aff5cbdb3..5e003e170488 100644 --- a/code/addons/essentials/package.json +++ b/code/addons/essentials/package.json @@ -46,7 +46,6 @@ "@storybook/api": "7.0.0-alpha.29", "@storybook/core-common": "7.0.0-alpha.29", "@storybook/node-logger": "7.0.0-alpha.29", - "core-js": "^3.8.2", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/addons/highlight/package.json b/code/addons/highlight/package.json index b1c88bea4adc..7bd35ea71ff4 100644 --- a/code/addons/highlight/package.json +++ b/code/addons/highlight/package.json @@ -39,7 +39,6 @@ "dependencies": { "@storybook/addons": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0" }, "devDependencies": { diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index 04c853972936..a0af021cbfec 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -45,7 +45,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/instrumenter": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "jest-mock": "^27.0.6", "polished": "^4.2.2", diff --git a/code/addons/jest/package.json b/code/addons/jest/package.json index 40f857452d08..eacd937efe52 100644 --- a/code/addons/jest/package.json +++ b/code/addons/jest/package.json @@ -65,7 +65,6 @@ "@storybook/components": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react-sizeme": "^3.0.1", "upath": "^1.2.0" diff --git a/code/addons/links/package.json b/code/addons/links/package.json index cfe25e9f304b..c96689cf082e 100644 --- a/code/addons/links/package.json +++ b/code/addons/links/package.json @@ -68,7 +68,6 @@ "@storybook/core-events": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/router": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "prop-types": "^15.7.2", "ts-dedent": "^2.0.0" diff --git a/code/addons/measure/package.json b/code/addons/measure/package.json index ed630dfb3a20..a16bae194ee4 100644 --- a/code/addons/measure/package.json +++ b/code/addons/measure/package.json @@ -67,7 +67,6 @@ "@storybook/components": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", - "core-js": "^3.8.2", "global": "^4.4.0" }, "devDependencies": { diff --git a/code/addons/outline/package.json b/code/addons/outline/package.json index fb32fc17c671..8c4987dce8d5 100644 --- a/code/addons/outline/package.json +++ b/code/addons/outline/package.json @@ -70,7 +70,6 @@ "@storybook/components": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", - "core-js": "^3.8.2", "global": "^4.4.0", "ts-dedent": "^2.0.0" }, diff --git a/code/addons/storyshots/storyshots-core/package.json b/code/addons/storyshots/storyshots-core/package.json index 6bb6f98dc948..c300a43795e5 100644 --- a/code/addons/storyshots/storyshots-core/package.json +++ b/code/addons/storyshots/storyshots-core/package.json @@ -48,7 +48,6 @@ "@types/glob": "^7.1.3", "@types/jest": "^26.0.16", "@types/jest-specific-snapshot": "^0.5.3", - "core-js": "^3.8.2", "glob": "^7.1.6", "global": "^4.4.0", "jest-specific-snapshot": "^4.0.0", diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts index fa0b0755cc6d..633193ec6830 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts @@ -1,17 +1,9 @@ -import 'core-js'; -import 'core-js/es/reflect'; import hasDependency from '../hasDependency'; import configure from '../configure'; import { Loader } from '../Loader'; import { StoryshotsOptions } from '../../api/StoryshotsOptions'; function setupAngularJestPreset() { - // Needed to prevent "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten." - jest.requireActual('core-js'); - jest.requireActual('core-js/modules/es.promise'); - // jest.requireActual('core-js/es6/reflect'); - // jest.requireActual('core-js/es7/reflect'); - // Angular + Jest + Storyshots = Crazy Shit: // We need to require 'jest-preset-angular/build/setupJest' before any storybook code // is running inside jest - one of the things that `jest-preset-angular/build/setupJest` does is diff --git a/code/addons/storyshots/storyshots-puppeteer/package.json b/code/addons/storyshots/storyshots-puppeteer/package.json index f544c9c137a8..8e2290ad93fe 100644 --- a/code/addons/storyshots/storyshots-puppeteer/package.json +++ b/code/addons/storyshots/storyshots-puppeteer/package.json @@ -37,7 +37,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/node-logger": "7.0.0-alpha.29", "@types/jest-image-snapshot": "^4.1.3", - "core-js": "^3.8.2", "jest-image-snapshot": "^4.3.0" }, "devDependencies": { diff --git a/code/addons/storysource/package.json b/code/addons/storysource/package.json index 579cb918feaa..f4098c680267 100644 --- a/code/addons/storysource/package.json +++ b/code/addons/storysource/package.json @@ -42,7 +42,6 @@ "@storybook/router": "7.0.0-alpha.29", "@storybook/source-loader": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "estraverse": "^5.2.0", "prop-types": "^15.7.2", "react-syntax-highlighter": "^15.5.0" diff --git a/code/addons/toolbars/package.json b/code/addons/toolbars/package.json index 5c30ecd14022..1b474aaf02c8 100644 --- a/code/addons/toolbars/package.json +++ b/code/addons/toolbars/package.json @@ -61,8 +61,7 @@ "@storybook/api": "7.0.0-alpha.29", "@storybook/client-logger": "7.0.0-alpha.29", "@storybook/components": "7.0.0-alpha.29", - "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2" + "@storybook/theming": "7.0.0-alpha.29" }, "devDependencies": { "typescript": "~4.6.3" diff --git a/code/addons/viewport/package.json b/code/addons/viewport/package.json index af04b777b209..8c62e3090c42 100644 --- a/code/addons/viewport/package.json +++ b/code/addons/viewport/package.json @@ -65,7 +65,6 @@ "@storybook/components": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "memoizerific": "^1.11.3", "prop-types": "^15.7.2" diff --git a/code/examples/angular-cli/package.json b/code/examples/angular-cli/package.json index 6e1308c7f6c2..b8b61ae5f4cc 100644 --- a/code/examples/angular-cli/package.json +++ b/code/examples/angular-cli/package.json @@ -31,7 +31,6 @@ "@angular/platform-browser": "^13.3.6", "@angular/platform-browser-dynamic": "^13.3.6", "@ngrx/store": "^13.2.0", - "core-js": "^3.8.2", "rxjs": "^6.6.7", "sass": "^1.43.4", "telejson": "^6.0.8", @@ -61,7 +60,6 @@ "@storybook/jest": "^0.0.10", "@storybook/source-loader": "7.0.0-alpha.29", "@storybook/testing-library": "0.0.14-next.0", - "@types/core-js": "^2.5.4", "@types/jest": "^26.0.16", "@types/node": "^14.14.20 || ^16.0.0", "@types/sass": "^1", diff --git a/code/examples/vue-3-cli/package.json b/code/examples/vue-3-cli/package.json index 650aa218379b..8098711f46e3 100644 --- a/code/examples/vue-3-cli/package.json +++ b/code/examples/vue-3-cli/package.json @@ -9,7 +9,6 @@ "storybook": "storybook dev -p 6006 --no-manager-cache" }, "dependencies": { - "core-js": "^3.8.2", "vue": "^3.0.0" }, "devDependencies": { diff --git a/code/examples/vue-cli/package.json b/code/examples/vue-cli/package.json index ca4c7f88a4ee..b367b9737b79 100644 --- a/code/examples/vue-cli/package.json +++ b/code/examples/vue-cli/package.json @@ -9,7 +9,6 @@ "storybook": "storybook dev -p 9009 --no-manager-cache" }, "dependencies": { - "core-js": "^3.8.2", "vue": "^2.6.12", "vue-class-component": "^7.2.6", "vue-property-decorator": "^9.1.2" diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 95b1b72ef88f..15630f63dd1a 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -51,7 +51,6 @@ "@types/react": "^16.14.23", "@types/react-dom": "^16.9.14", "autoprefixer": "^9.8.6", - "core-js": "^3.8.2", "find-up": "^5.0.0", "fork-ts-checker-webpack-plugin": "^7.2.6", "global": "^4.4.0", diff --git a/code/frameworks/angular/src/client/globals.ts b/code/frameworks/angular/src/client/globals.ts index e6e55cbf924d..a0b40ec25688 100644 --- a/code/frameworks/angular/src/client/globals.ts +++ b/code/frameworks/angular/src/client/globals.ts @@ -40,8 +40,8 @@ import global from 'global'; // import 'classlist.js'; // Run `npm install --save classlist.js`. /** Evergreen browsers require these. * */ -import 'core-js/es/reflect'; -import 'core-js/proposals/reflect-metadata'; +// import 'core-js/es/reflect'; +// import 'core-js/proposals/reflect-metadata'; /** * Required to support Web Animations `@angular/animation`. diff --git a/code/frameworks/ember/package.json b/code/frameworks/ember/package.json index d6cf801696cc..718d01e144d9 100644 --- a/code/frameworks/ember/package.json +++ b/code/frameworks/ember/package.json @@ -35,7 +35,6 @@ "@storybook/core-common": "7.0.0-alpha.29", "@storybook/docs-tools": "7.0.0-alpha.29", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index 7e2c2dd73c78..02ec581602e6 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/package.json @@ -55,7 +55,6 @@ "@storybook/html": "7.0.0-alpha.29", "@storybook/preset-html-webpack": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "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 9ef479f35a14..1036a8f2bbdd 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/package.json @@ -55,7 +55,6 @@ "@storybook/preact": "7.0.0-alpha.29", "@storybook/preset-preact-webpack": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "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 4efe1f414181..d8e495e95991 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -58,11 +58,13 @@ "@vitejs/plugin-react": "^2.0.1", "ast-types": "^0.14.2", "magic-string": "^0.26.1", - "react-docgen": "^6.0.0-alpha.3" + "react-docgen": "^6.0.0-alpha.3", + "vite": "3" }, "devDependencies": { "@types/node": "^14.14.20 || ^16.0.0", - "typescript": "~4.6.3" + "typescript": "~4.6.3", + "vite": "^3.0.0-beta.1" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", diff --git a/code/frameworks/react-webpack5/package.json b/code/frameworks/react-webpack5/package.json index f24abc3d5eb8..75c39d79c752 100644 --- a/code/frameworks/react-webpack5/package.json +++ b/code/frameworks/react-webpack5/package.json @@ -54,8 +54,7 @@ "@storybook/builder-webpack5": "7.0.0-alpha.29", "@storybook/preset-react-webpack": "7.0.0-alpha.29", "@storybook/react": "7.0.0-alpha.29", - "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2" + "@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 d466ceda6598..8ba0f46d8ab2 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/package.json @@ -55,7 +55,6 @@ "@storybook/preset-server-webpack": "7.0.0-alpha.29", "@storybook/server": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "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 1dc66c510af5..0944863c4890 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -63,7 +63,8 @@ }, "devDependencies": { "@types/node": "^14.14.20 || ^16.0.0", - "typescript": "~4.6.3" + "typescript": "~4.6.3", + "vite": "^3.0.0-beta.1" }, "engines": { "node": "^14.18 || >=16" diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index 04ddea3a359e..d3de88469c4e 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/package.json @@ -55,7 +55,6 @@ "@storybook/core-common": "7.0.0-alpha.29", "@storybook/preset-svelte-webpack": "7.0.0-alpha.29", "@storybook/svelte": "7.0.0-alpha.29", - "core-js": "^3.8.2", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/frameworks/vue-webpack5/package.json b/code/frameworks/vue-webpack5/package.json index 8e83bd750927..58521e478cee 100644 --- a/code/frameworks/vue-webpack5/package.json +++ b/code/frameworks/vue-webpack5/package.json @@ -55,7 +55,6 @@ "@storybook/preset-vue-webpack": "7.0.0-alpha.29", "@storybook/vue": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "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 e378a146c25f..38fb7a76b803 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -61,7 +61,8 @@ }, "devDependencies": { "@types/node": "^14.14.20 || ^16.0.0", - "typescript": "~4.6.3" + "typescript": "~4.6.3", + "vite": "^3.0.0-beta.1" }, "engines": { "node": "^14.18 || >=16" diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index c9dc95e807d7..e7c1bcf5182b 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/package.json @@ -55,7 +55,6 @@ "@storybook/preset-vue3-webpack": "7.0.0-alpha.29", "@storybook/vue3": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index 3420ee4cf700..17868e66eb3e 100644 --- a/code/frameworks/web-components-webpack5/package.json +++ b/code/frameworks/web-components-webpack5/package.json @@ -58,7 +58,6 @@ "@storybook/preset-web-components-webpack": "7.0.0-alpha.29", "@storybook/web-components": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/lib/addons/package.json b/code/lib/addons/package.json index 6ced558ebf72..573b48252e06 100644 --- a/code/lib/addons/package.json +++ b/code/lib/addons/package.json @@ -42,7 +42,6 @@ "@storybook/router": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", "@types/webpack-env": "^1.16.4", - "core-js": "^3.8.2", "global": "^4.4.0" }, "peerDependencies": { diff --git a/code/lib/api/package.json b/code/lib/api/package.json index 890bd14142c9..7a1d5d6ee228 100644 --- a/code/lib/api/package.json +++ b/code/lib/api/package.json @@ -39,7 +39,6 @@ "@storybook/router": "7.0.0-alpha.29", "@storybook/semver": "^7.3.2", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "dequal": "^2.0.2", "global": "^4.4.0", "lodash": "^4.17.21", diff --git a/code/lib/blocks/package.json b/code/lib/blocks/package.json index f8262862b333..2bf6672467f5 100644 --- a/code/lib/blocks/package.json +++ b/code/lib/blocks/package.json @@ -52,7 +52,6 @@ "@storybook/store": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", "color-convert": "^2.0.1", - "core-js": "^3.8.2", "dequal": "^2.0.2", "global": "^4.4.0", "lodash": "^4.17.21", diff --git a/code/lib/builder-webpack5/package.json b/code/lib/builder-webpack5/package.json index 3c955d317110..d023651ae8b1 100644 --- a/code/lib/builder-webpack5/package.json +++ b/code/lib/builder-webpack5/package.json @@ -56,7 +56,6 @@ "babel-plugin-named-exports-order": "^0.0.2", "browser-assert": "^1.2.1", "case-sensitive-paths-webpack-plugin": "^2.4.0", - "core-js": "^3.8.2", "css-loader": "^6.7.1", "fork-ts-checker-webpack-plugin": "^7.2.8", "glob": "^7.1.6", diff --git a/code/lib/channel-postmessage/package.json b/code/lib/channel-postmessage/package.json index 84951e3df01e..c7e96c2f53f4 100644 --- a/code/lib/channel-postmessage/package.json +++ b/code/lib/channel-postmessage/package.json @@ -37,7 +37,6 @@ "@storybook/channels": "7.0.0-alpha.29", "@storybook/client-logger": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "qs": "^6.10.0", "telejson": "^6.0.8" diff --git a/code/lib/channel-websocket/package.json b/code/lib/channel-websocket/package.json index 5d7e47b7a9a7..db4dbf4ee8db 100644 --- a/code/lib/channel-websocket/package.json +++ b/code/lib/channel-websocket/package.json @@ -36,7 +36,6 @@ "dependencies": { "@storybook/channels": "7.0.0-alpha.29", "@storybook/client-logger": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "telejson": "^6.0.8" }, diff --git a/code/lib/channels/package.json b/code/lib/channels/package.json index 33b06b0a2638..6d0da5acd627 100644 --- a/code/lib/channels/package.json +++ b/code/lib/channels/package.json @@ -42,7 +42,6 @@ "prepare": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "core-js": "^3.8.2", "ts-dedent": "^2.0.0", "util-deprecate": "^1.0.2" }, diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index 14efb77ec8b3..be6d785e660b 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -51,7 +51,6 @@ "boxen": "^5.1.2", "chalk": "^4.1.0", "commander": "^6.2.1", - "core-js": "^3.8.2", "cross-spawn": "^7.0.3", "degit": "^2.8.4", "envinfo": "^7.7.3", diff --git a/code/lib/cli/src/generators/PREACT/index.ts b/code/lib/cli/src/generators/PREACT/index.ts index 2144c8f4d0f6..432060fe1dd2 100644 --- a/code/lib/cli/src/generators/PREACT/index.ts +++ b/code/lib/cli/src/generators/PREACT/index.ts @@ -2,9 +2,7 @@ import { baseGenerator } from '../baseGenerator'; import { Generator } from '../types'; const generator: Generator = async (packageManager, npmOptions, options) => { - await baseGenerator(packageManager, npmOptions, options, 'preact', { - extraPackages: ['core-js'], - }); + await baseGenerator(packageManager, npmOptions, options, 'preact'); }; export default generator; diff --git a/code/lib/client-api/package.json b/code/lib/client-api/package.json index 1a294f273612..af19f7ac0680 100644 --- a/code/lib/client-api/package.json +++ b/code/lib/client-api/package.json @@ -43,7 +43,6 @@ "@storybook/store": "7.0.0-alpha.29", "@types/qs": "^6.9.5", "@types/webpack-env": "^1.16.4", - "core-js": "^3.8.2", "dequal": "^2.0.2", "global": "^4.4.0", "lodash": "^4.17.21", diff --git a/code/lib/client-logger/package.json b/code/lib/client-logger/package.json index 01f840a29e93..1bbfdea0c659 100644 --- a/code/lib/client-logger/package.json +++ b/code/lib/client-logger/package.json @@ -42,7 +42,6 @@ "prepare": "../../../scripts/prepare/bundle.ts" }, "dependencies": { - "core-js": "^3.8.2", "global": "^4.4.0" }, "devDependencies": { diff --git a/code/lib/codemod/package.json b/code/lib/codemod/package.json index a6587e5ce4df..c0564fc5f8b2 100644 --- a/code/lib/codemod/package.json +++ b/code/lib/codemod/package.json @@ -40,7 +40,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/csf-tools": "7.0.0-alpha.29", "@storybook/node-logger": "7.0.0-alpha.29", - "core-js": "^3.8.2", "cross-spawn": "^7.0.3", "globby": "^11.0.2", "jscodeshift": "^0.13.1", diff --git a/code/lib/components/package.json b/code/lib/components/package.json index a38783cf22c3..98c15d5e5c27 100644 --- a/code/lib/components/package.json +++ b/code/lib/components/package.json @@ -54,7 +54,6 @@ "@storybook/client-logger": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/theming": "7.0.0-alpha.29", - "core-js": "^3.8.2", "memoizerific": "^1.11.3", "qs": "^6.10.0", "util-deprecate": "^1.0.2" diff --git a/code/lib/core-client/package.json b/code/lib/core-client/package.json index a590579fef3a..0085e0308905 100644 --- a/code/lib/core-client/package.json +++ b/code/lib/core-client/package.json @@ -45,7 +45,6 @@ "@storybook/store": "7.0.0-alpha.29", "@storybook/ui": "7.0.0-alpha.29", "ansi-to-html": "^0.6.11", - "core-js": "^3.8.2", "global": "^4.4.0", "lodash": "^4.17.21", "qs": "^6.10.0", diff --git a/code/lib/core-client/src/globals/polyfills.ts b/code/lib/core-client/src/globals/polyfills.ts index 2ca8b3e828a0..b535f6a2cc34 100644 --- a/code/lib/core-client/src/globals/polyfills.ts +++ b/code/lib/core-client/src/globals/polyfills.ts @@ -1,2 +1 @@ import 'regenerator-runtime/runtime'; -import 'core-js/features/symbol'; diff --git a/code/lib/core-common/package.json b/code/lib/core-common/package.json index c23d41f0bbb8..5facc1fbef2a 100644 --- a/code/lib/core-common/package.json +++ b/code/lib/core-common/package.json @@ -78,7 +78,6 @@ "babel-plugin-macros": "^3.0.1", "babel-plugin-polyfill-corejs3": "^0.1.0", "chalk": "^4.1.0", - "core-js": "^3.8.2", "esbuild": "^0.14.48", "esbuild-register": "^3.3.3", "express": "^4.17.1", diff --git a/code/lib/core-events/package.json b/code/lib/core-events/package.json index c40d8e7095bd..e94ba3970b09 100644 --- a/code/lib/core-events/package.json +++ b/code/lib/core-events/package.json @@ -41,9 +41,6 @@ "check": "tsc --noEmit", "prepare": "../../../scripts/prepare/bundle.ts" }, - "dependencies": { - "core-js": "^3.8.2" - }, "devDependencies": { "typescript": "~4.6.3" }, diff --git a/code/lib/core-server/package.json b/code/lib/core-server/package.json index 94e8796fdad0..33d476ed14b8 100644 --- a/code/lib/core-server/package.json +++ b/code/lib/core-server/package.json @@ -55,7 +55,6 @@ "cli-table3": "^0.6.1", "commander": "^6.2.1", "compression": "^1.7.4", - "core-js": "^3.8.2", "detect-port": "^1.3.0", "express": "^4.17.1", "fs-extra": "^9.0.1", diff --git a/code/lib/core-webpack/package.json b/code/lib/core-webpack/package.json index 06ebf64db953..d0400d59bada 100644 --- a/code/lib/core-webpack/package.json +++ b/code/lib/core-webpack/package.json @@ -45,7 +45,6 @@ "@storybook/core-common": "7.0.0-alpha.29", "@storybook/node-logger": "7.0.0-alpha.29", "@types/node": "^14.0.10 || ^16.0.0", - "core-js": "^3.8.2", "ts-dedent": "^2.0.0" }, "devDependencies": { diff --git a/code/lib/csf-tools/package.json b/code/lib/csf-tools/package.json index e99fbe9558ce..871e33c0832c 100644 --- a/code/lib/csf-tools/package.json +++ b/code/lib/csf-tools/package.json @@ -42,7 +42,6 @@ "@babel/traverse": "^7.12.11", "@babel/types": "^7.12.11", "@storybook/csf": "0.0.2--canary.0899bb7.0", - "core-js": "^3.8.2", "fs-extra": "^9.0.1", "global": "^4.4.0", "ts-dedent": "^2.0.0" diff --git a/code/lib/docs-tools/package.json b/code/lib/docs-tools/package.json index 0caa815367d0..0f55410ceb8d 100644 --- a/code/lib/docs-tools/package.json +++ b/code/lib/docs-tools/package.json @@ -37,7 +37,6 @@ "@babel/core": "^7.12.10", "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "doctrine": "^3.0.0", "lodash": "^4.17.21" }, diff --git a/code/lib/instrumenter/package.json b/code/lib/instrumenter/package.json index be54a466608b..00474b6464f4 100644 --- a/code/lib/instrumenter/package.json +++ b/code/lib/instrumenter/package.json @@ -37,7 +37,6 @@ "@storybook/addons": "7.0.0-alpha.29", "@storybook/client-logger": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0" }, "devDependencies": { diff --git a/code/lib/node-logger/package.json b/code/lib/node-logger/package.json index a97f1952b804..b838fa5901d6 100644 --- a/code/lib/node-logger/package.json +++ b/code/lib/node-logger/package.json @@ -36,7 +36,6 @@ "dependencies": { "@types/npmlog": "^4.1.2", "chalk": "^4.1.0", - "core-js": "^3.8.2", "npmlog": "^5.0.1", "pretty-hrtime": "^1.0.3" }, diff --git a/code/lib/postinstall/package.json b/code/lib/postinstall/package.json index 1366a53be12b..340d0800ac06 100644 --- a/code/lib/postinstall/package.json +++ b/code/lib/postinstall/package.json @@ -34,9 +34,6 @@ "check": "tsc --noEmit", "prepare": "node ../../../scripts/prepare.js" }, - "dependencies": { - "core-js": "^3.8.2" - }, "devDependencies": { "jest": "^26.6.3", "jest-specific-snapshot": "^4.0.0", diff --git a/code/lib/preview-web/package.json b/code/lib/preview-web/package.json index 29e4e79703f1..cfa422084357 100644 --- a/code/lib/preview-web/package.json +++ b/code/lib/preview-web/package.json @@ -42,7 +42,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/store": "7.0.0-alpha.29", "ansi-to-html": "^0.6.11", - "core-js": "^3.8.2", "global": "^4.4.0", "lodash": "^4.17.21", "qs": "^6.10.0", diff --git a/code/lib/router/package.json b/code/lib/router/package.json index c80d9bbf9900..0fd24a1c348f 100644 --- a/code/lib/router/package.json +++ b/code/lib/router/package.json @@ -35,7 +35,6 @@ }, "dependencies": { "@storybook/client-logger": "7.0.0-alpha.29", - "core-js": "^3.8.2", "memoizerific": "^1.11.3", "qs": "^6.10.0" }, diff --git a/code/lib/source-loader/package.json b/code/lib/source-loader/package.json index a1e507723ed1..fafafc0d5b0f 100644 --- a/code/lib/source-loader/package.json +++ b/code/lib/source-loader/package.json @@ -38,7 +38,6 @@ "@storybook/addons": "7.0.0-alpha.29", "@storybook/client-logger": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", - "core-js": "^3.8.2", "estraverse": "^5.2.0", "global": "^4.4.0", "lodash": "^4.17.21", diff --git a/code/lib/store/package.json b/code/lib/store/package.json index 5749685d5b5e..c54558913fd4 100644 --- a/code/lib/store/package.json +++ b/code/lib/store/package.json @@ -38,7 +38,6 @@ "@storybook/client-logger": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", - "core-js": "^3.8.2", "dequal": "^2.0.2", "global": "^4.4.0", "lodash": "^4.17.21", diff --git a/code/lib/telemetry/package.json b/code/lib/telemetry/package.json index 2726b75d985d..e2ab836e812d 100644 --- a/code/lib/telemetry/package.json +++ b/code/lib/telemetry/package.json @@ -37,7 +37,6 @@ "@storybook/client-logger": "7.0.0-alpha.29", "@storybook/core-common": "7.0.0-alpha.29", "chalk": "^4.1.0", - "core-js": "^3.8.2", "detect-package-manager": "^2.0.1", "fetch-retry": "^5.0.2", "fs-extra": "^9.0.1", diff --git a/code/lib/theming/package.json b/code/lib/theming/package.json index ff81225904b1..a9823d378aef 100644 --- a/code/lib/theming/package.json +++ b/code/lib/theming/package.json @@ -48,7 +48,6 @@ }, "dependencies": { "@storybook/client-logger": "7.0.0-alpha.29", - "core-js": "^3.8.2", "memoizerific": "^1.11.3" }, "devDependencies": { diff --git a/code/lib/ui/package.json b/code/lib/ui/package.json index 6b6452515575..93fa6be3f685 100644 --- a/code/lib/ui/package.json +++ b/code/lib/ui/package.json @@ -68,8 +68,6 @@ "@storybook/theming": "7.0.0-alpha.29", "@testing-library/react": "^11.2.2", "copy-to-clipboard": "^3.3.1", - "core-js": "^3.8.2", - "core-js-pure": "^3.8.2", "downshift": "^6.0.15", "enzyme": "^3.11.0", "flush-promises": "^1.0.2", diff --git a/code/package.json b/code/package.json index 1e25894466f1..376efe61044a 100644 --- a/code/package.json +++ b/code/package.json @@ -280,7 +280,6 @@ "codecov": "^3.8.1", "commander": "^6.2.1", "concurrently": "^5.3.0", - "core-js": "^3.21.1", "cross-env": "^7.0.3", "danger": "^10.6.2", "detect-port": "^1.3.0", @@ -364,12 +363,6 @@ "@compodoc/compodoc": { "built": false }, - "core-js": { - "built": false - }, - "core-js-pure": { - "built": false - }, "ejs": { "built": false }, diff --git a/code/presets/html-webpack/package.json b/code/presets/html-webpack/package.json index d634b0167785..319b8f2cef91 100644 --- a/code/presets/html-webpack/package.json +++ b/code/presets/html-webpack/package.json @@ -52,7 +52,6 @@ "dependencies": { "@storybook/core-webpack": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "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 ee04849f7683..9381f664b6e2 100644 --- a/code/presets/preact-webpack/package.json +++ b/code/presets/preact-webpack/package.json @@ -53,7 +53,6 @@ "@babel/plugin-transform-react-jsx": "^7.12.12", "@storybook/core-webpack": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "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 037b87ade6a2..c2d972183dcc 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -83,7 +83,6 @@ "@types/node": "^14.14.20 || ^16.0.0", "babel-plugin-add-react-displayname": "^0.0.5", "babel-plugin-react-docgen": "^4.2.1", - "core-js": "^3.8.2", "fs-extra": "^9.0.1", "react-refresh": "^0.11.0" }, diff --git a/code/presets/server-webpack/package.json b/code/presets/server-webpack/package.json index 4733271e547e..775ec41a0b36 100644 --- a/code/presets/server-webpack/package.json +++ b/code/presets/server-webpack/package.json @@ -59,7 +59,6 @@ "@storybook/core-webpack": "7.0.0-alpha.29", "@storybook/server": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/presets/svelte-webpack/package.json b/code/presets/svelte-webpack/package.json index bd1f87632609..ab9d27cb8ff5 100644 --- a/code/presets/svelte-webpack/package.json +++ b/code/presets/svelte-webpack/package.json @@ -67,7 +67,6 @@ "dependencies": { "@storybook/core-webpack": "7.0.0-alpha.29", "@storybook/node-logger": "7.0.0-alpha.29", - "core-js": "^3.8.2", "react": "16.14.0", "react-dom": "16.14.0", "sveltedoc-parser": "4.1.0", diff --git a/code/presets/vue-webpack/package.json b/code/presets/vue-webpack/package.json index a84db6cca01e..fcb8db845527 100644 --- a/code/presets/vue-webpack/package.json +++ b/code/presets/vue-webpack/package.json @@ -63,7 +63,6 @@ "@storybook/core-webpack": "7.0.0-alpha.29", "@storybook/docs-tools": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "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 2c0a29096a11..b039b076b27d 100644 --- a/code/presets/vue3-webpack/package.json +++ b/code/presets/vue3-webpack/package.json @@ -63,7 +63,6 @@ "@storybook/core-webpack": "7.0.0-alpha.29", "@storybook/docs-tools": "7.0.0-alpha.29", "@types/node": "^14.14.20 || ^16.0.0", - "core-js": "^3.8.2", "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 41d99c0547b8..65f409888d5b 100644 --- a/code/presets/web-components-webpack/package.json +++ b/code/presets/web-components-webpack/package.json @@ -59,7 +59,6 @@ "@types/node": "^14.14.20 || ^16.0.0", "babel-loader": "^7.0.0 || ^8.0.0", "babel-plugin-bundled-import-meta": "^0.3.1", - "core-js": "^3.8.2", "react": "16.14.0", "react-dom": "16.14.0" }, diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index 1fde7f4a2680..194d915f415e 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -56,7 +56,6 @@ "@storybook/docs-tools": "7.0.0-alpha.29", "@storybook/preview-web": "7.0.0-alpha.29", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index 2e54a6380d41..32275e5eb5e7 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -54,7 +54,6 @@ "@storybook/core-client": "7.0.0-alpha.29", "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index 7ced3ecbf0da..9b783ae1d54c 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -62,7 +62,6 @@ "acorn": "^7.4.1", "acorn-jsx": "^5.3.1", "acorn-walk": "^7.2.0", - "core-js": "^3.8.2", "escodegen": "^2.0.0", "global": "^4.4.0", "html-tags": "^3.1.0", diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 4d59e5185c31..bc6d50dd657a 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -55,7 +55,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/preview-web": "7.0.0-alpha.29", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index fe15ebb4f59c..cb82b269ed46 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -60,7 +60,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/docs-tools": "7.0.0-alpha.29", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/renderers/vue/package.json b/code/renderers/vue/package.json index 891022835dd5..16caca270a45 100644 --- a/code/renderers/vue/package.json +++ b/code/renderers/vue/package.json @@ -56,7 +56,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/docs-tools": "7.0.0-alpha.29", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index 911a53dff6af..56b6223fadd2 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -55,7 +55,6 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/docs-tools": "7.0.0-alpha.29", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/renderers/web-components/package.json b/code/renderers/web-components/package.json index eec18990762d..ed554efa0565 100644 --- a/code/renderers/web-components/package.json +++ b/code/renderers/web-components/package.json @@ -60,7 +60,6 @@ "@storybook/docs-tools": "7.0.0-alpha.29", "@storybook/preview-web": "7.0.0-alpha.29", "@storybook/store": "7.0.0-alpha.29", - "core-js": "^3.8.2", "global": "^4.4.0", "react": "16.14.0", "react-dom": "16.14.0", diff --git a/code/yarn.lock b/code/yarn.lock index 419c3fe5f3ad..8184c70a4315 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6874,7 +6874,6 @@ __metadata: "@storybook/theming": 7.0.0-alpha.29 "@testing-library/react": ^11.2.2 axe-core: ^4.2.0 - core-js: ^3.8.2 global: ^4.4.0 lodash: ^4.17.21 react-sizeme: ^3.0.1 @@ -6904,7 +6903,6 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/theming": 7.0.0-alpha.29 "@types/lodash": ^4.14.167 - core-js: ^3.8.2 dequal: ^2.0.2 global: ^4.4.0 lodash: ^4.17.21 @@ -6938,7 +6936,6 @@ __metadata: "@storybook/core-events": 7.0.0-alpha.29 "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/theming": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 memoizerific: ^1.11.3 ts-dedent: ^2.0.0 @@ -6969,7 +6966,6 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.29 "@storybook/store": 7.0.0-alpha.29 "@storybook/theming": 7.0.0-alpha.29 - core-js: ^3.8.2 lodash: ^4.17.21 ts-dedent: ^2.0.0 peerDependencies: @@ -7011,7 +7007,6 @@ __metadata: "@storybook/theming": 7.0.0-alpha.29 "@types/util-deprecate": ^1.0.0 babel-loader: ^8.2.5 - core-js: ^3.8.2 dequal: ^2.0.2 global: ^4.4.0 lodash: ^4.17.21 @@ -7054,7 +7049,6 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.29 "@storybook/vue": 7.0.0-alpha.29 "@types/jest": ^26.0.16 - core-js: ^3.8.2 ts-dedent: ^2.0.0 typescript: ~4.6.3 peerDependencies: @@ -7094,7 +7088,6 @@ __metadata: "@storybook/addons": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 "@types/webpack-env": ^1.16.0 - core-js: ^3.8.2 global: ^4.4.0 typescript: ~4.6.3 languageName: unknown @@ -7116,7 +7109,6 @@ __metadata: "@storybook/jest": ^0.0.10 "@storybook/testing-library": 0.0.14-next.0 "@storybook/theming": 7.0.0-alpha.29 - core-js: ^3.8.2 formik: ^2.2.9 global: ^4.4.0 jest-mock: ^27.0.6 @@ -7144,7 +7136,6 @@ __metadata: "@storybook/components": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 "@storybook/theming": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 react-sizeme: ^3.0.1 typescript: ~4.6.3 @@ -7169,7 +7160,6 @@ __metadata: "@storybook/core-events": 7.0.0-alpha.29 "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/router": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 prop-types: ^15.7.2 ts-dedent: ^2.0.0 @@ -7195,7 +7185,6 @@ __metadata: "@storybook/components": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 "@storybook/csf": 0.0.2--canary.0899bb7.0 - core-js: ^3.8.2 global: ^4.4.0 typescript: ~4.6.3 peerDependencies: @@ -7219,7 +7208,6 @@ __metadata: "@storybook/components": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 "@storybook/csf": 0.0.2--canary.0899bb7.0 - core-js: ^3.8.2 global: ^4.4.0 ts-dedent: ^2.0.0 typescript: ~4.6.3 @@ -7256,7 +7244,6 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.29 "@types/jest-image-snapshot": ^4.1.3 "@types/puppeteer": ^5.4.0 - core-js: ^3.8.2 jest-image-snapshot: ^4.3.0 puppeteer: ^2.0.0 || ^3.0.0 peerDependencies: @@ -7292,7 +7279,6 @@ __metadata: "@types/jest": ^26.0.16 "@types/jest-specific-snapshot": ^0.5.3 babel-loader: ^8.2.5 - core-js: ^3.8.2 enzyme: ^3.11.0 enzyme-to-json: ^3.6.1 glob: ^7.1.6 @@ -7371,7 +7357,6 @@ __metadata: "@storybook/theming": 7.0.0-alpha.29 "@types/react": ^16.14.23 "@types/react-syntax-highlighter": 11.0.5 - core-js: ^3.8.2 estraverse: ^5.2.0 prop-types: ^15.7.2 react-syntax-highlighter: ^15.5.0 @@ -7412,7 +7397,6 @@ __metadata: "@storybook/client-logger": 7.0.0-alpha.29 "@storybook/components": 7.0.0-alpha.29 "@storybook/theming": 7.0.0-alpha.29 - core-js: ^3.8.2 typescript: ~4.6.3 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7435,7 +7419,6 @@ __metadata: "@storybook/components": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 "@storybook/theming": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 memoizerific: ^1.11.3 prop-types: ^15.7.2 @@ -7463,7 +7446,6 @@ __metadata: "@storybook/router": 7.0.0-alpha.29 "@storybook/theming": 7.0.0-alpha.29 "@types/webpack-env": ^1.16.4 - core-js: ^3.8.2 global: ^4.4.0 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -7529,7 +7511,6 @@ __metadata: "@types/react-dom": ^16.9.14 "@types/tmp": ^0.2.3 autoprefixer: ^9.8.6 - core-js: ^3.8.2 cross-spawn: ^7.0.3 find-up: ^5.0.0 fork-ts-checker-webpack-plugin: ^7.2.6 @@ -7593,7 +7574,6 @@ __metadata: "@types/lodash": ^4.14.167 "@types/qs": ^6 "@types/semver": ^7.3.4 - core-js: ^3.8.2 dequal: ^2.0.2 flush-promises: ^1.0.2 global: ^4.4.0 @@ -7663,7 +7643,6 @@ __metadata: "@storybook/store": 7.0.0-alpha.29 "@storybook/theming": 7.0.0-alpha.29 color-convert: ^2.0.1 - core-js: ^3.8.2 dequal: ^2.0.2 global: ^4.4.0 lodash: ^4.17.21 @@ -7768,7 +7747,6 @@ __metadata: babel-plugin-named-exports-order: ^0.0.2 browser-assert: ^1.2.1 case-sensitive-paths-webpack-plugin: ^2.4.0 - core-js: ^3.8.2 css-loader: ^6.7.1 fork-ts-checker-webpack-plugin: ^7.2.8 glob: ^7.1.6 @@ -7804,7 +7782,6 @@ __metadata: "@storybook/channels": 7.0.0-alpha.29 "@storybook/client-logger": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 qs: ^6.10.0 telejson: ^6.0.8 @@ -7818,7 +7795,6 @@ __metadata: dependencies: "@storybook/channels": 7.0.0-alpha.29 "@storybook/client-logger": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 telejson: ^6.0.8 typescript: ~4.6.3 @@ -7829,7 +7805,6 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/channels@workspace:lib/channels" dependencies: - core-js: ^3.8.2 ts-dedent: ^2.0.0 typescript: ~4.6.3 util-deprecate: ^1.0.2 @@ -7871,7 +7846,6 @@ __metadata: boxen: ^5.1.2 chalk: ^4.1.0 commander: ^6.2.1 - core-js: ^3.8.2 cross-spawn: ^7.0.3 degit: ^2.8.4 envinfo: ^7.7.3 @@ -7912,7 +7886,6 @@ __metadata: "@storybook/store": 7.0.0-alpha.29 "@types/qs": ^6.9.5 "@types/webpack-env": ^1.16.4 - core-js: ^3.8.2 dequal: ^2.0.2 global: ^4.4.0 lodash: ^4.17.21 @@ -7933,7 +7906,6 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/client-logger@workspace:lib/client-logger" dependencies: - core-js: ^3.8.2 global: ^4.4.0 typescript: ~4.6.3 languageName: unknown @@ -7958,7 +7930,6 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/csf-tools": 7.0.0-alpha.29 "@storybook/node-logger": 7.0.0-alpha.29 - core-js: ^3.8.2 cross-spawn: ^7.0.3 globby: ^11.0.2 jest: ^26.6.3 @@ -7987,7 +7958,6 @@ __metadata: "@types/react-syntax-highlighter": 11.0.5 "@types/util-deprecate": ^1.0.0 color-convert: ^2.0.1 - core-js: ^3.8.2 css: ^3.0.0 dequal: ^2.0.2 global: ^4.4.0 @@ -8028,7 +7998,6 @@ __metadata: "@storybook/store": 7.0.0-alpha.29 "@storybook/ui": 7.0.0-alpha.29 ansi-to-html: ^0.6.11 - core-js: ^3.8.2 global: ^4.4.0 lodash: ^4.17.21 qs: ^6.10.0 @@ -8081,7 +8050,6 @@ __metadata: babel-plugin-macros: ^3.0.1 babel-plugin-polyfill-corejs3: ^0.1.0 chalk: ^4.1.0 - core-js: ^3.8.2 esbuild: ^0.14.48 esbuild-register: ^3.3.3 express: ^4.17.1 @@ -8116,7 +8084,6 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/core-events@workspace:lib/core-events" dependencies: - core-js: ^3.8.2 typescript: ~4.6.3 languageName: unknown linkType: soft @@ -8161,7 +8128,6 @@ __metadata: cli-table3: ^0.6.1 commander: ^6.2.1 compression: ^1.7.4 - core-js: ^3.8.2 detect-port: ^1.3.0 express: ^4.17.1 fs-extra: ^9.0.1 @@ -8202,7 +8168,6 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.29 "@storybook/node-logger": 7.0.0-alpha.29 "@types/node": ^14.0.10 || ^16.0.0 - core-js: ^3.8.2 ts-dedent: ^2.0.0 typescript: ~4.6.3 languageName: unknown @@ -8222,7 +8187,6 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/mdx2-csf": ^0.0.3 "@types/fs-extra": ^9.0.6 - core-js: ^3.8.2 fs-extra: ^9.0.1 global: ^4.4.0 js-yaml: ^3.14.1 @@ -8300,7 +8264,6 @@ __metadata: "@babel/core": ^7.12.10 "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 doctrine: ^3.0.0 jest-specific-snapshot: ^4.0.0 lodash: ^4.17.21 @@ -8330,7 +8293,6 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.29 "@storybook/docs-tools": 7.0.0-alpha.29 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -8470,7 +8432,6 @@ __metadata: "@storybook/html": 7.0.0-alpha.29 "@storybook/preset-html-webpack": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -8490,7 +8451,6 @@ __metadata: "@storybook/docs-tools": 7.0.0-alpha.29 "@storybook/preview-web": 7.0.0-alpha.29 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -8508,7 +8468,6 @@ __metadata: "@storybook/addons": 7.0.0-alpha.29 "@storybook/client-logger": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 typescript: ~4.6.3 languageName: unknown @@ -8626,7 +8585,6 @@ __metadata: "@types/npmlog": ^4.1.2 "@types/pretty-hrtime": ^1.0.0 chalk: ^4.1.0 - core-js: ^3.8.2 npmlog: ^5.0.1 pretty-hrtime: ^1.0.3 typescript: ~4.6.3 @@ -8650,7 +8608,6 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/postinstall@workspace:lib/postinstall" dependencies: - core-js: ^3.8.2 jest: ^26.6.3 jest-specific-snapshot: ^4.0.0 jscodeshift: ^0.13.1 @@ -8667,7 +8624,6 @@ __metadata: "@storybook/preact": 7.0.0-alpha.29 "@storybook/preset-preact-webpack": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 preact: ^10.5.13 react: 16.14.0 react-dom: 16.14.0 @@ -8686,7 +8642,6 @@ __metadata: "@storybook/core-client": 7.0.0-alpha.29 "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 preact: ^10.5.13 react: 16.14.0 @@ -8723,7 +8678,6 @@ __metadata: dependencies: "@storybook/core-webpack": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 html-loader: ^3.1.0 react: 16.14.0 react-dom: 16.14.0 @@ -8741,7 +8695,6 @@ __metadata: "@babel/plugin-transform-react-jsx": ^7.12.12 "@storybook/core-webpack": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 preact: ^10.5.13 react: 16.14.0 react-dom: 16.14.0 @@ -8769,7 +8722,6 @@ __metadata: "@types/util-deprecate": ^1.0.0 babel-plugin-add-react-displayname: ^0.0.5 babel-plugin-react-docgen: ^4.2.1 - core-js: ^3.8.2 fs-extra: ^9.0.1 react-refresh: ^0.11.0 typescript: ~4.6.3 @@ -8807,7 +8759,6 @@ __metadata: "@storybook/core-webpack": 7.0.0-alpha.29 "@storybook/server": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 fs-extra: ^9.0.1 global: ^4.4.0 jest-specific-snapshot: ^4.0.0 @@ -8827,7 +8778,6 @@ __metadata: dependencies: "@storybook/core-webpack": 7.0.0-alpha.29 "@storybook/node-logger": 7.0.0-alpha.29 - core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 svelte: ^3.31.2 @@ -8849,7 +8799,6 @@ __metadata: "@storybook/core-webpack": 7.0.0-alpha.29 "@storybook/docs-tools": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 ts-loader: ^9.2.8 @@ -8878,7 +8827,6 @@ __metadata: "@storybook/docs-tools": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 "@vue/compiler-sfc": ^3.2.33 - core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 ts-loader: ^9.2.8 @@ -8907,7 +8855,6 @@ __metadata: "@types/node": ^14.14.20 || ^16.0.0 babel-loader: ^7.0.0 || ^8.0.0 babel-plugin-bundled-import-meta: ^0.3.1 - core-js: ^3.8.2 lit-html: 2.0.2 react: 16.14.0 react-dom: 16.14.0 @@ -8929,7 +8876,6 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/store": 7.0.0-alpha.29 ansi-to-html: ^0.6.11 - core-js: ^3.8.2 global: ^4.4.0 lodash: ^4.17.21 qs: ^6.10.0 @@ -8972,6 +8918,7 @@ __metadata: magic-string: ^0.26.1 react-docgen: ^6.0.0-alpha.3 typescript: ~4.6.3 + vite: ^3.0.0-beta.1 peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 @@ -8986,7 +8933,6 @@ __metadata: "@storybook/preset-react-webpack": 7.0.0-alpha.29 "@storybook/react": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 jest-specific-snapshot: ^4.0.0 typescript: ~4.6.3 peerDependencies: @@ -9018,7 +8964,6 @@ __metadata: acorn: ^7.4.1 acorn-jsx: ^5.3.1 acorn-walk: ^7.2.0 - core-js: ^3.8.2 escodegen: ^2.0.0 global: ^4.4.0 html-tags: ^3.1.0 @@ -9197,7 +9142,6 @@ __metadata: codecov: ^3.8.1 commander: ^6.2.1 concurrently: ^5.3.0 - core-js: ^3.21.1 cross-env: ^7.0.3 cypress: 8.7.0 danger: ^10.6.2 @@ -9288,10 +9232,6 @@ __metadata: optional: true "@cypress/webpack-preprocessor": optional: true - core-js: - built: false - core-js-pure: - built: false cypress: optional: true ejs: @@ -9327,7 +9267,6 @@ __metadata: resolution: "@storybook/router@workspace:lib/router" dependencies: "@storybook/client-logger": 7.0.0-alpha.29 - core-js: ^3.8.2 dequal: ^2.0.2 global: ^4.4.0 history: 5.0.0 @@ -9382,7 +9321,6 @@ __metadata: "@storybook/preset-server-webpack": 7.0.0-alpha.29 "@storybook/server": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 typescript: ~4.6.3 @@ -9398,7 +9336,6 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/preview-web": 7.0.0-alpha.29 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -9414,7 +9351,6 @@ __metadata: "@storybook/addons": 7.0.0-alpha.29 "@storybook/client-logger": 7.0.0-alpha.29 "@storybook/csf": 0.0.2--canary.0899bb7.0 - core-js: ^3.8.2 estraverse: ^5.2.0 global: ^4.4.0 lodash: ^4.17.21 @@ -9434,7 +9370,6 @@ __metadata: "@storybook/client-logger": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 "@storybook/csf": 0.0.2--canary.0899bb7.0 - core-js: ^3.8.2 dequal: ^2.0.2 global: ^4.4.0 lodash: ^4.17.21 @@ -9465,7 +9400,7 @@ __metadata: svelte: ^3.0.0 sveltedoc-parser: ^4.2.1 typescript: ~4.6.3 - vite: 3 + vite: ^3.0.0-beta.1 languageName: unknown linkType: soft @@ -9477,7 +9412,6 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.29 "@storybook/preset-svelte-webpack": 7.0.0-alpha.29 "@storybook/svelte": 7.0.0-alpha.29 - core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 svelte: ^3.48.0 @@ -9500,7 +9434,6 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/docs-tools": 7.0.0-alpha.29 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -9520,7 +9453,6 @@ __metadata: "@storybook/client-logger": 7.0.0-alpha.29 "@storybook/core-common": 7.0.0-alpha.29 chalk: ^4.1.0 - core-js: ^3.8.2 detect-package-manager: ^2.0.1 fetch-retry: ^5.0.2 fs-extra: ^9.0.1 @@ -9569,7 +9501,6 @@ __metadata: "@storybook/client-logger": 7.0.0-alpha.29 "@types/fs-extra": ^9.0.6 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 deep-object-diff: ^1.1.0 fs-extra: ^9.0.1 global: ^4.4.0 @@ -9619,8 +9550,6 @@ __metadata: "@storybook/theming": 7.0.0-alpha.29 "@testing-library/react": ^11.2.2 copy-to-clipboard: ^3.3.1 - core-js: ^3.8.2 - core-js-pure: ^3.8.2 downshift: ^6.0.15 enzyme: ^3.11.0 flush-promises: ^1.0.2 @@ -9655,7 +9584,6 @@ __metadata: "@storybook/preset-vue-webpack": 7.0.0-alpha.29 "@storybook/vue": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 typescript: ~4.6.3 @@ -9683,7 +9611,7 @@ __metadata: "@vitejs/plugin-vue": ^3.0.3 magic-string: ^0.26.1 typescript: ~4.6.3 - vite: 3 + vite: ^3.0.0-beta.1 vue-docgen-api: ^4.40.0 languageName: unknown linkType: soft @@ -9698,7 +9626,6 @@ __metadata: "@storybook/vue3": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 "@vue/compiler-sfc": 3.0.0 - core-js: ^3.8.2 react: 16.14.0 react-dom: 16.14.0 typescript: ~4.6.3 @@ -9721,7 +9648,6 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/docs-tools": 7.0.0-alpha.29 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -9745,7 +9671,6 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/docs-tools": 7.0.0-alpha.29 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 react: 16.14.0 react-dom: 16.14.0 @@ -9770,7 +9695,6 @@ __metadata: "@storybook/preset-web-components-webpack": 7.0.0-alpha.29 "@storybook/web-components": 7.0.0-alpha.29 "@types/node": ^14.14.20 || ^16.0.0 - core-js: ^3.8.2 lit-html: 2.0.2 react: 16.14.0 react-dom: 16.14.0 @@ -9792,7 +9716,6 @@ __metadata: "@storybook/docs-tools": 7.0.0-alpha.29 "@storybook/preview-web": 7.0.0-alpha.29 "@storybook/store": 7.0.0-alpha.29 - core-js: ^3.8.2 global: ^4.4.0 lit-html: 2.0.2 react: 16.14.0 @@ -10339,13 +10262,6 @@ __metadata: languageName: node linkType: hard -"@types/core-js@npm:^2.5.4": - version: 2.5.5 - resolution: "@types/core-js@npm:2.5.5" - checksum: 3ad6081d5ef92bc1a30e055a0846101924251f664d5293b997e3bdc2ef1ba8b961333227c34f1f462d353876455e7a299a07db95febae388ba862f998cd8a4e9 - languageName: node - linkType: hard - "@types/cors@npm:^2.8.12": version: 2.8.12 resolution: "@types/cors@npm:2.8.12" @@ -12992,12 +12908,10 @@ __metadata: "@storybook/jest": ^0.0.10 "@storybook/source-loader": 7.0.0-alpha.29 "@storybook/testing-library": 0.0.14-next.0 - "@types/core-js": ^2.5.4 "@types/jest": ^26.0.16 "@types/node": ^14.14.20 || ^16.0.0 "@types/sass": ^1 "@webcomponents/custom-elements": ^1.4.3 - core-js: ^3.8.2 global: ^4.4.0 jasmine-core: ~3.6.0 jasmine-spec-reporter: ~5.0.2 @@ -17449,7 +17363,7 @@ __metadata: languageName: node linkType: hard -"core-js-pure@npm:^3.20.2, core-js-pure@npm:^3.8.1, core-js-pure@npm:^3.8.2": +"core-js-pure@npm:^3.20.2, core-js-pure@npm:^3.8.1": version: 3.25.0 resolution: "core-js-pure@npm:3.25.0" checksum: 987639f66d06ca514fa33a0691231d31bf834dd4521c659be20dea7d4c23edb4b4e5305d78f3b45c3221c3041ea770e80f14cfddde191e4bc5ef18a87cae90a0 @@ -17470,7 +17384,7 @@ __metadata: languageName: node linkType: hard -"core-js@npm:^3.0.4, core-js@npm:^3.19.2, core-js@npm:^3.21.1, core-js@npm:^3.6.5, core-js@npm:^3.8.2, core-js@npm:^3.8.3": +"core-js@npm:^3.0.4, core-js@npm:^3.19.2, core-js@npm:^3.6.5, core-js@npm:^3.8.2, core-js@npm:^3.8.3": version: 3.25.0 resolution: "core-js@npm:3.25.0" checksum: 471c2706eaca7aca8c9021fdc714f818c27dc9a1d8e429dbad9f4e8e41884f74d32f2862951044c7b531d99c9b4cf32829790a478ffe21bcac9100afb3222096 @@ -44618,15 +44532,15 @@ __metadata: languageName: node linkType: hard -"vite@npm:3": - version: 3.0.9 - resolution: "vite@npm:3.0.9" +"vite@npm:3.1.0-beta.1": + version: 3.1.0-beta.1 + resolution: "vite@npm:3.1.0-beta.1" dependencies: esbuild: ^0.14.47 fsevents: ~2.3.2 postcss: ^8.4.16 resolve: ^1.22.1 - rollup: ">=2.75.6 <2.77.0 || ~2.77.0" + rollup: ~2.78.0 peerDependencies: less: "*" sass: "*" @@ -44646,19 +44560,19 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 0e39c11e8befd9ac139ab48ace83125bb4ad0ded14fd7c370290af8c001accbb5e67ce7677d958f5b2ffaf0a38b342ffabf166bc33aa5de32a8510ecb4596be9 + checksum: 2dad78ffb2c6dff7bbeb76ba8c237c25d1b7be3b054b3958c3d2df681bacdf300abed3d2646975788254b4a9b193636541017753fd52825e946c497f45d1dd37 languageName: node linkType: hard -"vite@npm:3.1.0-beta.1": - version: 3.1.0-beta.1 - resolution: "vite@npm:3.1.0-beta.1" +"vite@npm:^3.0.0-beta.1": + version: 3.0.9 + resolution: "vite@npm:3.0.9" dependencies: esbuild: ^0.14.47 fsevents: ~2.3.2 postcss: ^8.4.16 resolve: ^1.22.1 - rollup: ~2.78.0 + rollup: ">=2.75.6 <2.77.0 || ~2.77.0" peerDependencies: less: "*" sass: "*" @@ -44678,7 +44592,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 2dad78ffb2c6dff7bbeb76ba8c237c25d1b7be3b054b3958c3d2df681bacdf300abed3d2646975788254b4a9b193636541017753fd52825e946c497f45d1dd37 + checksum: 0e39c11e8befd9ac139ab48ace83125bb4ad0ded14fd7c370290af8c001accbb5e67ce7677d958f5b2ffaf0a38b342ffabf166bc33aa5de32a8510ecb4596be9 languageName: node linkType: hard @@ -44763,7 +44677,6 @@ __metadata: "@vue/cli-service": ^5.0.4 "@vue/compiler-sfc": ^3.2.36 babel-loader: ^8.2.5 - core-js: ^3.8.2 storybook: 7.0.0-alpha.29 typescript: ~4.6.3 vue: ^3.0.0 @@ -44794,7 +44707,6 @@ __metadata: "@vue/cli-plugin-babel": ^5.0.4 "@vue/cli-plugin-typescript": ^5.0.4 "@vue/cli-service": ^5.0.4 - core-js: ^3.8.2 storybook: 7.0.0-alpha.29 typescript: ~4.6.3 vue: ^2.6.12 diff --git a/docs/configure/babel.md b/docs/configure/babel.md index c5641689c141..31ec9562d373 100644 --- a/docs/configure/babel.md +++ b/docs/configure/babel.md @@ -138,14 +138,6 @@ Once the command completes, you should have a `.babelrc.json` file created in th "babel-plugin-macros", "@babel/plugin-proposal-optional-chaining", "@babel/plugin-proposal-nullish-coalescing-operator", - [ - "babel-plugin-polyfill-corejs3", - { - "method": "usage-global", - "absoluteImports": "core-js", - "version": "3.18.3" - } - ] ] } ``` diff --git a/scripts/package.json b/scripts/package.json index d311c05a97c0..626a704ed8c1 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -108,7 +108,6 @@ "chalk": "^4.1.0", "codecov": "^3.8.1", "commander": "^6.2.1", - "core-js": "^3.21.1", "cross-env": "^7.0.3", "danger": "^10.6.2", "detect-port": "^1.3.0", diff --git a/scripts/yarn.lock b/scripts/yarn.lock index b3e71a922130..7d34c44f69c0 100644 --- a/scripts/yarn.lock +++ b/scripts/yarn.lock @@ -3294,7 +3294,6 @@ __metadata: chalk: ^4.1.0 codecov: ^3.8.1 commander: ^6.2.1 - core-js: ^3.21.1 cross-env: ^7.0.3 cypress: 8.7.0 danger: ^10.6.2 @@ -6735,7 +6734,7 @@ __metadata: languageName: node linkType: hard -"core-js@npm:^3.21.1, core-js@npm:^3.6.5, core-js@npm:^3.8.2": +"core-js@npm:^3.6.5, core-js@npm:^3.8.2": version: 3.23.5 resolution: "core-js@npm:3.23.5" checksum: ab9b483ede285b3949e2411f9190d147ac589d111b0aa3a4b2999a1bf2755b3e930529c2a22ff550efd4fc154c7cfae700bee858dedff905a09f35ddbcc6425f From ce8b25c51b254ee6aea259e301118445d8cf899d Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Sat, 3 Sep 2022 11:50:45 -0400 Subject: [PATCH 2/4] Keep core-js for angular --- code/addons/storyshots/storyshots-core/package.json | 1 + .../storyshots-core/src/frameworks/angular/loader.ts | 8 ++++++++ code/frameworks/angular/package.json | 1 + code/frameworks/angular/src/client/globals.ts | 4 ++-- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/code/addons/storyshots/storyshots-core/package.json b/code/addons/storyshots/storyshots-core/package.json index c300a43795e5..6bb6f98dc948 100644 --- a/code/addons/storyshots/storyshots-core/package.json +++ b/code/addons/storyshots/storyshots-core/package.json @@ -48,6 +48,7 @@ "@types/glob": "^7.1.3", "@types/jest": "^26.0.16", "@types/jest-specific-snapshot": "^0.5.3", + "core-js": "^3.8.2", "glob": "^7.1.6", "global": "^4.4.0", "jest-specific-snapshot": "^4.0.0", diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts index 633193ec6830..fa0b0755cc6d 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts @@ -1,9 +1,17 @@ +import 'core-js'; +import 'core-js/es/reflect'; import hasDependency from '../hasDependency'; import configure from '../configure'; import { Loader } from '../Loader'; import { StoryshotsOptions } from '../../api/StoryshotsOptions'; function setupAngularJestPreset() { + // Needed to prevent "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten." + jest.requireActual('core-js'); + jest.requireActual('core-js/modules/es.promise'); + // jest.requireActual('core-js/es6/reflect'); + // jest.requireActual('core-js/es7/reflect'); + // Angular + Jest + Storyshots = Crazy Shit: // We need to require 'jest-preset-angular/build/setupJest' before any storybook code // is running inside jest - one of the things that `jest-preset-angular/build/setupJest` does is diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 15630f63dd1a..95b1b72ef88f 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -51,6 +51,7 @@ "@types/react": "^16.14.23", "@types/react-dom": "^16.9.14", "autoprefixer": "^9.8.6", + "core-js": "^3.8.2", "find-up": "^5.0.0", "fork-ts-checker-webpack-plugin": "^7.2.6", "global": "^4.4.0", diff --git a/code/frameworks/angular/src/client/globals.ts b/code/frameworks/angular/src/client/globals.ts index a0b40ec25688..e6e55cbf924d 100644 --- a/code/frameworks/angular/src/client/globals.ts +++ b/code/frameworks/angular/src/client/globals.ts @@ -40,8 +40,8 @@ import global from 'global'; // import 'classlist.js'; // Run `npm install --save classlist.js`. /** Evergreen browsers require these. * */ -// import 'core-js/es/reflect'; -// import 'core-js/proposals/reflect-metadata'; +import 'core-js/es/reflect'; +import 'core-js/proposals/reflect-metadata'; /** * Required to support Web Animations `@angular/animation`. From 4a662b3866022a9f50d75c350f77d08ed16dfdab Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Sat, 3 Sep 2022 12:02:19 -0400 Subject: [PATCH 3/4] Restore core-js to some packages They use features which our browserslist thinks needs to be polyfilled. I think these can be removed again once (if?) we move them from babel to esbuild. --- code/addons/interactions/package.json | 1 + code/lib/cli/package.json | 1 + code/lib/csf-tools/package.json | 1 + code/lib/instrumenter/package.json | 1 + code/yarn.lock | 6 ++++++ 5 files changed, 10 insertions(+) diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index a0af021cbfec..04c853972936 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -45,6 +45,7 @@ "@storybook/csf": "0.0.2--canary.0899bb7.0", "@storybook/instrumenter": "7.0.0-alpha.29", "@storybook/theming": "7.0.0-alpha.29", + "core-js": "^3.8.2", "global": "^4.4.0", "jest-mock": "^27.0.6", "polished": "^4.2.2", diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index be6d785e660b..14efb77ec8b3 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -51,6 +51,7 @@ "boxen": "^5.1.2", "chalk": "^4.1.0", "commander": "^6.2.1", + "core-js": "^3.8.2", "cross-spawn": "^7.0.3", "degit": "^2.8.4", "envinfo": "^7.7.3", diff --git a/code/lib/csf-tools/package.json b/code/lib/csf-tools/package.json index 871e33c0832c..e99fbe9558ce 100644 --- a/code/lib/csf-tools/package.json +++ b/code/lib/csf-tools/package.json @@ -42,6 +42,7 @@ "@babel/traverse": "^7.12.11", "@babel/types": "^7.12.11", "@storybook/csf": "0.0.2--canary.0899bb7.0", + "core-js": "^3.8.2", "fs-extra": "^9.0.1", "global": "^4.4.0", "ts-dedent": "^2.0.0" diff --git a/code/lib/instrumenter/package.json b/code/lib/instrumenter/package.json index 00474b6464f4..be54a466608b 100644 --- a/code/lib/instrumenter/package.json +++ b/code/lib/instrumenter/package.json @@ -37,6 +37,7 @@ "@storybook/addons": "7.0.0-alpha.29", "@storybook/client-logger": "7.0.0-alpha.29", "@storybook/core-events": "7.0.0-alpha.29", + "core-js": "^3.8.2", "global": "^4.4.0" }, "devDependencies": { diff --git a/code/yarn.lock b/code/yarn.lock index 8184c70a4315..82a49b94538f 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -7109,6 +7109,7 @@ __metadata: "@storybook/jest": ^0.0.10 "@storybook/testing-library": 0.0.14-next.0 "@storybook/theming": 7.0.0-alpha.29 + core-js: ^3.8.2 formik: ^2.2.9 global: ^4.4.0 jest-mock: ^27.0.6 @@ -7279,6 +7280,7 @@ __metadata: "@types/jest": ^26.0.16 "@types/jest-specific-snapshot": ^0.5.3 babel-loader: ^8.2.5 + core-js: ^3.8.2 enzyme: ^3.11.0 enzyme-to-json: ^3.6.1 glob: ^7.1.6 @@ -7511,6 +7513,7 @@ __metadata: "@types/react-dom": ^16.9.14 "@types/tmp": ^0.2.3 autoprefixer: ^9.8.6 + core-js: ^3.8.2 cross-spawn: ^7.0.3 find-up: ^5.0.0 fork-ts-checker-webpack-plugin: ^7.2.6 @@ -7846,6 +7849,7 @@ __metadata: boxen: ^5.1.2 chalk: ^4.1.0 commander: ^6.2.1 + core-js: ^3.8.2 cross-spawn: ^7.0.3 degit: ^2.8.4 envinfo: ^7.7.3 @@ -8187,6 +8191,7 @@ __metadata: "@storybook/csf": 0.0.2--canary.0899bb7.0 "@storybook/mdx2-csf": ^0.0.3 "@types/fs-extra": ^9.0.6 + core-js: ^3.8.2 fs-extra: ^9.0.1 global: ^4.4.0 js-yaml: ^3.14.1 @@ -8468,6 +8473,7 @@ __metadata: "@storybook/addons": 7.0.0-alpha.29 "@storybook/client-logger": 7.0.0-alpha.29 "@storybook/core-events": 7.0.0-alpha.29 + core-js: ^3.8.2 global: ^4.4.0 typescript: ~4.6.3 languageName: unknown From 315db2cad6b289b9ab266576726d4fa0ba3a72ba Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Sun, 4 Sep 2022 00:39:47 -0400 Subject: [PATCH 4/4] Revert docs change --- docs/configure/babel.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/configure/babel.md b/docs/configure/babel.md index 31ec9562d373..c5641689c141 100644 --- a/docs/configure/babel.md +++ b/docs/configure/babel.md @@ -138,6 +138,14 @@ Once the command completes, you should have a `.babelrc.json` file created in th "babel-plugin-macros", "@babel/plugin-proposal-optional-chaining", "@babel/plugin-proposal-nullish-coalescing-operator", + [ + "babel-plugin-polyfill-corejs3", + { + "method": "usage-global", + "absoluteImports": "core-js", + "version": "3.18.3" + } + ] ] } ```