core-js-compat 3.18.0 → 3.19.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 +3 -3
- package/data.json +27 -14
- package/entries.json +20 -0
- package/package.json +3 -3
- package/targets-parser.js +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ const {
|
|
|
7
7
|
} = require('core-js-compat')({
|
|
8
8
|
targets: '> 2.5%', // browserslist query or object of minimum environment versions to support
|
|
9
9
|
filter: /^(es|web)\./, // optional filter - string-prefix, regexp or list of modules
|
|
10
|
-
version: '3.
|
|
10
|
+
version: '3.19', // used `core-js` version, by default - the latest
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
console.log(targets);
|
|
@@ -92,9 +92,9 @@ require('core-js-compat/modules'); // => Array<ModuleName>
|
|
|
92
92
|
require('core-js-compat').modules; // => Array<ModuleName>
|
|
93
93
|
|
|
94
94
|
// the subset of modules which available in the passed `core-js` version:
|
|
95
|
-
require('core-js-compat/get-modules-list-for-target-version')('3.
|
|
95
|
+
require('core-js-compat/get-modules-list-for-target-version')('3.19'); // => Array<ModuleName>
|
|
96
96
|
// or
|
|
97
|
-
require('core-js-compat').getModulesListForTargetVersion('3.
|
|
97
|
+
require('core-js-compat').getModulesListForTargetVersion('3.19'); // => Array<ModuleName>
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
If you want to add new / update data about modules required for target engines, [follow this instruction](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#updating-core-js-compat-data).
|
package/data.json
CHANGED
|
@@ -243,6 +243,8 @@
|
|
|
243
243
|
"firefox": "90",
|
|
244
244
|
"node": "16.6",
|
|
245
245
|
"opera": "78",
|
|
246
|
+
"opera_mobile": "65",
|
|
247
|
+
"safari": "15.1",
|
|
246
248
|
"samsung": "16.0"
|
|
247
249
|
},
|
|
248
250
|
"es.array.concat": {
|
|
@@ -1637,7 +1639,8 @@
|
|
|
1637
1639
|
"electron": "14.0",
|
|
1638
1640
|
"firefox": "92",
|
|
1639
1641
|
"node": "16.9",
|
|
1640
|
-
"opera": "79"
|
|
1642
|
+
"opera": "79",
|
|
1643
|
+
"safari": "15.1"
|
|
1641
1644
|
},
|
|
1642
1645
|
"es.object.is": {
|
|
1643
1646
|
"android": "4.1",
|
|
@@ -2224,6 +2227,8 @@
|
|
|
2224
2227
|
"firefox": "90",
|
|
2225
2228
|
"node": "16.6",
|
|
2226
2229
|
"opera": "78",
|
|
2230
|
+
"opera_mobile": "65",
|
|
2231
|
+
"safari": "15.1",
|
|
2227
2232
|
"samsung": "16.0"
|
|
2228
2233
|
},
|
|
2229
2234
|
"es.string.code-point-at": {
|
|
@@ -2463,7 +2468,7 @@
|
|
|
2463
2468
|
"edge": "12",
|
|
2464
2469
|
"electron": "0.20",
|
|
2465
2470
|
"firefox": "1",
|
|
2466
|
-
"ie": "
|
|
2471
|
+
"ie": "9",
|
|
2467
2472
|
"ios": "1.0",
|
|
2468
2473
|
"node": "0.0.3",
|
|
2469
2474
|
"opera": "4",
|
|
@@ -2855,6 +2860,8 @@
|
|
|
2855
2860
|
"firefox": "90",
|
|
2856
2861
|
"node": "16.6",
|
|
2857
2862
|
"opera": "78",
|
|
2863
|
+
"opera_mobile": "65",
|
|
2864
|
+
"safari": "15.1",
|
|
2858
2865
|
"samsung": "16.0"
|
|
2859
2866
|
},
|
|
2860
2867
|
"es.typed-array.copy-within": {
|
|
@@ -3278,12 +3285,18 @@
|
|
|
3278
3285
|
"firefox": "90",
|
|
3279
3286
|
"node": "16.6",
|
|
3280
3287
|
"opera": "78",
|
|
3288
|
+
"opera_mobile": "65",
|
|
3289
|
+
"safari": "15.1",
|
|
3281
3290
|
"samsung": "16.0"
|
|
3282
3291
|
},
|
|
3283
3292
|
"esnext.array.filter-out": {},
|
|
3284
3293
|
"esnext.array.filter-reject": {},
|
|
3285
|
-
"esnext.array.find-last": {
|
|
3286
|
-
|
|
3294
|
+
"esnext.array.find-last": {
|
|
3295
|
+
"safari": "15.1"
|
|
3296
|
+
},
|
|
3297
|
+
"esnext.array.find-last-index": {
|
|
3298
|
+
"safari": "15.1"
|
|
3299
|
+
},
|
|
3287
3300
|
"esnext.array.group-by": {},
|
|
3288
3301
|
"esnext.array.is-template-object": {},
|
|
3289
3302
|
"esnext.array.last-index": {},
|
|
@@ -3377,7 +3390,8 @@
|
|
|
3377
3390
|
"electron": "14.0",
|
|
3378
3391
|
"firefox": "92",
|
|
3379
3392
|
"node": "16.9",
|
|
3380
|
-
"opera": "79"
|
|
3393
|
+
"opera": "79",
|
|
3394
|
+
"safari": "15.1"
|
|
3381
3395
|
},
|
|
3382
3396
|
"esnext.object.iterate-entries": {},
|
|
3383
3397
|
"esnext.object.iterate-keys": {},
|
|
@@ -3486,12 +3500,18 @@
|
|
|
3486
3500
|
"firefox": "90",
|
|
3487
3501
|
"node": "16.6",
|
|
3488
3502
|
"opera": "78",
|
|
3503
|
+
"opera_mobile": "65",
|
|
3504
|
+
"safari": "15.1",
|
|
3489
3505
|
"samsung": "16.0"
|
|
3490
3506
|
},
|
|
3491
3507
|
"esnext.typed-array.filter-out": {},
|
|
3492
3508
|
"esnext.typed-array.filter-reject": {},
|
|
3493
|
-
"esnext.typed-array.find-last": {
|
|
3494
|
-
|
|
3509
|
+
"esnext.typed-array.find-last": {
|
|
3510
|
+
"safari": "15.1"
|
|
3511
|
+
},
|
|
3512
|
+
"esnext.typed-array.find-last-index": {
|
|
3513
|
+
"safari": "15.1"
|
|
3514
|
+
},
|
|
3495
3515
|
"esnext.typed-array.group-by": {},
|
|
3496
3516
|
"esnext.typed-array.unique-by": {},
|
|
3497
3517
|
"esnext.weak-map.delete-all": {},
|
|
@@ -3508,7 +3528,6 @@
|
|
|
3508
3528
|
"chrome": "58",
|
|
3509
3529
|
"deno": "1.0",
|
|
3510
3530
|
"edge": "16",
|
|
3511
|
-
"electron": "1.7",
|
|
3512
3531
|
"firefox": "50",
|
|
3513
3532
|
"ios": "10.0",
|
|
3514
3533
|
"node": "0.0.1",
|
|
@@ -3523,7 +3542,6 @@
|
|
|
3523
3542
|
"chrome": "66",
|
|
3524
3543
|
"deno": "1.0",
|
|
3525
3544
|
"edge": "74",
|
|
3526
|
-
"electron": "3.0",
|
|
3527
3545
|
"firefox": "60",
|
|
3528
3546
|
"ios": "13.4",
|
|
3529
3547
|
"node": "0.0.1",
|
|
@@ -3542,7 +3560,6 @@
|
|
|
3542
3560
|
"chrome": "71",
|
|
3543
3561
|
"deno": "1.0",
|
|
3544
3562
|
"edge": "74",
|
|
3545
|
-
"electron": "5.0",
|
|
3546
3563
|
"firefox": "69",
|
|
3547
3564
|
"ios": "12.2",
|
|
3548
3565
|
"node": "12.0",
|
|
@@ -3556,7 +3573,6 @@
|
|
|
3556
3573
|
"chrome": "1",
|
|
3557
3574
|
"deno": "1.0",
|
|
3558
3575
|
"edge": "12",
|
|
3559
|
-
"electron": "0.20",
|
|
3560
3576
|
"firefox": "1",
|
|
3561
3577
|
"ie": "10",
|
|
3562
3578
|
"ios": "1.0",
|
|
@@ -3573,7 +3589,6 @@
|
|
|
3573
3589
|
"chrome": "67",
|
|
3574
3590
|
"deno": "1.0",
|
|
3575
3591
|
"edge": "74",
|
|
3576
|
-
"electron": "4.0",
|
|
3577
3592
|
"firefox": "57",
|
|
3578
3593
|
"ios": "14.0",
|
|
3579
3594
|
"node": "10.0",
|
|
@@ -3587,7 +3602,6 @@
|
|
|
3587
3602
|
"chrome": "71",
|
|
3588
3603
|
"deno": "1.0",
|
|
3589
3604
|
"edge": "74",
|
|
3590
|
-
"electron": "5.0",
|
|
3591
3605
|
"firefox": "57",
|
|
3592
3606
|
"ios": "14.0",
|
|
3593
3607
|
"node": "10.0",
|
|
@@ -3601,7 +3615,6 @@
|
|
|
3601
3615
|
"chrome": "67",
|
|
3602
3616
|
"deno": "1.0",
|
|
3603
3617
|
"edge": "74",
|
|
3604
|
-
"electron": "4.0",
|
|
3605
3618
|
"firefox": "57",
|
|
3606
3619
|
"ios": "14.0",
|
|
3607
3620
|
"node": "10.0",
|
package/entries.json
CHANGED
|
@@ -4822,6 +4822,7 @@
|
|
|
4822
4822
|
"core-js/features/typed-array/float32-array": [
|
|
4823
4823
|
"es.map",
|
|
4824
4824
|
"es.object.to-string",
|
|
4825
|
+
"es.promise",
|
|
4825
4826
|
"es.string.iterator",
|
|
4826
4827
|
"es.typed-array.float32-array",
|
|
4827
4828
|
"es.typed-array.at",
|
|
@@ -4850,6 +4851,7 @@
|
|
|
4850
4851
|
"es.typed-array.subarray",
|
|
4851
4852
|
"es.typed-array.to-locale-string",
|
|
4852
4853
|
"es.typed-array.to-string",
|
|
4854
|
+
"esnext.typed-array.from-async",
|
|
4853
4855
|
"esnext.typed-array.at",
|
|
4854
4856
|
"esnext.typed-array.filter-out",
|
|
4855
4857
|
"esnext.typed-array.filter-reject",
|
|
@@ -4861,6 +4863,7 @@
|
|
|
4861
4863
|
"core-js/features/typed-array/float64-array": [
|
|
4862
4864
|
"es.map",
|
|
4863
4865
|
"es.object.to-string",
|
|
4866
|
+
"es.promise",
|
|
4864
4867
|
"es.string.iterator",
|
|
4865
4868
|
"es.typed-array.float64-array",
|
|
4866
4869
|
"es.typed-array.at",
|
|
@@ -4889,6 +4892,7 @@
|
|
|
4889
4892
|
"es.typed-array.subarray",
|
|
4890
4893
|
"es.typed-array.to-locale-string",
|
|
4891
4894
|
"es.typed-array.to-string",
|
|
4895
|
+
"esnext.typed-array.from-async",
|
|
4892
4896
|
"esnext.typed-array.at",
|
|
4893
4897
|
"esnext.typed-array.filter-out",
|
|
4894
4898
|
"esnext.typed-array.filter-reject",
|
|
@@ -4918,6 +4922,7 @@
|
|
|
4918
4922
|
"core-js/features/typed-array/int16-array": [
|
|
4919
4923
|
"es.map",
|
|
4920
4924
|
"es.object.to-string",
|
|
4925
|
+
"es.promise",
|
|
4921
4926
|
"es.string.iterator",
|
|
4922
4927
|
"es.typed-array.int16-array",
|
|
4923
4928
|
"es.typed-array.at",
|
|
@@ -4946,6 +4951,7 @@
|
|
|
4946
4951
|
"es.typed-array.subarray",
|
|
4947
4952
|
"es.typed-array.to-locale-string",
|
|
4948
4953
|
"es.typed-array.to-string",
|
|
4954
|
+
"esnext.typed-array.from-async",
|
|
4949
4955
|
"esnext.typed-array.at",
|
|
4950
4956
|
"esnext.typed-array.filter-out",
|
|
4951
4957
|
"esnext.typed-array.filter-reject",
|
|
@@ -4957,6 +4963,7 @@
|
|
|
4957
4963
|
"core-js/features/typed-array/int32-array": [
|
|
4958
4964
|
"es.map",
|
|
4959
4965
|
"es.object.to-string",
|
|
4966
|
+
"es.promise",
|
|
4960
4967
|
"es.string.iterator",
|
|
4961
4968
|
"es.typed-array.int32-array",
|
|
4962
4969
|
"es.typed-array.at",
|
|
@@ -4985,6 +4992,7 @@
|
|
|
4985
4992
|
"es.typed-array.subarray",
|
|
4986
4993
|
"es.typed-array.to-locale-string",
|
|
4987
4994
|
"es.typed-array.to-string",
|
|
4995
|
+
"esnext.typed-array.from-async",
|
|
4988
4996
|
"esnext.typed-array.at",
|
|
4989
4997
|
"esnext.typed-array.filter-out",
|
|
4990
4998
|
"esnext.typed-array.filter-reject",
|
|
@@ -4996,6 +5004,7 @@
|
|
|
4996
5004
|
"core-js/features/typed-array/int8-array": [
|
|
4997
5005
|
"es.map",
|
|
4998
5006
|
"es.object.to-string",
|
|
5007
|
+
"es.promise",
|
|
4999
5008
|
"es.string.iterator",
|
|
5000
5009
|
"es.typed-array.int8-array",
|
|
5001
5010
|
"es.typed-array.at",
|
|
@@ -5024,6 +5033,7 @@
|
|
|
5024
5033
|
"es.typed-array.subarray",
|
|
5025
5034
|
"es.typed-array.to-locale-string",
|
|
5026
5035
|
"es.typed-array.to-string",
|
|
5036
|
+
"esnext.typed-array.from-async",
|
|
5027
5037
|
"esnext.typed-array.at",
|
|
5028
5038
|
"esnext.typed-array.filter-out",
|
|
5029
5039
|
"esnext.typed-array.filter-reject",
|
|
@@ -5052,6 +5062,7 @@
|
|
|
5052
5062
|
"core-js/features/typed-array/methods": [
|
|
5053
5063
|
"es.map",
|
|
5054
5064
|
"es.object.to-string",
|
|
5065
|
+
"es.promise",
|
|
5055
5066
|
"es.string.iterator",
|
|
5056
5067
|
"es.typed-array.at",
|
|
5057
5068
|
"es.typed-array.copy-within",
|
|
@@ -5079,6 +5090,7 @@
|
|
|
5079
5090
|
"es.typed-array.subarray",
|
|
5080
5091
|
"es.typed-array.to-locale-string",
|
|
5081
5092
|
"es.typed-array.to-string",
|
|
5093
|
+
"esnext.typed-array.from-async",
|
|
5082
5094
|
"esnext.typed-array.at",
|
|
5083
5095
|
"esnext.typed-array.filter-out",
|
|
5084
5096
|
"esnext.typed-array.filter-reject",
|
|
@@ -5123,6 +5135,7 @@
|
|
|
5123
5135
|
"core-js/features/typed-array/uint16-array": [
|
|
5124
5136
|
"es.map",
|
|
5125
5137
|
"es.object.to-string",
|
|
5138
|
+
"es.promise",
|
|
5126
5139
|
"es.string.iterator",
|
|
5127
5140
|
"es.typed-array.uint16-array",
|
|
5128
5141
|
"es.typed-array.at",
|
|
@@ -5151,6 +5164,7 @@
|
|
|
5151
5164
|
"es.typed-array.subarray",
|
|
5152
5165
|
"es.typed-array.to-locale-string",
|
|
5153
5166
|
"es.typed-array.to-string",
|
|
5167
|
+
"esnext.typed-array.from-async",
|
|
5154
5168
|
"esnext.typed-array.at",
|
|
5155
5169
|
"esnext.typed-array.filter-out",
|
|
5156
5170
|
"esnext.typed-array.filter-reject",
|
|
@@ -5162,6 +5176,7 @@
|
|
|
5162
5176
|
"core-js/features/typed-array/uint32-array": [
|
|
5163
5177
|
"es.map",
|
|
5164
5178
|
"es.object.to-string",
|
|
5179
|
+
"es.promise",
|
|
5165
5180
|
"es.string.iterator",
|
|
5166
5181
|
"es.typed-array.uint32-array",
|
|
5167
5182
|
"es.typed-array.at",
|
|
@@ -5190,6 +5205,7 @@
|
|
|
5190
5205
|
"es.typed-array.subarray",
|
|
5191
5206
|
"es.typed-array.to-locale-string",
|
|
5192
5207
|
"es.typed-array.to-string",
|
|
5208
|
+
"esnext.typed-array.from-async",
|
|
5193
5209
|
"esnext.typed-array.at",
|
|
5194
5210
|
"esnext.typed-array.filter-out",
|
|
5195
5211
|
"esnext.typed-array.filter-reject",
|
|
@@ -5201,6 +5217,7 @@
|
|
|
5201
5217
|
"core-js/features/typed-array/uint8-array": [
|
|
5202
5218
|
"es.map",
|
|
5203
5219
|
"es.object.to-string",
|
|
5220
|
+
"es.promise",
|
|
5204
5221
|
"es.string.iterator",
|
|
5205
5222
|
"es.typed-array.uint8-array",
|
|
5206
5223
|
"es.typed-array.at",
|
|
@@ -5229,6 +5246,7 @@
|
|
|
5229
5246
|
"es.typed-array.subarray",
|
|
5230
5247
|
"es.typed-array.to-locale-string",
|
|
5231
5248
|
"es.typed-array.to-string",
|
|
5249
|
+
"esnext.typed-array.from-async",
|
|
5232
5250
|
"esnext.typed-array.at",
|
|
5233
5251
|
"esnext.typed-array.filter-out",
|
|
5234
5252
|
"esnext.typed-array.filter-reject",
|
|
@@ -5240,6 +5258,7 @@
|
|
|
5240
5258
|
"core-js/features/typed-array/uint8-clamped-array": [
|
|
5241
5259
|
"es.map",
|
|
5242
5260
|
"es.object.to-string",
|
|
5261
|
+
"es.promise",
|
|
5243
5262
|
"es.string.iterator",
|
|
5244
5263
|
"es.typed-array.uint8-clamped-array",
|
|
5245
5264
|
"es.typed-array.at",
|
|
@@ -5268,6 +5287,7 @@
|
|
|
5268
5287
|
"es.typed-array.subarray",
|
|
5269
5288
|
"es.typed-array.to-locale-string",
|
|
5270
5289
|
"es.typed-array.to-string",
|
|
5290
|
+
"esnext.typed-array.from-async",
|
|
5271
5291
|
"esnext.typed-array.at",
|
|
5272
5292
|
"esnext.typed-array.filter-out",
|
|
5273
5293
|
"esnext.typed-array.filter-reject",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js-compat",
|
|
3
3
|
"description": "core-js compat",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.19.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/zloirock/core-js.git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"main": "index.js",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"browserslist": "^4.17.
|
|
12
|
+
"browserslist": "^4.17.5",
|
|
13
13
|
"semver": "7.0.0"
|
|
14
14
|
},
|
|
15
15
|
"funding": {
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"url": "https://opencollective.com/core-js"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "6123ff17d26eddf3ba8d456feb97decab3a9e9f6"
|
|
21
21
|
}
|
package/targets-parser.js
CHANGED
|
@@ -30,7 +30,7 @@ const validTargets = new Set([
|
|
|
30
30
|
]);
|
|
31
31
|
|
|
32
32
|
module.exports = function (targets) {
|
|
33
|
-
if (typeof targets
|
|
33
|
+
if (typeof targets != 'object' || Array.isArray(targets)) {
|
|
34
34
|
targets = { browsers: targets };
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ module.exports = function (targets) {
|
|
|
38
38
|
const list = Object.entries(rest);
|
|
39
39
|
|
|
40
40
|
if (browsers) {
|
|
41
|
-
if (typeof browsers
|
|
41
|
+
if (typeof browsers == 'string' || Array.isArray(browsers)) {
|
|
42
42
|
list.push(...browserslist(browsers).map(it => it.split(' ')));
|
|
43
43
|
} else {
|
|
44
44
|
list.push(...Object.entries(browsers));
|