babel-plugin-polyfill-corejs3 0.11.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -55,7 +55,7 @@ If you are a library author, specify a reasonably modern `core-js` version in yo
55
55
  ```json
56
56
  {
57
57
  "dependencies": {
58
- "core-js": "^3.20.0"
58
+ "core-js": "^3.43.0"
59
59
  }
60
60
  }
61
61
  ```
package/esm/index.mjs CHANGED
@@ -6,7 +6,7 @@ import defineProvider from '@babel/helper-define-polyfill-provider';
6
6
 
7
7
  // This file is automatically generated by scripts/build-corejs3-shipped-proposals.mjs
8
8
 
9
- var corejs3ShippedProposalsList = new Set(["esnext.suppressed-error.constructor", "esnext.array.from-async", "esnext.array.group", "esnext.array.group-to-map", "esnext.data-view.get-float16", "esnext.data-view.set-float16", "esnext.error.is-error", "esnext.iterator.dispose", "esnext.json.is-raw-json", "esnext.json.parse", "esnext.json.raw-json", "esnext.math.f16round", "esnext.regexp.escape", "esnext.symbol.async-dispose", "esnext.symbol.dispose", "esnext.symbol.metadata", "esnext.uint8-array.from-base64", "esnext.uint8-array.from-hex", "esnext.uint8-array.set-from-base64", "esnext.uint8-array.set-from-hex", "esnext.uint8-array.to-base64", "esnext.uint8-array.to-hex"]);
9
+ var corejs3ShippedProposalsList = new Set(["esnext.array.group", "esnext.array.group-to-map", "esnext.json.is-raw-json", "esnext.json.parse", "esnext.json.raw-json", "esnext.math.sum-precise", "esnext.symbol.metadata", "esnext.uint8-array.from-base64", "esnext.uint8-array.from-hex", "esnext.uint8-array.set-from-base64", "esnext.uint8-array.set-from-hex", "esnext.uint8-array.to-base64", "esnext.uint8-array.to-hex"]);
10
10
 
11
11
  const polyfillsOrder = {};
