Skip to content

Commit

Permalink
Merge pull request #19098 from storybookjs/remove-core-js
Browse files Browse the repository at this point in the history
Deps: Remove core-js from most packages
  • Loading branch information
shilman authored Sep 5, 2022
2 parents c240ea1 + 315db2c commit 5a6aee7
Show file tree
Hide file tree
Showing 78 changed files with 27 additions and 192 deletions.
1 change: 0 additions & 1 deletion code/addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/addons/controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 0 additions & 1 deletion code/addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion code/addons/highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion code/addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/addons/measure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion code/addons/outline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 0 additions & 1 deletion code/addons/storyshots/storyshots-puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion code/addons/storysource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions code/addons/toolbars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/addons/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions code/examples/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/examples/vue-3-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"storybook": "storybook dev -p 6006 --no-manager-cache"
},
"dependencies": {
"core-js": "^3.8.2",
"vue": "^3.0.0"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion code/examples/vue-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/html-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/preact-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
6 changes: 4 additions & 2 deletions code/frameworks/react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions code/frameworks/react-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/server-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 2 additions & 1 deletion code/frameworks/svelte-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/svelte-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/vue-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 2 additions & 1 deletion code/frameworks/vue3-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/vue3-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 0 additions & 1 deletion code/frameworks/web-components-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 0 additions & 1 deletion code/lib/addons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion code/lib/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/lib/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/lib/builder-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/lib/channel-postmessage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/lib/channel-websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 0 additions & 1 deletion code/lib/channels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 1 addition & 3 deletions code/lib/cli/src/generators/PREACT/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
1 change: 0 additions & 1 deletion code/lib/client-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/lib/client-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"prepare": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"core-js": "^3.8.2",
"global": "^4.4.0"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion code/lib/codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/lib/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/lib/core-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion code/lib/core-client/src/globals/polyfills.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import 'regenerator-runtime/runtime';
import 'core-js/features/symbol';
1 change: 0 additions & 1 deletion code/lib/core-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 0 additions & 3 deletions code/lib/core-events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
"check": "tsc --noEmit",
"prepare": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"core-js": "^3.8.2"
},
"devDependencies": {
"typescript": "~4.6.3"
},
Expand Down
1 change: 0 additions & 1 deletion code/lib/core-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading

0 comments on commit 5a6aee7

Please sign in to comment.