core-js-compat 3.0.0-beta.6 → 3.0.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
@@ -1 +1,37 @@
1
- [See `core-js` readme](https://github.com/zloirock/core-js).
1
+ [`core-js-compat` package](https://github.com/zloirock/core-js/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.
2
+
3
+ ```js
4
+ const {
5
+ list, // array of required modules
6
+ targets, // object with targets for each module
7
+ } = require('core-js-compat')({
8
+ targets: '> 2.5%', // browserslist query
9
+ filter: 'es.', // optional filter - string-prefix, regexp or list of modules
10
+ });
11
+
12
+ console.log(targets);
13
+ /* =>
14
+ {
15
+ 'es.symbol.description': { ios: '12.0-12.1' },
16
+ 'es.array.reverse': { ios: '12.0-12.1' },
17
+ 'es.string.replace': { firefox: '63', ios: '12.0-12.1' },
18
+ 'es.string.trim': { ios: '12.0-12.1' },
19
+ 'es.promise': { firefox: '63' },
20
+ 'es.promise.finally': { firefox: '63' },
21
+ 'es.array-buffer.slice': { ios: '12.0-12.1' },
22
+ 'es.typed-array.int8-array': { ios: '12.0-12.1' },
23
+ 'es.typed-array.uint8-array': { ios: '12.0-12.1' },
24
+ 'es.typed-array.uint8-clamped-array': { ios: '12.0-12.1' },
25
+ 'es.typed-array.int16-array': { ios: '12.0-12.1' },
26
+ 'es.typed-array.uint16-array': { ios: '12.0-12.1' },
27
+ 'es.typed-array.int32-array': { ios: '12.0-12.1' },
28
+ 'es.typed-array.uint32-array': { ios: '12.0-12.1' },
29
+ 'es.typed-array.float32-array': { ios: '12.0-12.1' },
30
+ 'es.typed-array.float64-array': { ios: '12.0-12.1' },
31
+ 'es.typed-array.from': { ios: '12.0-12.1' },
32
+ 'es.typed-array.of': { ios: '12.0-12.1' }
33
+ }
34
+ */
35
+ ```
36
+
37
+ If you want to add new / update data about modules required for target engines, [follow this instruction](../../CONTRIBUTING.md#updating-core-js-compat-data).