core-js-compat 3.12.1 → 3.13.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 +3 -3
- package/entries.json +1 -0
- package/package.json +2 -8
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.
|
|
10
|
+
version: '3.13', // used `core-js` version, by default - the latest
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
console.log(targets);
|
|
@@ -65,9 +65,9 @@ require('core-js-compat/modules'); // => Array<ModuleName>
|
|
|
65
65
|
require('core-js-compat').modules; // => Array<ModuleName>
|
|
66
66
|
|
|
67
67
|
// the subset of modules which available in the passed `core-js` version:
|
|
68
|
-
require('core-js-compat/get-modules-list-for-target-version')('3.
|
|
68
|
+
require('core-js-compat/get-modules-list-for-target-version')('3.13'); // => Array<ModuleName>
|
|
69
69
|
// or
|
|
70
|
-
require('core-js-compat').getModulesListForTargetVersion('3.
|
|
70
|
+
require('core-js-compat').getModulesListForTargetVersion('3.13'); // => Array<ModuleName>
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
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/entries.json
CHANGED
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.
|
|
4
|
+
"version": "3.13.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/zloirock/core-js.git",
|
|
@@ -12,16 +12,10 @@
|
|
|
12
12
|
"browserslist": "^4.16.6",
|
|
13
13
|
"semver": "7.0.0"
|
|
14
14
|
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"chalk": "^4.1.1",
|
|
17
|
-
"detective": "^5.2.0",
|
|
18
|
-
"electron-to-chromium": "^1.3.727",
|
|
19
|
-
"glob": "^7.1.7"
|
|
20
|
-
},
|
|
21
15
|
"funding": {
|
|
22
16
|
"type": "opencollective",
|
|
23
17
|
"url": "https://opencollective.com/core-js"
|
|
24
18
|
},
|
|
25
19
|
"license": "MIT",
|
|
26
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "f4307bc98ea7e1ca10b1c6e27847f9faad4a76d3"
|
|
27
21
|
}
|