core-js-bundle 3.45.0 → 3.45.1

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
@@ -9,7 +9,7 @@
9
9
  **I highly recommend reading this: [So, what's next?](https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md)**
10
10
  ---
11
11
 
12
- > Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2023](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
12
+ > Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2025](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
13
13
 
14
14
  ## Raising funds
15
15
 
@@ -25,17 +25,17 @@
25
25
 
26
26
  ---
27
27
 
28
- [*Example of usage*](https://tinyurl.com/2mknex43):
28
+ [*Example of usage*](https://tinyurl.com/28zqjbun):
29
29
  ```js
30
30
  import 'core-js/actual';
31
31
 
32
- Promise.resolve(42).then(it => console.log(it)); // => 42
32
+ Promise.try(() => 42).then(it => console.log(it)); // => 42
33
33
 
34
34
  Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
35
35
 
36
36
  [1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
37
37
 
38
- (function * (i) { while (true) yield i++; })(1)
38
+ Iterator.concat([1, 2], function * (i) { while (true) yield i++; }(3))
39
39
  .drop(1).take(5)
40
40
  .filter(it => it % 2)
41
41
  .map(it => it ** 2)
@@ -53,13 +53,13 @@ import 'core-js/actual/array/from';
53
53
  import 'core-js/actual/array/flat-map';
54
54
  import 'core-js/actual/structured-clone';
55
55
 
56
- Promise.resolve(42).then(it => console.log(it)); // => 42
56
+ Promise.try(() => 42).then(it => console.log(it)); // => 42
57
57
 
58
58
  Array.from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
59
59
 
60
60
  [1, 2].flatMap(it => [it, it]); // => [1, 1, 2, 2]
61
61
 
62
- (function * (i) { while (true) yield i++; })(1)
62
+ Iterator.concat([1, 2], function * (i) { while (true) yield i++; }(3))
63
63
  .drop(1).take(5)
64
64
  .filter(it => it % 2)
65
65
  .map(it => it ** 2)
@@ -77,13 +77,13 @@ import from from 'core-js-pure/actual/array/from';
77
77
  import flatMap from 'core-js-pure/actual/array/flat-map';
78
78
  import structuredClone from 'core-js-pure/actual/structured-clone';
79
79
 
80
- Promise.resolve(42).then(it => console.log(it)); // => 42
80
+ Promise.try(() => 42).then(it => console.log(it)); // => 42
81
81
 
82
82
  from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5]
83
83
 
84
84
  flatMap([1, 2], it => [it, it]); // => [1, 1, 2, 2]
85
85
 
86
- Iterator.from(function * (i) { while (true) yield i++; }(1))
86
+ Iterator.concat([1, 2], function * (i) { while (true) yield i++; }(3))
87
87
  .drop(1).take(5)
88
88
  .filter(it => it % 2)
89
89
  .map(it => it ** 2)
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * core-js 3.45.0
2
+ * core-js 3.45.1
3
3
  * © 2014-2025 Denis Pushkarev (zloirock.ru)
4
- * license: https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE
4
+ * license: https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE
5
5
  * source: https://github.com/zloirock/core-js
6
6
  */
7
7
  !function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
@@ -1504,10 +1504,10 @@ var SHARED = '__core-js_shared__';
1504
1504
  var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
1505
1505
 
1506
1506
  (store.versions || (store.versions = [])).push({
1507
- version: '3.45.0',
1507
+ version: '3.45.1',
1508
1508
  mode: IS_PURE ? 'pure' : 'global',
1509
1509
  copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
1510
- license: 'https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE',
1510
+ license: 'https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE',
1511
1511
  source: 'https://github.com/zloirock/core-js'
1512
1512
  });
1513
1513
 
@@ -22529,6 +22529,7 @@ module.exports = function (C, adder, ENTRY) {
22529
22529
  var $ = __webpack_require__(3);
22530
22530
  var aMap = __webpack_require__(653);
22531
22531
  var MapHelpers = __webpack_require__(293);
22532
+ var IS_PURE = __webpack_require__(36);
22532
22533
 
22533
22534
  var get = MapHelpers.get;
22534
22535
  var has = MapHelpers.has;
@@ -22536,7 +22537,7 @@ var set = MapHelpers.set;
22536
22537
 
22537
22538
  // `Map.prototype.getOrInsert` method
22538
22539
  // https://github.com/tc39/proposal-upsert
22539
- $({ target: 'Map', proto: true, real: true }, {
22540
+ $({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
22540
22541
  getOrInsert: function getOrInsert(key, value) {
22541
22542
  if (has(aMap(this), key)) return get(this, key);
22542
22543
  set(this, key, value);
@@ -22555,6 +22556,7 @@ var $ = __webpack_require__(3);
22555
22556
  var aCallable = __webpack_require__(30);
22556
22557
  var aMap = __webpack_require__(653);
22557
22558
  var MapHelpers = __webpack_require__(293);
22559
+ var IS_PURE = __webpack_require__(36);
22558
22560
 
22559
22561
  var get = MapHelpers.get;
22560
22562
  var has = MapHelpers.has;
@@ -22562,7 +22564,7 @@ var set = MapHelpers.set;
22562
22564
 
22563
22565
  // `Map.prototype.getOrInsertComputed` method
22564
22566
  // https://github.com/tc39/proposal-upsert
22565
- $({ target: 'Map', proto: true, real: true }, {
22567
+ $({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
22566
22568
  getOrInsertComputed: function getOrInsertComputed(key, callbackfn) {
22567
22569
  aMap(this);
22568
22570
  aCallable(callbackfn);
@@ -25499,6 +25501,7 @@ $({ target: 'WeakMap', proto: true, real: true, forced: true }, {
25499
25501
  var $ = __webpack_require__(3);
25500
25502
  var aWeakMap = __webpack_require__(762);
25501
25503
  var WeakMapHelpers = __webpack_require__(740);
25504
+ var IS_PURE = __webpack_require__(36);
25502
25505
 
25503
25506
  var get = WeakMapHelpers.get;
25504
25507
  var has = WeakMapHelpers.has;
@@ -25506,7 +25509,7 @@ var set = WeakMapHelpers.set;
25506
25509
 
25507
25510
  // `WeakMap.prototype.getOrInsert` method
25508
25511
  // https://github.com/tc39/proposal-upsert
25509
- $({ target: 'WeakMap', proto: true, real: true }, {
25512
+ $({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, {
25510
25513
  getOrInsert: function getOrInsert(key, value) {
25511
25514
  if (has(aWeakMap(this), key)) return get(this, key);
25512
25515
  set(this, key, value);
@@ -25526,6 +25529,7 @@ var aCallable = __webpack_require__(30);
25526
25529
  var aWeakMap = __webpack_require__(762);
25527
25530
  var aWeakKey = __webpack_require__(768);
25528
25531
  var WeakMapHelpers = __webpack_require__(740);
25532
+ var IS_PURE = __webpack_require__(36);
25529
25533
 
25530
25534
  var get = WeakMapHelpers.get;
25531
25535
  var has = WeakMapHelpers.has;
@@ -25533,7 +25537,7 @@ var set = WeakMapHelpers.set;
25533
25537
 
25534
25538
  // `WeakMap.prototype.getOrInsertComputed` method
25535
25539
  // https://github.com/tc39/proposal-upsert
25536
- $({ target: 'WeakMap', proto: true, real: true }, {
25540
+ $({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, {
25537
25541
  getOrInsertComputed: function getOrInsertComputed(key, callbackfn) {
25538
25542
  aWeakMap(this);
25539
25543
  aWeakKey(key);