12
12
  Object.keys(corejs3Polyfills).forEach((name, index) => {
@@ -26,7 +26,7 @@ const CommonIterators = ["es.string.iterator", ...ArrayNatureIterators];
26
26
  const ArrayNatureIteratorsWithTag = ["es.object.to-string", ...ArrayNatureIterators];
27
27
  const CommonIteratorsWithTag = ["es.object.to-string", ...CommonIterators];
28
28
  const ErrorDependencies = ["es.error.cause", "es.error.to-string"];
29
- const SuppressedErrorDependencies = ["esnext.suppressed-error.constructor", ...ErrorDependencies];
29
+ const SuppressedErrorDependencies = ["es.suppressed-error.constructor", ...ErrorDependencies];
30
30
  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"];
31
31
  const TypedArrayDependencies = ["es.typed-array.at", "es.typed-array.copy-within", "es.typed-array.every", "es.typed-array.fill", "es.typed-array.filter", "es.typed-array.find", "es.typed-array.find-index", "es.typed-array.find-last", "es.typed-array.find-last-index", "es.typed-array.for-each", "es.typed-array.includes", "es.typed-array.index-of", "es.typed-array.iterator", "es.typed-array.join", "es.typed-array.last-index-of", "es.typed-array.map", "es.typed-array.reduce", "es.typed-array.reduce-right", "es.typed-array.reverse", "es.typed-array.set", "es.typed-array.slice", "es.typed-array.some", "es.typed-array.sort", "es.typed-array.subarray", "es.typed-array.to-locale-string", "es.typed-array.to-reversed", "es.typed-array.to-sorted", "es.typed-array.to-string", "es.typed-array.with", "es.object.to-string", "es.array.iterator", "esnext.typed-array.filter-reject", "esnext.typed-array.group-by", "esnext.typed-array.to-spliced", "esnext.typed-array.unique-by", ...ArrayBufferDependencies];
32
32
  const PromiseDependencies = ["es.promise", "es.object.to-string"];
@@ -49,14 +49,14 @@ const TypedArrayStaticMethods = base => ({
49
49
  });
50
50
  const DataViewDependencies = ["es.data-view", ...ArrayBufferDependencies];
51
51
  const BuiltIns = {
52
- AsyncDisposableStack: define("async-disposable-stack/index", ["esnext.async-disposable-stack.constructor", "es.object.to-string", "esnext.async-iterator.async-dispose", "esnext.iterator.dispose", ...PromiseDependencies, ...SuppressedErrorDependencies]),
52
+ AsyncDisposableStack: define("async-disposable-stack/index", ["es.async-disposable-stack.constructor", "es.object.to-string", "es.async-iterator.async-dispose", "es.iterator.dispose", ...PromiseDependencies, ...SuppressedErrorDependencies]),
53
53
  AsyncIterator: define("async-iterator/index", AsyncIteratorDependencies),
54
54
  AggregateError: define("aggregate-error", ["es.aggregate-error", ...ErrorDependencies, ...CommonIteratorsWithTag, "es.aggregate-error.cause"]),
55
55
  ArrayBuffer: define(null, ArrayBufferDependencies),
56
56
  DataView: define(null, DataViewDependencies),
57
57
  Date: define(null, ["es.date.to-string"]),
58
58
  DOMException: define("dom-exception/index", DOMExceptionDependencies),
59
- DisposableStack: define("disposable-stack/index", ["esnext.disposable-stack.constructor", "es.object.to-string", "esnext.iterator.dispose", ...SuppressedErrorDependencies]),
59
+ DisposableStack: define("disposable-stack/index", ["es.disposable-stack.constructor", "es.object.to-string", "es.iterator.dispose", ...SuppressedErrorDependencies]),
60
60
  Error: define(null, ErrorDependencies),
61
61
  EvalError: define(null, ErrorDependencies),
62
62
  Float32Array: typed("es.typed-array.float32-array"),
@@ -111,7 +111,7 @@ const StaticProperties = {
111
111
  },
112
112
  Array: {
113
113
  from: define("array/from", ["es.array.from", "es.string.iterator"]),
114
- fromAsync: define("array/from-async", ["esnext.array.from-async", ...PromiseDependenciesWithIterators]),
114
+ fromAsync: define("array/from-async", ["es.array.from-async", ...PromiseDependenciesWithIterators]),
115
115
  isArray: define("array/is-array", ["es.array.is-array"]),
116
116
  isTemplateObject: define("array/is-template-object", ["esnext.array.is-template-object"]),
117
117
  of: define("array/of", ["es.array.of"])
@@ -126,7 +126,7 @@ const StaticProperties = {
126
126
  now: define("date/now", ["es.date.now"])
127
127
  },
128
128
  Error: {
129
- isError: define("error/is-error", ["esnext.error.is-error", "es.object.create"])
129
+ isError: define("error/is-error", ["es.error.is-error", "es.object.create"])
130
130
  },
131
131
  Function: {
132
132
  isCallable: define("function/is-callable", ["esnext.function.is-callable"]),
@@ -135,7 +135,9 @@ const StaticProperties = {
135
135
  Iterator: {
136
136
  concat: define("iterator/concat", ["esnext.iterator.concat", ...IteratorDependencies, ...CommonIterators]),
137
137
  from: define("iterator/from", ["es.iterator.from", ...IteratorDependencies, ...CommonIterators]),
138
- range: define("iterator/range", ["esnext.iterator.range", ...IteratorDependencies, "es.object.to-string"])
138
+ range: define("iterator/range", ["esnext.iterator.range", ...IteratorDependencies]),
139
+ zip: define("iterator/zip", ["esnext.iterator.zip", ...IteratorDependencies, ...CommonIterators]),
140
+ zipKeyed: define("iterator/zip-keyed", ["esnext.iterator.zip-keyed", "es.object.create", "es.reflect.own-keys", ...IteratorDependencies, ...CommonIterators])
139
141
  },
140
142
  JSON: {
141
143
  isRawJSON: define("json/is-raw-json", ["esnext.json.is-raw-json"]),
@@ -156,7 +158,7 @@ const StaticProperties = {
156
158
  degrees: define("math/degrees", ["esnext.math.degrees"]),
157
159
  expm1: define("math/expm1", ["es.math.expm1"]),
158
160
  fround: define("math/fround", ["es.math.fround"]),
159
- f16round: define("math/f16round", ["esnext.math.f16round"]),
161
+ f16round: define("math/f16round", ["es.math.f16round"]),
160
162
  fscale: define("math/fscale", ["esnext.math.fscale"]),
161
163
  hypot: define("math/hypot", ["es.math.hypot"]),
162
164
  iaddh: define("math/iaddh", ["esnext.math.iaddh"]),
@@ -254,7 +256,7 @@ const StaticProperties = {
254
256
  setPrototypeOf: define("reflect/set-prototype-of", ["es.reflect.set-prototype-of"])
255
257
  },
256
258
  RegExp: {
257
- escape: define("regexp/escape", ["esnext.regexp.escape"])
259
+ escape: define("regexp/escape", ["es.regexp.escape"])
258
260
  },
259
261
  Set: {
260
262
  from: define("set/from", ["esnext.set.from", ...SetDependencies]),
@@ -267,10 +269,10 @@ const StaticProperties = {
267
269
  raw: define("string/raw", ["es.string.raw"])
268
270
  },
269
271
  Symbol: {
270
- asyncDispose: define("symbol/async-dispose", ["esnext.symbol.async-dispose", "esnext.async-iterator.async-dispose"]),
272
+ asyncDispose: define("symbol/async-dispose", ["es.symbol.async-dispose", "es.async-iterator.async-dispose"]),
271
273
  asyncIterator: define("symbol/async-iterator", ["es.symbol.async-iterator"]),
272
274
  customMatcher: define("symbol/custom-matcher", ["esnext.symbol.custom-matcher"]),
273
- dispose: define("symbol/dispose", ["esnext.symbol.dispose", "esnext.iterator.dispose"]),
275
+ dispose: define("symbol/dispose", ["es.symbol.dispose", "es.iterator.dispose"]),
274
276
  for: define("symbol/for", [], "es.symbol"),
275
277
  hasInstance: define("symbol/has-instance", ["es.symbol.has-instance", "es.function.has-instance"]),
276
278
  isConcatSpreadable: define("symbol/is-concat-spreadable", ["es.symbol.is-concat-spreadable", "es.array.concat"]),
@@ -344,6 +346,9 @@ const InstanceProperties = {
344
346
  bind: define("instance/bind", ["es.function.bind"]),
345
347
  blink: define(null, ["es.string.blink"]),
346
348
  bold: define(null, ["es.string.bold"]),
349
+ chunks: define(null, ["esnext.iterator.chunks", ...IteratorDependencies]),
350
+ // TODO: add /instance/ entry
351
+ clamp: define(null, ["esnext.number.clamp"]),
347
352
  codePointAt: define("instance/code-point-at", ["es.string.code-point-at"]),
348
353
  codePoints: define("instance/code-points", ["esnext.string.code-points"]),
349
354
  concat: define("instance/concat", ["es.array.concat"], undefined, ["String"]),
@@ -362,19 +367,16 @@ const InstanceProperties = {
362
367
  // "esnext.async-iterator.every",
363
368
  // ...AsyncIteratorDependencies
364
369
  ]),
365
-
366
370
  exec: define(null, ["es.regexp.exec"]),
367
371
  fill: define("instance/fill", ["es.array.fill"]),
368
372
  filter: define("instance/filter", ["es.array.filter", "es.iterator.filter", ...IteratorDependencies
369
373
  // "esnext.async-iterator.filter",
370
374
  ]),
371
-
372
375
  filterReject: define("instance/filterReject", ["esnext.array.filter-reject"]),
373
376
  finally: define(null, ["es.promise.finally", ...PromiseDependencies]),
374
377
  find: define("instance/find", ["es.array.find", "es.iterator.find", ...IteratorDependencies
375
378
  // "esnext.async-iterator.find",
376
379
  ]),
377
-
378
380
  findIndex: define("instance/find-index", ["es.array.find-index"]),
379
381
  findLast: define("instance/find-last", ["es.array.find-last"]),
380
382
  findLastIndex: define("instance/find-last-index", ["es.array.find-last-index"]),
@@ -383,9 +385,8 @@ const InstanceProperties = {
383
385
  flatMap: define("instance/flat-map", ["es.array.flat-map", "es.array.unscopables.flat-map", "es.iterator.flat-map", ...IteratorDependencies
384
386
  // "esnext.async-iterator.flat-map",
385
387
  ]),
386
-
387
388
  flat: define("instance/flat", ["es.array.flat", "es.array.unscopables.flat"]),
388
- getFloat16: define(null, ["esnext.data-view.get-float16", ...DataViewDependencies]),
389
+ getFloat16: define(null, ["es.data-view.get-float16", ...DataViewDependencies]),
389
390
  getUint8Clamped: define(null, ["esnext.data-view.get-uint8-clamped", ...DataViewDependencies]),
390
391
  getYear: define(null, ["es.date.get-year"]),
391
392
  group: define("instance/group", ["esnext.array.group"]),
@@ -411,7 +412,6 @@ const InstanceProperties = {
411
412
  map: define("instance/map", ["es.array.map", "es.iterator.map", ...IteratorDependencies
412
413
  // "esnext.async-iterator.map",
413
414
  ]),
414
-
415
415
  match: define(null, ["es.string.match", "es.regexp.exec"]),
416
416
  matchAll: define("instance/match-all", ["es.string.match-all", "es.regexp.exec"]),
417
417
  name: define(null, ["es.function.name"]),
@@ -421,14 +421,13 @@ const InstanceProperties = {
421
421
  reduce: define("instance/reduce", ["es.array.reduce", "es.iterator.reduce", ...IteratorDependencies
422
422
  // "esnext.async-iterator.reduce",
423
423
  ]),
424
-
425
424
  reduceRight: define("instance/reduce-right", ["es.array.reduce-right"]),
426
425
  repeat: define("instance/repeat", ["es.string.repeat"]),
427
426
  replace: define(null, ["es.string.replace", "es.regexp.exec"]),
428
427
  replaceAll: define("instance/replace-all", ["es.string.replace-all", "es.string.replace", "es.regexp.exec"]),
429
428
  reverse: define("instance/reverse", ["es.array.reverse"]),
430
429
  search: define(null, ["es.string.search", "es.regexp.exec"]),
431
- setFloat16: define(null, ["esnext.data-view.set-float16", ...DataViewDependencies]),
430
+ setFloat16: define(null, ["es.data-view.set-float16", ...DataViewDependencies]),
432
431
  setUint8Clamped: define(null, ["esnext.data-view.set-uint8-clamped", ...DataViewDependencies]),
433
432
  setYear: define(null, ["es.date.set-year"]),
434
433
  slice: define("instance/slice", ["es.array.slice"]),
@@ -436,7 +435,6 @@ const InstanceProperties = {
436
435
  some: define("instance/some", ["es.array.some", "es.iterator.some", ...IteratorDependencies
437
436
  // "esnext.async-iterator.some",
438
437
  ]),
439
-
440
438
  sort: define("instance/sort", ["es.array.sort"]),
441
439
  splice: define("instance/splice", ["es.array.splice"]),
442
440
  split: define(null, ["es.string.split", "es.regexp.exec"]),
@@ -470,6 +468,7 @@ const InstanceProperties = {
470
468
  unshift: define("instance/unshift", ["es.array.unshift"]),
471
469
  unThis: define("instance/un-this", ["esnext.function.un-this"]),
472
470
  values: define("instance/values", ArrayNatureIteratorsWithTag),
471
+ windows: define(null, ["esnext.iterator.windows", ...IteratorDependencies]),
473
472
  with: define("instance/with", ["es.array.with"]),
474
473
  __defineGetter__: define(null, ["es.object.define-getter"]),
475
474
  __defineSetter__: define(null, ["es.object.define-setter"]),
@@ -695,7 +694,6 @@ var index = defineProvider(function ({
695
694
  path.replaceWith(t.callExpression(utils.injectDefaultImport(coreJSPureHelper("is-iterable", useBabelRuntime, ext), "isIterable"), [path.node.right] // meta.kind === "in" narrows this
696
695
  ));
697
696
  }
698
-
699
697
  return;
700
698
  }
701
699
  if (path.parentPath.isUnaryExpression({
@@ -853,5 +851,5 @@ var index = defineProvider(function ({
853
851
  };
854
852
  });
855
853
 
856
- export default index;
854
+ export { index as default };
857
855
  //# sourceMappingURL=index.mjs.map