core-js-compat 3.25.0 → 3.25.2
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 +6 -0
- package/data.json +40 -17
- package/helpers.js +24 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
[](https://opencollective.com/core-js) [](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [](https://www.npmjs.com/package/core-js-compat) [](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) [](https://github.com/zloirock/core-js/actions) [](https://github.com/zloirock/core-js/actions)
|
|
6
|
+
|
|
7
|
+
</div>
|
|
8
|
+
|
|
3
9
|
[`core-js-compat` package](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat) contains data about the necessity of [`core-js`](https://github.com/zloirock/core-js) modules and API for getting a list of required core-js modules by browserslist query.
|
|
4
10
|
|
|
5
11
|
```js
|
package/data.json
CHANGED
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
"firefox": "4",
|
|
610
610
|
"hermes": "0.1",
|
|
611
611
|
"ie": "9",
|
|
612
|
-
"ios": "3.
|
|
612
|
+
"ios": "3.0",
|
|
613
613
|
"node": "0.1.27",
|
|
614
614
|
"oculus": "3.0",
|
|
615
615
|
"opera": "10.50",
|
|
@@ -709,7 +709,9 @@
|
|
|
709
709
|
"es.array.push": {
|
|
710
710
|
"bun": "0.1.1",
|
|
711
711
|
"firefox": "55",
|
|
712
|
-
"hermes": "0.2"
|
|
712
|
+
"hermes": "0.2",
|
|
713
|
+
"ios": "16.0",
|
|
714
|
+
"safari": "16.0"
|
|
713
715
|
},
|
|
714
716
|
"es.array.reduce": {
|
|
715
717
|
"android": "83",
|
|
@@ -894,10 +896,12 @@
|
|
|
894
896
|
"firefox": "23",
|
|
895
897
|
"hermes": "0.1",
|
|
896
898
|
"ie": "9",
|
|
899
|
+
"ios": "16.0",
|
|
897
900
|
"node": "12.0",
|
|
898
901
|
"oculus": "6.0",
|
|
899
902
|
"opera": "58",
|
|
900
903
|
"opera_mobile": "50",
|
|
904
|
+
"safari": "16.0",
|
|
901
905
|
"samsung": "10.0"
|
|
902
906
|
},
|
|
903
907
|
"es.array-buffer.constructor": {
|
|
@@ -1003,7 +1007,7 @@
|
|
|
1003
1007
|
"firefox": "2",
|
|
1004
1008
|
"hermes": "0.1",
|
|
1005
1009
|
"ie": "9",
|
|
1006
|
-
"ios": "3.
|
|
1010
|
+
"ios": "3.0",
|
|
1007
1011
|
"node": "0.1.27",
|
|
1008
1012
|
"oculus": "3.0",
|
|
1009
1013
|
"opera": "10.50",
|
|
@@ -1158,7 +1162,7 @@
|
|
|
1158
1162
|
"firefox": "4",
|
|
1159
1163
|
"hermes": "0.1",
|
|
1160
1164
|
"ie": "9",
|
|
1161
|
-
"ios": "5.
|
|
1165
|
+
"ios": "5.0",
|
|
1162
1166
|
"node": "0.1.101",
|
|
1163
1167
|
"oculus": "3.0",
|
|
1164
1168
|
"opera": "12",
|
|
@@ -1194,7 +1198,7 @@
|
|
|
1194
1198
|
"electron": "0.20",
|
|
1195
1199
|
"firefox": "2",
|
|
1196
1200
|
"hermes": "0.1",
|
|
1197
|
-
"ios": "3.
|
|
1201
|
+
"ios": "3.0",
|
|
1198
1202
|
"node": "0.1.27",
|
|
1199
1203
|
"oculus": "3.0",
|
|
1200
1204
|
"opera": "10.50",
|
|
@@ -1856,7 +1860,7 @@
|
|
|
1856
1860
|
"firefox": "4",
|
|
1857
1861
|
"hermes": "0.1",
|
|
1858
1862
|
"ie": "9",
|
|
1859
|
-
"ios": "3.
|
|
1863
|
+
"ios": "3.0",
|
|
1860
1864
|
"node": "0.1.27",
|
|
1861
1865
|
"oculus": "3.0",
|
|
1862
1866
|
"opera": "12",
|
|
@@ -1894,7 +1898,7 @@
|
|
|
1894
1898
|
"firefox": "4",
|
|
1895
1899
|
"hermes": "0.1",
|
|
1896
1900
|
"ie": "9",
|
|
1897
|
-
"ios": "5.
|
|
1901
|
+
"ios": "5.0",
|
|
1898
1902
|
"node": "0.11.15",
|
|
1899
1903
|
"oculus": "3.0",
|
|
1900
1904
|
"opera": "12",
|
|
@@ -1914,7 +1918,7 @@
|
|
|
1914
1918
|
"firefox": "4",
|
|
1915
1919
|
"hermes": "0.1",
|
|
1916
1920
|
"ie": "9",
|
|
1917
|
-
"ios": "5.
|
|
1921
|
+
"ios": "5.0",
|
|
1918
1922
|
"node": "0.11.15",
|
|
1919
1923
|
"oculus": "3.0",
|
|
1920
1924
|
"opera": "12",
|
|
@@ -4121,25 +4125,37 @@
|
|
|
4121
4125
|
"safari": "15.4",
|
|
4122
4126
|
"samsung": "18.0"
|
|
4123
4127
|
},
|
|
4124
|
-
"esnext.array.group": {
|
|
4128
|
+
"esnext.array.group": {
|
|
4129
|
+
"bun": "0.1.9"
|
|
4130
|
+
},
|
|
4125
4131
|
"esnext.array.group-by": {},
|
|
4126
4132
|
"esnext.array.group-by-to-map": {},
|
|
4127
|
-
"esnext.array.group-to-map": {
|
|
4133
|
+
"esnext.array.group-to-map": {
|
|
4134
|
+
"bun": "0.1.9"
|
|
4135
|
+
},
|
|
4128
4136
|
"esnext.array.is-template-object": {},
|
|
4129
4137
|
"esnext.array.last-index": {},
|
|
4130
4138
|
"esnext.array.last-item": {},
|
|
4131
4139
|
"esnext.array.to-reversed": {
|
|
4132
|
-
"bun": "0.1.1"
|
|
4140
|
+
"bun": "0.1.1",
|
|
4141
|
+
"ios": "16.0",
|
|
4142
|
+
"safari": "16.0"
|
|
4133
4143
|
},
|
|
4134
4144
|
"esnext.array.to-sorted": {
|
|
4135
|
-
"bun": "0.1.1"
|
|
4145
|
+
"bun": "0.1.1",
|
|
4146
|
+
"ios": "16.0",
|
|
4147
|
+
"safari": "16.0"
|
|
4136
4148
|
},
|
|
4137
4149
|
"esnext.array.to-spliced": {
|
|
4138
|
-
"bun": "0.1.1"
|
|
4150
|
+
"bun": "0.1.1",
|
|
4151
|
+
"ios": "16.0",
|
|
4152
|
+
"safari": "16.0"
|
|
4139
4153
|
},
|
|
4140
4154
|
"esnext.array.unique-by": {},
|
|
4141
4155
|
"esnext.array.with": {
|
|
4142
|
-
"bun": "0.1.1"
|
|
4156
|
+
"bun": "0.1.1",
|
|
4157
|
+
"ios": "16.0",
|
|
4158
|
+
"safari": "16.0"
|
|
4143
4159
|
},
|
|
4144
4160
|
"esnext.async-iterator.constructor": {},
|
|
4145
4161
|
"esnext.async-iterator.as-indexed-pairs": {},
|
|
@@ -4412,14 +4428,20 @@
|
|
|
4412
4428
|
},
|
|
4413
4429
|
"esnext.typed-array.group-by": {},
|
|
4414
4430
|
"esnext.typed-array.to-reversed": {
|
|
4415
|
-
"bun": "0.1.1"
|
|
4431
|
+
"bun": "0.1.1",
|
|
4432
|
+
"ios": "16.0",
|
|
4433
|
+
"safari": "16.0"
|
|
4416
4434
|
},
|
|
4417
4435
|
"esnext.typed-array.to-sorted": {
|
|
4418
|
-
"bun": "0.1.1"
|
|
4436
|
+
"bun": "0.1.1",
|
|
4437
|
+
"ios": "16.0",
|
|
4438
|
+
"safari": "16.0"
|
|
4419
4439
|
},
|
|
4420
4440
|
"esnext.typed-array.to-spliced": {},
|
|
4421
4441
|
"esnext.typed-array.unique-by": {},
|
|
4422
|
-
"esnext.typed-array.with": {
|
|
4442
|
+
"esnext.typed-array.with": {
|
|
4443
|
+
"bun": "0.1.9"
|
|
4444
|
+
},
|
|
4423
4445
|
"esnext.weak-map.delete-all": {},
|
|
4424
4446
|
"esnext.weak-map.from": {},
|
|
4425
4447
|
"esnext.weak-map.of": {},
|
|
@@ -4536,6 +4558,7 @@
|
|
|
4536
4558
|
"samsung": "5.0"
|
|
4537
4559
|
},
|
|
4538
4560
|
"web.immediate": {
|
|
4561
|
+
"bun": "0.1.7",
|
|
4539
4562
|
"ie": "10",
|
|
4540
4563
|
"node": "0.9.1"
|
|
4541
4564
|
},
|
package/helpers.js
CHANGED
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
3
|
-
const
|
|
2
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
3
|
+
const has = Object.hasOwn || Function.call.bind({}.hasOwnProperty);
|
|
4
|
+
|
|
5
|
+
function semver(input) {
|
|
6
|
+
if (input instanceof semver) return input;
|
|
7
|
+
// eslint-disable-next-line new-cap -- ok
|
|
8
|
+
if (!(this instanceof semver)) return new semver(input);
|
|
9
|
+
const match = /(\d+)(?:\.(\d+))?(?:\.(\d+))?/.exec(input);
|
|
10
|
+
if (!match) throw TypeError(`Invalid version: ${ input }`);
|
|
11
|
+
const [, $major, $minor, $patch] = match;
|
|
12
|
+
this.major = +$major;
|
|
13
|
+
this.minor = $minor ? +$minor : 0;
|
|
14
|
+
this.patch = $patch ? +$patch : 0;
|
|
15
|
+
}
|
|
4
16
|
|
|
5
|
-
|
|
17
|
+
semver.prototype.toString = function () {
|
|
18
|
+
return `${ this.major }.${ this.minor }.${ this.patch }`;
|
|
19
|
+
};
|
|
6
20
|
|
|
7
|
-
function compare(a, operator, b) {
|
|
8
|
-
|
|
21
|
+
function compare($a, operator, $b) {
|
|
22
|
+
const a = semver($a);
|
|
23
|
+
const b = semver($b);
|
|
24
|
+
for (const component of ['major', 'minor', 'patch']) {
|
|
25
|
+
if (a[component] < b[component]) return operator === '<' || operator === '<=' || operator === '!=';
|
|
26
|
+
if (a[component] > b[component]) return operator === '>' || operator === '>=' || operator === '!=';
|
|
27
|
+
} return operator === '==' || operator === '<=' || operator === '>=';
|
|
9
28
|
}
|
|
10
29
|
|
|
11
30
|
function filterOutStabilizedProposals(modules) {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js-compat",
|
|
3
3
|
"description": "core-js compat",
|
|
4
|
-
"version": "3.25.
|
|
4
|
+
"version": "3.25.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/zloirock/core-js.git",
|
|
8
8
|
"directory": "packages/core-js-compat"
|
|
9
9
|
},
|
|
10
10
|
"main": "index.js",
|
|
11
|
+
"sideEffects": false,
|
|
11
12
|
"dependencies": {
|
|
12
|
-
"browserslist": "^4.21.
|
|
13
|
-
"semver": "7.0.0"
|
|
13
|
+
"browserslist": "^4.21.4"
|
|
14
14
|
},
|
|
15
15
|
"funding": {
|
|
16
16
|
"type": "opencollective",
|