core-js-compat 3.4.4 → 3.4.5
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 +37 -22
- package/data.json +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,34 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
```js
|
|
4
4
|
const {
|
|
5
|
-
list,
|
|
6
|
-
targets,
|
|
5
|
+
list, // array of required modules
|
|
6
|
+
targets, // object with targets for each module
|
|
7
7
|
} = require('core-js-compat')({
|
|
8
|
-
targets: '> 2.5%',
|
|
9
|
-
filter:
|
|
8
|
+
targets: '> 2.5%', // browserslist query
|
|
9
|
+
filter: /^(es|web)\./, // optional filter - string-prefix, regexp or list of modules
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
console.log(targets);
|
|
13
13
|
/* =>
|
|
14
14
|
{
|
|
15
|
-
'es.symbol.description': { ios: '12.
|
|
16
|
-
'es.
|
|
17
|
-
'es.
|
|
18
|
-
'es.
|
|
19
|
-
'es.
|
|
20
|
-
'es.
|
|
21
|
-
'es.
|
|
22
|
-
'es.
|
|
23
|
-
'es.
|
|
24
|
-
'es.
|
|
25
|
-
'es.
|
|
26
|
-
'es.
|
|
27
|
-
'es.
|
|
28
|
-
'es.
|
|
29
|
-
'es.
|
|
30
|
-
'es.
|
|
31
|
-
'es.typed-array.
|
|
32
|
-
'es.typed-array.
|
|
15
|
+
'es.symbol.description': { ios: '12.2-12.4' },
|
|
16
|
+
'es.symbol.match-all': { ios: '12.2-12.4' },
|
|
17
|
+
'es.array.reverse': { ios: '12.2-12.4' },
|
|
18
|
+
'es.array.unscopables.flat': { ios: '12.2-12.4' },
|
|
19
|
+
'es.array.unscopables.flat-map': { ios: '12.2-12.4' },
|
|
20
|
+
'es.array-buffer.slice': { ios: '12.2-12.4' },
|
|
21
|
+
'es.global-this': { ios: '12.2-12.4' },
|
|
22
|
+
'es.json.stringify': { ios: '12.2-12.4' },
|
|
23
|
+
'es.math.hypot': { chrome: '77' },
|
|
24
|
+
'es.object.from-entries': { ios: '12.2-12.4' },
|
|
25
|
+
'es.promise.all-settled': { firefox: '69', ios: '12.2-12.4' },
|
|
26
|
+
'es.promise.finally': { ios: '12.2-12.4' },
|
|
27
|
+
'es.string.match-all': { chrome: '77', firefox: '69', ios: '12.2-12.4' },
|
|
28
|
+
'es.string.replace': { firefox: '69', ios: '12.2-12.4' },
|
|
29
|
+
'es.string.trim': { ios: '12.2-12.4' },
|
|
30
|
+
'es.string.trim-end': { ios: '12.2-12.4' },
|
|
31
|
+
'es.typed-array.float32-array': { ios: '12.2-12.4' },
|
|
32
|
+
'es.typed-array.float64-array': { ios: '12.2-12.4' },
|
|
33
|
+
'es.typed-array.int8-array': { ios: '12.2-12.4' },
|
|
34
|
+
'es.typed-array.int16-array': { ios: '12.2-12.4' },
|
|
35
|
+
'es.typed-array.int32-array': { ios: '12.2-12.4' },
|
|
36
|
+
'es.typed-array.uint8-array': { ios: '12.2-12.4' },
|
|
37
|
+
'es.typed-array.uint8-clamped-array': { ios: '12.2-12.4' },
|
|
38
|
+
'es.typed-array.uint16-array': { ios: '12.2-12.4' },
|
|
39
|
+
'es.typed-array.uint32-array': { ios: '12.2-12.4' },
|
|
40
|
+
'es.typed-array.from': { ios: '12.2-12.4' },
|
|
41
|
+
'es.typed-array.of': { ios: '12.2-12.4' },
|
|
42
|
+
'web.dom-collections.iterator': { ios: '12.2-12.4' },
|
|
43
|
+
'web.immediate': { chrome: '77', firefox: '69', ios: '12.2-12.4' },
|
|
44
|
+
'web.queue-microtask': { ios: '12.2-12.4' },
|
|
45
|
+
'web.url': { ios: '12.2-12.4' },
|
|
46
|
+
'web.url.to-json': { ios: '12.2-12.4' },
|
|
47
|
+
'web.url-search-params': { ios: '12.2-12.4' }
|
|
33
48
|
}
|
|
34
49
|
*/
|
|
35
50
|
```
|
package/data.json
CHANGED
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"ios": "9.0"
|
|
211
211
|
},
|
|
212
212
|
"es.array.filter": {
|
|
213
|
-
"edge": "
|
|
213
|
+
"edge": "15",
|
|
214
214
|
"chrome": "51",
|
|
215
215
|
"firefox": "48",
|
|
216
216
|
"safari": "10.0",
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
"es.array.map": {
|
|
364
364
|
"edge": "13",
|
|
365
365
|
"chrome": "51",
|
|
366
|
-
"firefox": "
|
|
366
|
+
"firefox": "50",
|
|
367
367
|
"safari": "10.0",
|
|
368
368
|
"opera": "38",
|
|
369
369
|
"node": "6.5",
|
|
@@ -1030,10 +1030,10 @@
|
|
|
1030
1030
|
"ios": "9.0"
|
|
1031
1031
|
},
|
|
1032
1032
|
"es.object.assign": {
|
|
1033
|
-
"edge": "13",
|
|
1034
1033
|
"chrome": "49",
|
|
1035
1034
|
"firefox": "36",
|
|
1036
1035
|
"safari": "9.0",
|
|
1036
|
+
"edge": "74",
|
|
1037
1037
|
"opera": "36",
|
|
1038
1038
|
"node": "6.0",
|
|
1039
1039
|
"samsung": "5.0",
|
|
@@ -1489,10 +1489,10 @@
|
|
|
1489
1489
|
"ios": "10.0"
|
|
1490
1490
|
},
|
|
1491
1491
|
"es.reflect.set": {
|
|
1492
|
-
"edge": "12",
|
|
1493
1492
|
"chrome": "49",
|
|
1494
1493
|
"firefox": "42",
|
|
1495
1494
|
"safari": "10.0",
|
|
1495
|
+
"edge": "74",
|
|
1496
1496
|
"opera": "36",
|
|
1497
1497
|
"node": "6.0",
|
|
1498
1498
|
"samsung": "5.0",
|