Skip to content

Commit

Permalink
Update polyfill dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 10, 2023
1 parent b92f8be commit 7f49b9f
Show file tree
Hide file tree
Showing 15 changed files with 112 additions and 45 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -46,7 +46,7 @@
"c8": "^7.12.0",
"chalk": "^5.0.0",
"charcodes": "^0.2.0",
"core-js": "^3.26.0",
"core-js": "^3.30.2",
"eslint": "^8.22.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-import-resolver-node": "^0.3.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-compat-data/package.json
Expand Up @@ -41,7 +41,7 @@
],
"devDependencies": {
"@mdn/browser-compat-data": "^4.0.10",
"core-js-compat": "^3.25.1",
"core-js-compat": "^3.30.2",
"electron-to-chromium": "^1.4.248"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-node/package.json
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@babel/register": "workspace:^",
"commander": "^4.0.1",
"core-js": "^3.26.0",
"core-js": "^3.30.2",
"node-environment-flags": "^1.0.5",
"regenerator-runtime": "^0.13.11",
"v8flags": "^3.1.1"
Expand Down
Expand Up @@ -28,8 +28,8 @@
"devDependencies": {
"@babel/core": "workspace:^",
"@babel/helper-plugin-test-runner": "workspace:^",
"babel-plugin-polyfill-corejs3": "^0.6.0",
"core-js-pure": "^3.25.1"
"babel-plugin-polyfill-corejs3": "^0.8.1",
"core-js-pure": "^3.30.2"
},
"engines": {
"node": ">=6.9.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-proposal-decorators/package.json
Expand Up @@ -35,7 +35,7 @@
"@babel/traverse": "workspace:^",
"@types/charcodes": "^0.2.0",
"array.prototype.concat": "^1.0.2",
"babel-plugin-polyfill-es-shims": "^0.7.1",
"babel-plugin-polyfill-es-shims": "^0.9.0",
"charcodes": "^0.2.0",
"object.getownpropertydescriptors": "^2.1.1"
},
Expand Down
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@babel/core": "workspace:^",
"@babel/helper-plugin-test-runner": "workspace:^",
"core-js": "^3.26.0"
"core-js": "^3.30.2"
},
"engines": {
"node": ">=6.9.0"
Expand Down
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@babel/core": "workspace:^",
"@babel/helper-plugin-test-runner": "workspace:^",
"core-js": "^3.26.0"
"core-js": "^3.30.2"
},
"engines": {
"node": ">=6.9.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-plugin-transform-runtime/package.json
Expand Up @@ -22,9 +22,9 @@
"dependencies": {
"@babel/helper-module-imports": "workspace:^",
"@babel/helper-plugin-utils": "workspace:^",
"babel-plugin-polyfill-corejs2": "^0.3.3",
"babel-plugin-polyfill-corejs3": "^0.6.0",
"babel-plugin-polyfill-regenerator": "^0.4.1",
"babel-plugin-polyfill-corejs2": "^0.4.1",
"babel-plugin-polyfill-corejs3": "^0.8.1",
"babel-plugin-polyfill-regenerator": "^0.5.0",
"semver": "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
},
"peerDependencies": {
Expand Down
@@ -0,0 +1 @@
class A {}
@@ -0,0 +1,4 @@
{
"presets": [["env", { "corejs": 3, "useBuiltIns": "usage" }]],
"plugins": ["transform-runtime"]
}
@@ -0,0 +1,7 @@
var _createClass = require("@babel/runtime/helpers/createClass");
var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
var A = /*#__PURE__*/_createClass(function A() {
"use strict";

_classCallCheck(this, A);
});
8 changes: 4 additions & 4 deletions packages/babel-preset-env/package.json
Expand Up @@ -87,10 +87,10 @@
"@babel/plugin-transform-unicode-regex": "workspace:^",
"@babel/preset-modules": "^0.1.5",
"@babel/types": "workspace:^",
"babel-plugin-polyfill-corejs2": "^0.3.3",
"babel-plugin-polyfill-corejs3": "^0.6.0",
"babel-plugin-polyfill-regenerator": "^0.4.1",
"core-js-compat": "^3.25.1",
"babel-plugin-polyfill-corejs2": "^0.4.1",
"babel-plugin-polyfill-corejs3": "^0.8.1",
"babel-plugin-polyfill-regenerator": "^0.5.0",
"core-js-compat": "^3.30.2",
"semver": "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
},
"peerDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/babel-preset-env/src/index.ts
Expand Up @@ -208,6 +208,9 @@ export const getPolyfillPlugins = ({
proposals,
shippedProposals,
debug,
"#__secret_key__@babel/preset-env__compatibility": {
noRuntimeName: true,
},
};

if (corejs) {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-runtime-corejs3/package.json
Expand Up @@ -13,7 +13,7 @@
},
"author": "The Babel Team (https://babel.dev/team)",
"dependencies": {
"core-js-pure": "^3.25.1",
"core-js-pure": "^3.30.2",
"regenerator-runtime": "^0.13.11"
},
"exports": {
Expand Down
110 changes: 81 additions & 29 deletions yarn.lock
Expand Up @@ -285,7 +285,7 @@ __metadata:
resolution: "@babel/compat-data@workspace:packages/babel-compat-data"
dependencies:
"@mdn/browser-compat-data": ^4.0.10
core-js-compat: ^3.25.1
core-js-compat: ^3.30.2
electron-to-chromium: ^1.4.248
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -661,6 +661,22 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-define-polyfill-provider@npm:^0.4.0":
version: 0.4.0
resolution: "@babel/helper-define-polyfill-provider@npm:0.4.0"
dependencies:
"@babel/helper-compilation-targets": ^7.17.7
"@babel/helper-plugin-utils": ^7.16.7
debug: ^4.1.1
lodash.debounce: ^4.0.8
resolve: ^1.14.2
semver: ^6.1.2
peerDependencies:
"@babel/core": ^7.4.0-0
checksum: 5dca4c5e78457c5ced366bea601efa4e8c69bf5d53b0fe540283897575c49b1b88191c8ef062110de9046e886703ed3270fcda3a87f0886cdbb549204d3ff63f
languageName: node
linkType: hard

"@babel/helper-environment-visitor@npm:^7.18.2, @babel/helper-environment-visitor@npm:^7.18.9":
version: 7.18.9
resolution: "@babel/helper-environment-visitor@npm:7.18.9"
Expand Down Expand Up @@ -1089,7 +1105,7 @@ __metadata:
"@babel/runtime": "workspace:^"
"@types/v8flags": ^3.1.1
commander: ^4.0.1
core-js: ^3.26.0
core-js: ^3.30.2
fs-readdir-recursive: ^1.0.0
make-dir: "condition:BABEL_8_BREAKING ? : ^2.1.0"
node-environment-flags: ^1.0.5
Expand Down Expand Up @@ -1256,8 +1272,8 @@ __metadata:
"@babel/helper-plugin-utils": "workspace:^"
"@babel/helper-remap-async-to-generator": "workspace:^"
"@babel/plugin-syntax-async-generators": ^7.8.4
babel-plugin-polyfill-corejs3: ^0.6.0
core-js-pure: ^3.25.1
babel-plugin-polyfill-corejs3: ^0.8.1
core-js-pure: ^3.30.2
peerDependencies:
"@babel/core": ^7.0.0-0
languageName: unknown
Expand Down Expand Up @@ -1331,7 +1347,7 @@ __metadata:
"@babel/traverse": "workspace:^"
"@types/charcodes": ^0.2.0
array.prototype.concat: ^1.0.2
babel-plugin-polyfill-es-shims: ^0.7.1
babel-plugin-polyfill-es-shims: ^0.9.0
charcodes: ^0.2.0
object.getownpropertydescriptors: ^2.1.1
peerDependencies:
Expand Down Expand Up @@ -1377,7 +1393,7 @@ __metadata:
"@babel/helper-create-regexp-features-plugin": "workspace:^"
"@babel/helper-plugin-test-runner": "workspace:^"
"@babel/helper-plugin-utils": "workspace:^"
core-js: ^3.26.0
core-js: ^3.30.2
peerDependencies:
"@babel/core": ^7.0.0
languageName: unknown
Expand Down Expand Up @@ -2790,7 +2806,7 @@ __metadata:
"@babel/helper-create-regexp-features-plugin": "workspace:^"
"@babel/helper-plugin-test-runner": "workspace:^"
"@babel/helper-plugin-utils": "workspace:^"
core-js: ^3.26.0
core-js: ^3.30.2
peerDependencies:
"@babel/core": ^7.0.0
languageName: unknown
Expand Down Expand Up @@ -3135,9 +3151,9 @@ __metadata:
"@babel/runtime-corejs3": "workspace:^"
"@babel/template": "workspace:^"
"@babel/types": "workspace:^"
babel-plugin-polyfill-corejs2: ^0.3.3
babel-plugin-polyfill-corejs3: ^0.6.0
babel-plugin-polyfill-regenerator: ^0.4.1
babel-plugin-polyfill-corejs2: ^0.4.1
babel-plugin-polyfill-corejs3: ^0.8.1
babel-plugin-polyfill-regenerator: ^0.5.0
make-dir: "condition:BABEL_8_BREAKING ? : ^2.1.0"
semver: "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
peerDependencies:
Expand Down Expand Up @@ -3519,10 +3535,10 @@ __metadata:
"@babel/preset-modules": ^0.1.5
"@babel/traverse": "workspace:^"
"@babel/types": "workspace:^"
babel-plugin-polyfill-corejs2: ^0.3.3
babel-plugin-polyfill-corejs3: ^0.6.0
babel-plugin-polyfill-regenerator: ^0.4.1
core-js-compat: ^3.25.1
babel-plugin-polyfill-corejs2: ^0.4.1
babel-plugin-polyfill-corejs3: ^0.8.1
babel-plugin-polyfill-regenerator: ^0.5.0
core-js-compat: ^3.30.2
semver: "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
peerDependencies:
"@babel/core": ^7.0.0-0
Expand Down Expand Up @@ -3642,7 +3658,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@babel/runtime-corejs3@workspace:packages/babel-runtime-corejs3"
dependencies:
core-js-pure: ^3.25.1
core-js-pure: ^3.30.2
regenerator-runtime: ^0.13.11
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -6003,6 +6019,19 @@ __metadata:
languageName: node
linkType: hard

"babel-plugin-polyfill-corejs2@npm:^0.4.1":
version: 0.4.1
resolution: "babel-plugin-polyfill-corejs2@npm:0.4.1"
dependencies:
"@babel/compat-data": ^7.17.7
"@babel/helper-define-polyfill-provider": ^0.4.0
semver: ^6.1.1
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: f2b9bfec71914899b6e028441db565e1a2f2bc8208738c0fd7093e36fa6232cb803577751a745a0a30484928fcff65b3dad2c124bf9d956c3de19c26a1355a5e
languageName: node
linkType: hard

"babel-plugin-polyfill-corejs3@npm:^0.6.0":
version: 0.6.0
resolution: "babel-plugin-polyfill-corejs3@npm:0.6.0"
Expand All @@ -6015,14 +6044,26 @@ __metadata:
languageName: node
linkType: hard

"babel-plugin-polyfill-es-shims@npm:^0.7.1":
version: 0.7.1
resolution: "babel-plugin-polyfill-es-shims@npm:0.7.1"
"babel-plugin-polyfill-corejs3@npm:^0.8.1":
version: 0.8.1
resolution: "babel-plugin-polyfill-corejs3@npm:0.8.1"
dependencies:
"@babel/helper-define-polyfill-provider": ^0.3.3
"@babel/helper-define-polyfill-provider": ^0.4.0
core-js-compat: ^3.30.1
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: d7c6329d785d522fc68ee96187fc9e540445125a5a034563a3153d34810b58a7ae9a18cf3cd305085250f29ba382f9470eaec0876da73e05ae3b4c7754502bcc
checksum: c23a581973c141a4687126cf964981180ef27e3eb0b34b911161db4f5caf9ba7ff60bee0ebe46d650ba09e03a6a3ac2cd6a6ae5f4f5363a148470e5cd8447df2
languageName: node
linkType: hard

"babel-plugin-polyfill-es-shims@npm:^0.9.0":
version: 0.9.0
resolution: "babel-plugin-polyfill-es-shims@npm:0.9.0"
dependencies:
"@babel/helper-define-polyfill-provider": ^0.4.0
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: 771408849b7c969bd2aea4cf30466c5078069ed1c17e54302b4b59afd7d73178082d7b150b0dea41e2e99ae05eef1b76badd58b770735fcabcb7a187240083c3
languageName: node
linkType: hard

Expand All @@ -6037,6 +6078,17 @@ __metadata:
languageName: node
linkType: hard

"babel-plugin-polyfill-regenerator@npm:^0.5.0":
version: 0.5.0
resolution: "babel-plugin-polyfill-regenerator@npm:0.5.0"
dependencies:
"@babel/helper-define-polyfill-provider": ^0.4.0
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: ef2bcffc7c9a5e4426fc2dbf89bf3a46999a8415c21cd741c3ab3cb4b5ab804aaa3d71ef733f0eda1bcc0b91d9d80f98d33983a66dab9b8bed166ec38f8f8ad1
languageName: node
linkType: hard

"babel-plugin-transform-charcodes@npm:^0.2.0":
version: 0.2.0
resolution: "babel-plugin-transform-charcodes@npm:0.2.0"
Expand Down Expand Up @@ -6113,7 +6165,7 @@ __metadata:
c8: ^7.12.0
chalk: ^5.0.0
charcodes: ^0.2.0
core-js: ^3.26.0
core-js: ^3.30.2
eslint: ^8.22.0
eslint-formatter-codeframe: ^7.32.1
eslint-import-resolver-node: ^0.3.6
Expand Down Expand Up @@ -7207,10 +7259,10 @@ __metadata:
languageName: node
linkType: hard

"core-js-pure@npm:^3.25.1":
version: 3.25.1
resolution: "core-js-pure@npm:3.25.1"
checksum: 0123131ec7ab3a1e56f0b4df4ae659de03d9c245ce281637d4d0f18f9839d8e0cfbfa989bd577ce1b67826f889a7dcc734421f697cf1bbe59f605f29c537a678
"core-js-pure@npm:^3.30.2":
version: 3.30.2
resolution: "core-js-pure@npm:3.30.2"
checksum: e0e012fe94e38663d837410baac62efe05d0c7431e3fbaa70c65f51eb980da9c3add225eca04208d576bc0d92cefeca9a4f7671a65fd84fd7dfc92d8618dddfd
languageName: node
linkType: hard

Expand All @@ -7221,10 +7273,10 @@ __metadata:
languageName: node
linkType: hard

"core-js@npm:^3.26.0":
version: 3.26.0
resolution: "core-js@npm:3.26.0"
checksum: 0149eb9d3909fde9c17626af3a6e625c326e8598d0bb5e6c5b48a18e5fcd4eaf48d4964d873667d8148542ff590fb98eb3f93618da114ca54999d6bc0349734b
"core-js@npm:^3.30.2":
version: 3.30.2
resolution: "core-js@npm:3.30.2"
checksum: 73d47e2b9d9f502800973982d08e995bbf04832e20b04e04be31dd7607247158271315e9328788a2408190e291c7ffbefad141167b1e57dea9f983e1e723541e
languageName: node
linkType: hard

Expand Down

0 comments on commit 7f49b9f

Please sign in to comment.