Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update core-js #214

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@lerna/package": "patch:@lerna/package@npm:3.16.0#.yarn-patches/@lerna/package.patch",
"@lerna/package-graph": "patch:@lerna/package-graph@npm:3.18.5#.yarn-patches/@lerna/package-graph.patch",
"@lerna/pack-directory": "patch:@lerna/pack-directory@npm:3.16.4#.yarn-patches/@lerna/pack-directory.patch",
"@babel/preset-env/core-js-compat": "^3.37.0"
"@babel/preset-env/core-js-compat": "^3.37.1"
},
"engines": {
"node": ">= 6.9.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-plugin-polyfill-corejs3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"dependencies": {
"@babel/helper-define-polyfill-provider": "workspace:^0.6.2",
"core-js-compat": "^3.37.0"
"core-js-compat": "^3.37.1"
},
"devDependencies": {
"@babel/core": "^7.22.6",
Expand All @@ -39,8 +39,8 @@
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/plugin-transform-spread": "^7.22.5",
"core-js": "^3.37.0",
"core-js-pure": "^3.37.0"
"core-js": "^3.37.1",
"core-js-pure": "^3.37.1"
},
"peerDependencies": {
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
Expand Down
36 changes: 13 additions & 23 deletions packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ const SuppressedErrorDependencies = [
...ErrorDependencies,
];

const ArrayBufferDependencies = [
"es.array-buffer.constructor",
"es.array-buffer.slice",
"es.data-view",
"es.array-buffer.detached",
"es.array-buffer.transfer",
"es.array-buffer.transfer-to-fixed-length",
"es.object.to-string",
];

const TypedArrayDependencies = [
"es.typed-array.at",
"es.typed-array.copy-within",
Expand Down Expand Up @@ -85,15 +95,11 @@ const TypedArrayDependencies = [
"es.typed-array.with",
"es.object.to-string",
"es.array.iterator",
"es.array-buffer.slice",
"es.data-view",
"es.array-buffer.detached",
"es.array-buffer.transfer",
"es.array-buffer.transfer-to-fixed-length",
"esnext.typed-array.filter-reject",
"esnext.typed-array.group-by",
"esnext.typed-array.to-spliced",
"esnext.typed-array.unique-by",
...ArrayBufferDependencies,
];

export const PromiseDependencies = ["es.promise", "es.object.to-string"];
Expand Down Expand Up @@ -222,15 +228,7 @@ const TypedArrayStaticMethods = (base: string) => ({
of: define(null, ["es.typed-array.of", base, ...TypedArrayDependencies]),
});

const DataViewDependencies = [
"es.data-view",
"es.array-buffer.constructor",
"es.array-buffer.slice",
"es.array-buffer.detached",
"es.array-buffer.transfer",
"es.array-buffer.transfer-to-fixed-length",
"es.object.to-string",
];
const DataViewDependencies = ["es.data-view", ...ArrayBufferDependencies];

export const BuiltIns: ObjectMap<CoreJSPolyfillDescriptor> = {
AsyncDisposableStack: define("async-disposable-stack/index", [
Expand All @@ -248,15 +246,7 @@ export const BuiltIns: ObjectMap<CoreJSPolyfillDescriptor> = {
...CommonIteratorsWithTag,
"es.aggregate-error.cause",
]),
ArrayBuffer: define(null, [
"es.array-buffer.constructor",
"es.array-buffer.slice",
"es.data-view",
"es.array-buffer.detached",
"es.array-buffer.transfer",
"es.array-buffer.transfer-to-fixed-length",
"es.object.to-string",
]),
ArrayBuffer: define(null, ArrayBufferDependencies),
DataView: define(null, DataViewDependencies),
Date: define(null, ["es.date.to-string"]),
DOMException: define("dom-exception/index", DOMExceptionDependencies),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export default new Set<string>([
"esnext.array.from-async",
"esnext.array.group",
"esnext.array.group-to-map",
"esnext.data-view.get-float16",
"esnext.data-view.set-float16",
"esnext.iterator.constructor",
"esnext.iterator.drop",
"esnext.iterator.every",
Expand All @@ -21,6 +23,7 @@ export default new Set<string>([
"esnext.json.is-raw-json",
"esnext.json.parse",
"esnext.json.raw-json",
"esnext.math.f16round",
"esnext.symbol.async-dispose",
"esnext.symbol.dispose",
"esnext.symbol.metadata",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.array-buffer.constructor.js";
import "core-js/modules/es.array-buffer.slice.js";
import "core-js/modules/es.data-view.js";
import "core-js/modules/es.object.to-string.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.array-buffer.constructor.js";
import "core-js/modules/es.array-buffer.slice.js";
import "core-js/modules/es.data-view.js";
import "core-js/modules/es.object.to-string.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.array-buffer.constructor.js";
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/es.typed-array.int8-array.js";
import "core-js/modules/es.typed-array.fill.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.array-buffer.constructor.js";
import "core-js/modules/es.array-buffer.slice.js";
import "core-js/modules/es.data-view.js";
import "core-js/modules/es.object.to-string.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.array-buffer.constructor.js";
import "core-js/modules/es.array-buffer.slice.js";
import "core-js/modules/es.data-view.js";
import "core-js/modules/es.object.to-string.js";
Expand Down
40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-define-polyfill-provider@workspace:^0.6.1, @babel/helper-define-polyfill-provider@workspace:packages/babel-helper-define-polyfill-provider":
"@babel/helper-define-polyfill-provider@workspace:^0.6.2, @babel/helper-define-polyfill-provider@workspace:packages/babel-helper-define-polyfill-provider":
version: 0.0.0-use.local
resolution: "@babel/helper-define-polyfill-provider@workspace:packages/babel-helper-define-polyfill-provider"
dependencies:
Expand Down Expand Up @@ -4482,7 +4482,7 @@ __metadata:
dependencies:
"@babel/compat-data": ^7.22.6
"@babel/core": ^7.22.6
"@babel/helper-define-polyfill-provider": "workspace:^0.6.1"
"@babel/helper-define-polyfill-provider": "workspace:^0.6.2"
"@babel/helper-plugin-test-runner": ^7.22.5
"@babel/plugin-transform-for-of": ^7.22.5
"@babel/plugin-transform-modules-commonjs": ^7.22.5
Expand All @@ -4509,7 +4509,7 @@ __metadata:
resolution: "babel-plugin-polyfill-corejs3@workspace:packages/babel-plugin-polyfill-corejs3"
dependencies:
"@babel/core": ^7.22.6
"@babel/helper-define-polyfill-provider": "workspace:^0.6.1"
"@babel/helper-define-polyfill-provider": "workspace:^0.6.2"
"@babel/helper-plugin-test-runner": ^7.22.5
"@babel/plugin-proposal-decorators": ^7.22.15
"@babel/plugin-transform-class-properties": ^7.22.5
Expand All @@ -4518,9 +4518,9 @@ __metadata:
"@babel/plugin-transform-modules-commonjs": ^7.22.5
"@babel/plugin-transform-runtime": ^7.22.15
"@babel/plugin-transform-spread": ^7.22.5
core-js: ^3.37.0
core-js-compat: ^3.37.0
core-js-pure: ^3.37.0
core-js: ^3.37.1
core-js-compat: ^3.37.1
core-js-pure: ^3.37.1
peerDependencies:
"@babel/core": ^7.4.0 || ^8.0.0-0 <8.0.0
languageName: unknown
Expand All @@ -4531,7 +4531,7 @@ __metadata:
resolution: "babel-plugin-polyfill-es-shims@workspace:packages/babel-plugin-polyfill-es-shims"
dependencies:
"@babel/core": ^7.22.6
"@babel/helper-define-polyfill-provider": "workspace:^0.6.1"
"@babel/helper-define-polyfill-provider": "workspace:^0.6.2"
"@babel/helper-plugin-test-runner": ^7.22.5
array.from: ^1.1.0
math.clz32: ^1.0.0
Expand All @@ -4556,7 +4556,7 @@ __metadata:
resolution: "babel-plugin-polyfill-regenerator@workspace:packages/babel-plugin-polyfill-regenerator"
dependencies:
"@babel/core": ^7.17.8
"@babel/helper-define-polyfill-provider": "workspace:^0.6.1"
"@babel/helper-define-polyfill-provider": "workspace:^0.6.2"
"@babel/helper-plugin-test-runner": ^7.16.7
"@babel/plugin-transform-regenerator": ~7.14.0
peerDependencies:
Expand Down Expand Up @@ -5777,26 +5777,26 @@ __metadata:
languageName: node
linkType: hard

"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.37.0":
version: 3.37.0
resolution: "core-js-compat@npm:3.37.0"
"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.37.1":
version: 3.37.1
resolution: "core-js-compat@npm:3.37.1"
dependencies:
browserslist: ^4.23.0
checksum: cab5078e98625f889fd9bbbb19e84cb408f31c87e68302d380db0d26ae8e35c1b38cde084358ff345d4aa461af5f3c60d8a913a5b30bff3a83b4b7859374db36
checksum: 5e7430329358bced08c30950512d2081aea0a5652b4c5892cbb3c4a6db05b0d3893a191a955162a07fdb5f4fe74e61b6429fdb503f54e062336d76e43c9555d9
languageName: node
linkType: hard

"core-js-pure@npm:^3.37.0":
version: 3.37.0
resolution: "core-js-pure@npm:3.37.0"
checksum: 206797d88046f4f5a62ecb9a7158bc6ba38127db2239bcbd1e85b2c8cf3cfb9bb3bbc6a312ecf0f87702f87659959d10625aeac74de6336a9303866f7010d364
"core-js-pure@npm:^3.37.1":
version: 3.37.1
resolution: "core-js-pure@npm:3.37.1"
checksum: a13a40e3951975cffef12a0933d3dbf1ecedbf9821e1ec8024884b587744951ad30e3762a86bcb8e2a18fdd4b8d7c8971b2391605329799fc04e1fc1e1397dc1
languageName: node
linkType: hard

"core-js@npm:^3.37.0":
version: 3.37.0
resolution: "core-js@npm:3.37.0"
checksum: 212c3e9b3fc277dbb63739ef58a61c5709ccd0b36f09c3ce6946aa91fa180c60f57f976d4a5fdb9cda0c6cb55417379ba5a008fc3a1384ec94ec8ec61826469d
"core-js@npm:^3.37.1":
version: 3.37.1
resolution: "core-js@npm:3.37.1"
checksum: 2d58a5c599f05c3e04abc8bc5e64b88eb17d914c0f552f670fb800afa74ec54b4fcc7f231ad6bd45badaf62c0fb0ce30e6fe89cedb6bb6d54e6f19115c3c17ff
languageName: node
linkType: hard

Expand Down
Loading