core-js-compat 3.26.1 → 3.27.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 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.26', // used `core-js` version, by default - the latest
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', // Android WebView version
76
- bun: '0.1.2', // Bun version
77
- chrome: '38', // Chrome version
78
- deno: '1.12', // Deno version
79
- edge: '13', // Edge version
80
- electron: '5.0', // Electron framework version
81
- firefox: '15', // Firefox version
82
- hermes: '0.11', // Hermes version
83
- ie: '8', // Internet Explorer version
84
- ios: '13.0', // iOS Safari version
85
- node: 'current', // NodeJS version, you can use 'current' for set it to currently used
86
- oculus: '5.0', // Oculus Browser version
87
- opera: '12', // Opera version
88
- opera_mobile: '7', // Opera Mobile version
89
- phantom: '1.9', // PhantomJS headless browser version
90
- rhino: '1.7.13', // Rhino engine version
91
- safari: '14.0', // Safari version
92
- samsung: '14.0', // Samsung Internet version
93
- esmodules: true, // That option set target to minimum supporting ES Modules versions of all browsers
94
- browsers: '> 0.25%', // Browserslist query or object with target browsers
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.26'); // => Array<ModuleName>
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.26'); // => Array<ModuleName>
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
- ![compat-table](https://user-images.githubusercontent.com/2213682/173199354-1f3aeb83-7231-46b2-8a14-a9d47ce3ae45.png)
132
+ ![compat-table](https://user-images.githubusercontent.com/2213682/202867481-69d28cd6-9e1a-453b-8875-39a5bf92eac3.png)