core-js-bundle 3.44.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 +8 -8
- package/index.js +1981 -1966
- package/minified.js +10 -10
- package/minified.js.map +1 -1
- package/package.json +4 -1
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
|
|
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/
|
|
28
|
+
[*Example of usage*](https://tinyurl.com/28zqjbun):
|
|
29
29
|
```js
|
|
30
30
|
import 'core-js/actual';
|
|
31
31
|
|
|
32
|
-
Promise.
|
|
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++; }
|
|
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.
|
|
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++; }
|
|
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.
|
|
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.
|
|
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)
|