core-js-compat 3.26.1 → 3.27.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 +28 -25
- package/data.json +1291 -56
- package/entries.json +788 -2
- package/external.json +4 -0
- package/modules-by-versions.json +15 -0
- package/modules.json +13 -0
- package/package.json +1 -1
- package/targets-parser.js +13 -5
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ const {
|
|
|
24
24
|
exclude: [ // optional list / filter of modules to exclude, the signature is similar to `modules` option
|
|
25
25
|
'web.atob',
|
|
26
26
|
],
|
|
27
|
-
version: '3.
|
|
27
|
+
version: '3.27', // used `core-js` version, by default - the latest
|
|
28
28
|
inverse: false, // inverse of the result - shows modules that are NOT required for the target environment
|
|
29
29
|
});
|
|
30
30
|
|
|
@@ -70,28 +70,31 @@ console.log(targets);
|
|
|
70
70
|
```js
|
|
71
71
|
// browserslist query:
|
|
72
72
|
'defaults, not IE 11, maintained node versions'
|
|
73
|
-
// object:
|
|
73
|
+
// object (sure, all those fields optional):
|
|
74
74
|
{
|
|
75
|
-
android: '4.0',
|
|
76
|
-
bun: '0.1.2',
|
|
77
|
-
chrome: '38',
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
75
|
+
android: '4.0', // Android WebView version
|
|
76
|
+
bun: '0.1.2', // Bun version
|
|
77
|
+
chrome: '38', // Chrome version
|
|
78
|
+
'chrome-android': '18', // Chrome for Android version
|
|
79
|
+
deno: '1.12', // Deno version
|
|
80
|
+
edge: '13', // Edge version
|
|
81
|
+
electron: '5.0', // Electron framework version
|
|
82
|
+
firefox: '15', // Firefox version
|
|
83
|
+
'firefox-android': '4', // Firefox for Android version
|
|
84
|
+
hermes: '0.11', // Hermes version
|
|
85
|
+
ie: '8', // Internet Explorer version
|
|
86
|
+
ios: '13.0', // iOS Safari version
|
|
87
|
+
node: 'current', // NodeJS version, you can use 'current' for set it to currently used
|
|
88
|
+
opera: '12', // Opera version
|
|
89
|
+
'opera-android': '7', // Opera for Android version
|
|
90
|
+
phantom: '1.9', // PhantomJS headless browser version
|
|
91
|
+
quest: '5.0', // Meta Quest Browser version
|
|
92
|
+
'react-native': '0.70', // React Native version (default Hermes engine)
|
|
93
|
+
rhino: '1.7.13', // Rhino engine version
|
|
94
|
+
safari: '14.0', // Safari version
|
|
95
|
+
samsung: '14.0', // Samsung Internet version
|
|
96
|
+
esmodules: true, // That option set target to minimum supporting ES Modules versions of all browsers
|
|
97
|
+
browsers: '> 0.25%', // Browserslist query or object with target browsers
|
|
95
98
|
}
|
|
96
99
|
```
|
|
97
100
|
|
|
@@ -119,11 +122,11 @@ require('core-js-compat/modules'); // => Array<ModuleName>
|
|
|
119
122
|
require('core-js-compat').modules; // => Array<ModuleName>
|
|
120
123
|
|
|
121
124
|
// the subset of modules which available in the passed `core-js` version:
|
|
122
|
-
require('core-js-compat/get-modules-list-for-target-version')('3.
|
|
125
|
+
require('core-js-compat/get-modules-list-for-target-version')('3.27'); // => Array<ModuleName>
|
|
123
126
|
// or
|
|
124
|
-
require('core-js-compat').getModulesListForTargetVersion('3.
|
|
127
|
+
require('core-js-compat').getModulesListForTargetVersion('3.27'); // => Array<ModuleName>
|
|
125
128
|
```
|
|
126
129
|
|
|
127
130
|
If you wanna help to improve this data, you could take a look at the related section of [`CONTRIBUTING.md`](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#how-to-update-core-js-compat-data). The visualization of compatibility data and the browser tests runner is available [here](http://zloirock.github.io/core-js/compat/), the example:
|
|
128
131
|
|
|
129
|
-

|