core-js-compat 3.18.1 → 3.19.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
@@ -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.18', // used `core-js` version, by default - the latest
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.18'); // => Array<ModuleName>
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.18'); // => Array<ModuleName>
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,7 +243,8 @@
243
243
  "firefox": "90",
244
244
  "node": "16.6",
245
245
  "opera": "78",
246
- "safari": "15.1",
246
+ "opera_mobile": "65",
247
+ "safari": "15.4",
247
248
  "samsung": "16.0"
248
249
  },
249
250
  "es.array.concat": {
@@ -1638,7 +1639,8 @@
1638
1639
  "electron": "14.0",
1639
1640
  "firefox": "92",
1640
1641
  "node": "16.9",
1641
- "opera": "79"
1642
+ "opera": "79",
1643
+ "safari": "15.4"
1642
1644
  },
1643
1645
  "es.object.is": {
1644
1646
  "android": "4.1",
@@ -2225,7 +2227,8 @@
2225
2227
  "firefox": "90",
2226
2228
  "node": "16.6",
2227
2229
  "opera": "78",
2228
- "safari": "15.1",
2230
+ "opera_mobile": "65",
2231
+ "safari": "15.4",
2229
2232
  "samsung": "16.0"
2230
2233
  },
2231
2234
  "es.string.code-point-at": {
@@ -2857,7 +2860,8 @@
2857
2860
  "firefox": "90",
2858
2861
  "node": "16.6",
2859
2862
  "opera": "78",
2860
- "safari": "15.1",
2863
+ "opera_mobile": "65",
2864
+ "safari": "15.4",
2861
2865
  "samsung": "16.0"
2862
2866
  },
2863
2867
  "es.typed-array.copy-within": {
@@ -3281,16 +3285,25 @@
3281
3285
  "firefox": "90",
3282
3286
  "node": "16.6",
3283
3287
  "opera": "78",
3284
- "safari": "15.1",
3288
+ "opera_mobile": "65",
3289
+ "safari": "15.4",
3285
3290
  "samsung": "16.0"
3286
3291
  },
3287
3292
  "esnext.array.filter-out": {},
3288
3293
  "esnext.array.filter-reject": {},
3289
3294
  "esnext.array.find-last": {
3290
- "safari": "15.1"
3295
+ "android": "97",
3296
+ "chrome": "97",
3297
+ "edge": "97",
3298
+ "opera": "83",
3299
+ "safari": "15.4"
3291
3300
  },
3292
3301
  "esnext.array.find-last-index": {
3293
- "safari": "15.1"
3302
+ "android": "97",
3303
+ "chrome": "97",
3304
+ "edge": "97",
3305
+ "opera": "83",
3306
+ "safari": "15.4"
3294
3307
  },
3295
3308
  "esnext.array.group-by": {},
3296
3309
  "esnext.array.is-template-object": {},
@@ -3385,7 +3398,8 @@
3385
3398
  "electron": "14.0",
3386
3399
  "firefox": "92",
3387
3400
  "node": "16.9",
3388
- "opera": "79"
3401
+ "opera": "79",
3402
+ "safari": "15.4"
3389
3403
  },
3390
3404
  "esnext.object.iterate-entries": {},
3391
3405
  "esnext.object.iterate-keys": {},
@@ -3494,16 +3508,25 @@
3494
3508
  "firefox": "90",
3495
3509
  "node": "16.6",
3496
3510
  "opera": "78",
3497
- "safari": "15.1",
3511
+ "opera_mobile": "65",
3512
+ "safari": "15.4",
3498
3513
  "samsung": "16.0"
3499
3514
  },
3500
3515
  "esnext.typed-array.filter-out": {},
3501
3516
  "esnext.typed-array.filter-reject": {},
3502
3517
  "esnext.typed-array.find-last": {
3503
- "safari": "15.1"
3518
+ "android": "97",
3519
+ "chrome": "97",
3520
+ "edge": "97",
3521
+ "opera": "83",
3522
+ "safari": "15.4"
3504
3523
  },
3505
3524
  "esnext.typed-array.find-last-index": {
3506
- "safari": "15.1"
3525
+ "android": "97",
3526
+ "chrome": "97",
3527
+ "edge": "97",
3528
+ "opera": "83",
3529
+ "safari": "15.4"
3507
3530
  },
3508
3531
  "esnext.typed-array.group-by": {},
3509
3532
  "esnext.typed-array.unique-by": {},
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.18.1",
4
+ "version": "3.19.1",
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.1",
12
+ "browserslist": "^4.17.6",
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": "1a347bdf0297884ed8d9e32e1971267c6d572822"
20
+ "gitHead": "1f16f36fa2807bbe793b9da852a110e6c6077693"
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 !== 'object' || Array.isArray(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 === 'string' || Array.isArray(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));