core-js-compat
Advanced tools
Comparing version 3.25.5 to 3.26.0
@@ -57,4 +57,6 @@ 'use strict'; | ||
version = null, | ||
inverse = false, | ||
} = {}) { | ||
if (modules == null) modules = filter; | ||
inverse = !!inverse; | ||
@@ -76,3 +78,3 @@ const parsedTargets = targets ? targetsParser(targets) : null; | ||
modules = filterOutStabilizedProposals(modules); | ||
if (!inverse) modules = filterOutStabilizedProposals(modules); | ||
@@ -82,3 +84,3 @@ for (const key of modules) { | ||
if (check.required) { | ||
if (check.required ^ inverse) { | ||
result.list.push(key); | ||
@@ -85,0 +87,0 @@ result.targets[key] = check.targets; |
@@ -451,3 +451,8 @@ { | ||
"es.object.proto" | ||
], | ||
"3.26": [ | ||
"esnext.string.is-well-formed", | ||
"esnext.string.to-well-formed", | ||
"web.self" | ||
] | ||
} |
@@ -365,4 +365,6 @@ [ | ||
"esnext.string.code-points", | ||
"esnext.string.is-well-formed", | ||
"esnext.string.match-all", | ||
"esnext.string.replace-all", | ||
"esnext.string.to-well-formed", | ||
"esnext.symbol.async-dispose", | ||
@@ -406,2 +408,3 @@ "esnext.symbol.dispose", | ||
"web.queue-microtask", | ||
"web.self", | ||
"web.structured-clone", | ||
@@ -408,0 +411,0 @@ "web.timers", |
{ | ||
"name": "core-js-compat", | ||
"version": "3.26.0", | ||
"description": "core-js compat", | ||
"version": "3.25.5", | ||
"repository": { | ||
@@ -10,7 +10,2 @@ "type": "git", | ||
}, | ||
"main": "index.js", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"browserslist": "^4.21.4" | ||
}, | ||
"funding": { | ||
@@ -20,3 +15,13 @@ "type": "opencollective", | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"author": { | ||
"name": "Denis Pushkarev", | ||
"email": "zloirock@zloirock.ru", | ||
"url": "http://zloirock.ru" | ||
}, | ||
"sideEffects": false, | ||
"main": "index.js", | ||
"dependencies": { | ||
"browserslist": "^4.21.4" | ||
} | ||
} |
@@ -5,3 +5,3 @@ ![logo](https://user-images.githubusercontent.com/2213682/146607186-8e13ddef-26a4-4ebf-befd-5aac9d77c090.png) | ||
[![fundraising](https://opencollective.com/core-js/all/badge.svg?label=fundraising)](https://opencollective.com/core-js) [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [![version](https://img.shields.io/npm/v/core-js-compat.svg)](https://www.npmjs.com/package/core-js-compat) [![core-js-pure downloads](https://img.shields.io/npm/dm/core-js-compat.svg?label=npm%20i%20core-js-compat)](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) [![tests](https://github.com/zloirock/core-js/workflows/tests/badge.svg)](https://github.com/zloirock/core-js/actions) [![eslint](https://github.com/zloirock/core-js/workflows/eslint/badge.svg)](https://github.com/zloirock/core-js/actions) | ||
[![fundraising](https://opencollective.com/core-js/all/badge.svg?label=fundraising)](https://opencollective.com/core-js) [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [![version](https://img.shields.io/npm/v/core-js-compat.svg)](https://www.npmjs.com/package/core-js-compat) [![core-js-pure downloads](https://img.shields.io/npm/dm/core-js-compat.svg?label=npm%20i%20core-js-compat)](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) | ||
@@ -16,15 +16,16 @@ </div> | ||
const { | ||
list, // array of required modules | ||
targets, // object with targets for each module | ||
list, // array of required modules | ||
targets, // object with targets for each module | ||
} = compat({ | ||
targets: '> 1%', // browserslist query or object of minimum environment versions to support, see below | ||
modules: [ // optional list / filter of modules - regex, sting or an array of them: | ||
'core-js/actual', // - an entry point | ||
'esnext.array.unique-by', // - a module name (or just a start of a module name) | ||
/^web\./, // - regex that a module name must satisfy | ||
targets: '> 1%', // browserslist query or object of minimum environment versions to support, see below | ||
modules: [ // optional list / filter of modules - regex, sting or an array of them: | ||
'core-js/actual', // - an entry point | ||
'esnext.array.unique-by', // - a module name (or just a start of a module name) | ||
/^web\./, // - regex that a module name must satisfy | ||
], | ||
exclude: [ // optional list / filter of modules to exclude, the signature is similar to `modules` option | ||
exclude: [ // optional list / filter of modules to exclude, the signature is similar to `modules` option | ||
'web.atob', | ||
], | ||
version: '3.25', // used `core-js` version, by default - the latest | ||
version: '3.26', // used `core-js` version, by default - the latest | ||
inverse: false, // inverse of the result - shows modules that are NOT required for the target environment | ||
}); | ||
@@ -123,5 +124,5 @@ | ||
// the subset of modules which available in the passed `core-js` version: | ||
require('core-js-compat/get-modules-list-for-target-version')('3.25'); // => Array<ModuleName> | ||
require('core-js-compat/get-modules-list-for-target-version')('3.26'); // => Array<ModuleName> | ||
// or | ||
require('core-js-compat').getModulesListForTargetVersion('3.25'); // => Array<ModuleName> | ||
require('core-js-compat').getModulesListForTargetVersion('3.26'); // => Array<ModuleName> | ||
``` | ||
@@ -128,0 +129,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
570230
22488
1
130