Skip to content

Commit

Permalink
chore: update core-js (#29791)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet authored Mar 1, 2021
1 parent 2f40b0a commit 2758329
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ Object {
"es.array.last-index-of",
"es.array.map",
"es.array.of",
"es.array.reduce",
"es.array.reduce-right",
"es.array.reverse",
"es.array.slice",
"es.array.some",
Expand Down Expand Up @@ -216,6 +214,8 @@ Object {
"es.promise",
"es.symbol.description",
"web.*",
"es.array.reduce",
"es.array.reduce-right",
],
"modules": false,
"targets": undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ Object {
"es.array.last-index-of",
"es.array.map",
"es.array.of",
"es.array.reduce",
"es.array.reduce-right",
"es.array.reverse",
"es.array.slice",
"es.array.some",
Expand Down Expand Up @@ -238,6 +236,8 @@ Object {
"es.promise",
"es.symbol.description",
"web.*",
"es.array.reduce",
"es.array.reduce-right",
],
"loose": true,
"modules": false,
Expand Down Expand Up @@ -351,8 +351,6 @@ Object {
"es.array.last-index-of",
"es.array.map",
"es.array.of",
"es.array.reduce",
"es.array.reduce-right",
"es.array.reverse",
"es.array.slice",
"es.array.some",
Expand Down Expand Up @@ -516,6 +514,8 @@ Object {
"es.promise",
"es.symbol.description",
"web.*",
"es.array.reduce",
"es.array.reduce-right",
],
"loose": true,
"modules": false,
Expand Down Expand Up @@ -621,8 +621,6 @@ Object {
"es.array.last-index-of",
"es.array.map",
"es.array.of",
"es.array.reduce",
"es.array.reduce-right",
"es.array.reverse",
"es.array.slice",
"es.array.some",
Expand Down Expand Up @@ -786,6 +784,8 @@ Object {
"es.promise",
"es.symbol.description",
"web.*",
"es.array.reduce",
"es.array.reduce-right",
],
"loose": true,
"modules": false,
Expand Down Expand Up @@ -879,8 +879,6 @@ Object {
"es.array.last-index-of",
"es.array.map",
"es.array.of",
"es.array.reduce",
"es.array.reduce-right",
"es.array.reverse",
"es.array.slice",
"es.array.some",
Expand Down Expand Up @@ -1044,6 +1042,8 @@ Object {
"es.promise",
"es.symbol.description",
"web.*",
"es.array.reduce",
"es.array.reduce-right",
],
"loose": true,
"modules": false,
Expand Down
6 changes: 3 additions & 3 deletions packages/gatsby-legacy-polyfills/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"watch:polyfills": "microbundle -f iife -i src/polyfills.js --no-sourcemap --external=none --watch"
},
"dependencies": {
"core-js-compat": "^3.6.5"
"core-js-compat": "3.9.0"
},
"files": [
"dist/"
],
"devDependencies": {
"chokidar-cli": "^2.1.0",
"codegen.macro": "^4.0.0",
"core-js": "^3.6.5",
"core-js": "3.9.0",
"cpy-cli": "^3.1.1",
"cross-env": "^7.0.3",
"execa": "^4.1.0",
Expand All @@ -44,4 +44,4 @@
"url-polyfill": "^1.1.12",
"whatwg-fetch": "^3.4.1"
}
}
}
4 changes: 4 additions & 0 deletions packages/gatsby-legacy-polyfills/src/exclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,9 @@ module.exports = {
`es.promise`,
`es.symbol.description`,
`web.*`,

// core-js@3.7.0 added extra polyfill for reduce & reduce-right because of bug - we don't care about that bug, we're already on chrome 87
`es.array.reduce`,
`es.array.reduce-right`,
],
}
4 changes: 2 additions & 2 deletions packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"compression": "^1.7.4",
"convert-hrtime": "^3.0.0",
"copyfiles": "^2.3.0",
"core-js": "^3.6.5",
"core-js": "^3.9.0",
"cors": "^2.8.5",
"css-loader": "^5.0.1",
"css-minimizer-webpack-plugin": "^1.2.0",
Expand Down Expand Up @@ -261,4 +261,4 @@
"yargs": {
"boolean-negation": false
}
}
}
23 changes: 14 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9500,27 +9500,32 @@ copyfiles@^2.3.0:
through2 "^2.0.1"
yargs "^15.3.1"

core-js-compat@^3.6.2, core-js-compat@^3.6.5:
version "3.6.5"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.5.tgz#2a51d9a4e25dfd6e690251aa81f99e3c05481f1c"
integrity sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng==
dependencies:
browserslist "^4.8.5"
semver "7.0.0"

core-js-compat@^3.8.1, core-js-compat@^3.9.0:
core-js-compat@3.9.0, core-js-compat@^3.8.1, core-js-compat@^3.9.0:
version "3.9.0"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.9.0.tgz#29da39385f16b71e1915565aa0385c4e0963ad56"
integrity sha512-YK6fwFjCOKWwGnjFUR3c544YsnA/7DoLL0ysncuOJ4pwbriAtOpvM2bygdlcXbvQCQZ7bBU9CL4t7tGl7ETRpQ==
dependencies:
browserslist "^4.16.3"
semver "7.0.0"

core-js-compat@^3.6.2:
version "3.6.5"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.5.tgz#2a51d9a4e25dfd6e690251aa81f99e3c05481f1c"
integrity sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng==
dependencies:
browserslist "^4.8.5"
semver "7.0.0"

core-js-pure@^3.0.0:
version "3.6.4"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.6.4.tgz#4bf1ba866e25814f149d4e9aaa08c36173506e3a"
integrity sha512-epIhRLkXdgv32xIUFaaAry2wdxZYBi6bgM7cB136dzzXXa+dFyRLTZeLUJxnd8ShrmyVXBub63n2NHo2JAt8Cw==

core-js@3.9.0, core-js@^3.9.0:
version "3.9.0"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.9.0.tgz#790b1bb11553a2272b36e2625c7179db345492f8"
integrity sha512-PyFBJaLq93FlyYdsndE5VaueA9K5cNB7CGzeCj191YYLhkQM0gdZR2SKihM70oF0wdqKSKClv/tEBOpoRmdOVQ==

core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.6.5:
version "2.6.11"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c"
Expand Down

0 comments on commit 2758329

Please sign in to comment.