Skip to content

Commit

Permalink
Upgrade to core-js v3
Browse files Browse the repository at this point in the history
  • Loading branch information
armandabric authored and ndelangen committed Apr 27, 2019
1 parent 2b38f0b commit 569b553
Show file tree
Hide file tree
Showing 58 changed files with 89 additions and 60 deletions.
8 changes: 4 additions & 4 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '2' }],
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }],
'@babel/preset-typescript',
'@babel/preset-react',
'@babel/preset-flow',
Expand All @@ -22,7 +22,7 @@ module.exports = {
env: {
test: {
presets: [
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '2' }],
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }],
],
plugins: [
'babel-plugin-require-context-hook',
Expand All @@ -39,7 +39,7 @@ module.exports = {
{
test: './lib',
presets: [
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '2' }],
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }],
'@babel/preset-react',
],
plugins: [
Expand Down Expand Up @@ -72,7 +72,7 @@ module.exports = {
targets: {
node: '8.11',
},
corejs: '2',
corejs: '3',
},
],
],
Expand Down
2 changes: 1 addition & 1 deletion addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@storybook/theming": "5.1.0-alpha.36",
"axe-core": "^3.2.2",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"hoist-non-react-statics": "^3.3.0",
"memoizerific": "^1.11.3",
Expand Down
2 changes: 1 addition & 1 deletion addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@storybook/components": "5.1.0-alpha.36",
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"fast-deep-equal": "^2.0.1",
"global": "^4.3.2",
"lodash": "^4.17.11",
Expand Down
2 changes: 1 addition & 1 deletion addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@storybook/components": "5.1.0-alpha.36",
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"memoizerific": "^1.11.3",
"react": "^16.8.4",
"util-deprecate": "^1.0.2"
Expand Down
2 changes: 1 addition & 1 deletion addons/centered/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"util-deprecate": "^1.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion addons/cssresources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@storybook/api": "5.1.0-alpha.36",
"@storybook/components": "5.1.0-alpha.36",
"@storybook/core-events": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.4"
},
Expand Down
2 changes: 1 addition & 1 deletion addons/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@storybook/addons": "5.1.0-alpha.36",
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"format-json": "^1.0.3",
"prop-types": "^15.7.2",
"react": "^16.8.4",
Expand Down
2 changes: 1 addition & 1 deletion addons/google-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@storybook/addons": "5.1.0-alpha.36",
"@storybook/core-events": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react-ga": "^2.5.7"
},
Expand Down
2 changes: 1 addition & 1 deletion addons/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@storybook/addons": "5.1.0-alpha.28",
"@storybook/api": "5.1.0-alpha.28",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"graphiql": "^0.13.0",
"graphql": "^14.2.1",
Expand Down
2 changes: 1 addition & 1 deletion addons/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@storybook/client-logger": "5.1.0-alpha.36",
"@storybook/components": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"marksy": "^7.0.0",
"nested-object-assign": "^1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@storybook/components": "5.1.0-alpha.36",
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"react": "^16.8.4",
"upath": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion addons/knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"copy-to-clipboard": "^3.0.8",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"escape-html": "^1.0.3",
"fast-deep-equal": "^2.0.1",
"global": "^4.3.2",
Expand Down
2 changes: 1 addition & 1 deletion addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/router": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"prop-types": "^15.7.2",
"qs": "^6.6.0"
Expand Down
2 changes: 1 addition & 1 deletion addons/notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/router": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"markdown-to-jsx": "^6.9.3",
"prop-types": "^15.7.2",
Expand Down
2 changes: 1 addition & 1 deletion addons/ondevice-backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"@storybook/addons": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"prop-types": "^15.7.2"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion addons/ondevice-knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@storybook/addons": "5.1.0-alpha.36",
"@storybook/core-events": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"deep-equal": "^1.0.1",
"prop-types": "^15.7.2",
"react-native-color-picker": "^0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion addons/ondevice-notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"@storybook/addons": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"prop-types": "^15.7.2",
"react-native-simple-markdown": "^1.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion addons/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@storybook/addons": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"util-deprecate": "^1.0.2"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion addons/storyshots/storyshots-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@storybook/addons": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"glob": "^7.1.3",
"global": "^4.3.2",
"jest-specific-snapshot": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion addons/storyshots/storyshots-puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@storybook/node-logger": "5.1.0-alpha.36",
"@storybook/router": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"jest-image-snapshot": "^2.8.1",
"puppeteer": "^1.12.2",
"regenerator-runtime": "^0.12.1"
Expand Down
2 changes: 1 addition & 1 deletion addons/storysource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@storybook/components": "5.1.0-alpha.36",
"@storybook/router": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"estraverse": "^4.2.0",
"loader-utils": "^1.2.3",
"prettier": "^1.16.4",
Expand Down
2 changes: 1 addition & 1 deletion addons/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@storybook/components": "5.1.0-alpha.36",
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"memoizerific": "^1.11.3",
"prop-types": "^15.7.2",
Expand Down
2 changes: 1 addition & 1 deletion app/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@storybook/core": "5.1.0-alpha.36",
"@storybook/node-logger": "5.1.0-alpha.36",
"angular2-template-loader": "^0.6.2",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"global": "^4.3.2",
"regenerator-runtime": "^0.12.1",
Expand Down
2 changes: 1 addition & 1 deletion app/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@ember/test-helpers": "^1.5.0",
"@storybook/core": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.12.1"
},
Expand Down
2 changes: 1 addition & 1 deletion app/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"@storybook/core": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"html-loader": "^0.5.5",
"regenerator-runtime": "^0.12.1"
Expand Down
2 changes: 1 addition & 1 deletion app/marko/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@storybook/core": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"marko-loader": "^1.5.0",
"raw-loader": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion app/mithril/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@storybook/core": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.12.1"
},
Expand Down
2 changes: 1 addition & 1 deletion app/polymer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@storybook/core": "5.1.0-alpha.36",
"@webcomponents/webcomponentsjs": "^1.2.0",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.12.1",
"webpack": "^4.28.0"
Expand Down
2 changes: 1 addition & 1 deletion app/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@storybook/core": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.12.1"
},
Expand Down
2 changes: 1 addition & 1 deletion app/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"babel-plugin-react-docgen": "^3.0.0",
"babel-preset-react-app": "^7.0.2",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"lodash": "^4.17.11",
"mini-css-extract-plugin": "^0.5.0",
Expand Down
2 changes: 1 addition & 1 deletion app/riot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"@storybook/core": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"raw-loader": "^1.0.0",
"regenerator-runtime": "^0.12.1"
Expand Down
2 changes: 1 addition & 1 deletion app/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@storybook/core": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.12.1"
},
Expand Down
2 changes: 1 addition & 1 deletion app/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@storybook/core": "5.1.0-alpha.36",
"common-tags": "^1.8.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"regenerator-runtime": "^0.12.1"
},
Expand Down
2 changes: 1 addition & 1 deletion examples-native/crna-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"babel-loader": "^8.0.4",
"babel-plugin-module-resolver": "^3.2.0",
"babel-preset-expo": "^5.1.1",
"core-js": "^2.5.7",
"core-js": "^3.0.1",
"expo-cli": "^2.11.9",
"jest-expo": "^32.0.0",
"react-test-renderer": "16.5.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@angular/platform-browser": "^7.2.6",
"@angular/platform-browser-dynamic": "^7.2.6",
"@ngrx/store": "^7.2.0",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.4.0",
"zone.js": "^0.8.29"
Expand Down
29 changes: 29 additions & 0 deletions examples/cra-react15/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "cra-react15",
"version": "0.1.0",
"private": true,
"dependencies": {
"babel-loader": "7",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"react-scripts": "1.1.5",
"global": "^4.3.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"now-build": "node ../../scripts/bootstrap --core && yarn run build-storybook --quiet",
"storybook": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -s public"
},
"devDependencies": {
"@storybook/addon-actions": "5.1.0-alpha.36",
"@storybook/addon-links": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"@storybook/react": "5.1.0-alpha.36",
"babel-core": "6",
"babel-runtime": "6"
}
}
2 changes: 1 addition & 1 deletion examples/official-storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = async ({ config }) => ({
options: {
cacheDirectory: `.cache/storybook`,
presets: [
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: 2 }],
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: 3 }],
'@babel/preset-typescript',
['babel-preset-minify', { builtIns: false, mangle: false }],
'@babel/preset-react',
Expand Down
2 changes: 1 addition & 1 deletion lib/addons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@storybook/api": "5.1.0-alpha.36",
"@storybook/channels": "5.1.0-alpha.36",
"@storybook/client-logger": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"global": "^4.3.2",
"util-deprecate": "^1.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@storybook/core-events": "5.1.0-alpha.36",
"@storybook/router": "5.1.0-alpha.36",
"@storybook/theming": "5.1.0-alpha.36",
"core-js": "^2.6.5",
"core-js": "^3.0.1",
"fast-deep-equal": "^2.0.1",
"global": "^4.3.2",
"lodash.isequal": "^4.5.0",
Expand Down
Loading

0 comments on commit 569b553

Please sign in to comment.