core-js-compat 3.15.1 → 3.16.2

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/external.json CHANGED
@@ -2,6 +2,7 @@
2
2
  "modules": {
3
3
  "android": "61",
4
4
  "chrome": "61",
5
+ "deno": "1.0",
5
6
  "edge": "16",
6
7
  "firefox": "60",
7
8
  "ios": "10.3",
@@ -10,4 +11,4 @@
10
11
  "safari": "10.1",
11
12
  "samsung": "8.0"
12
13
  }
13
- }
14
+ }
@@ -386,5 +386,11 @@
386
386
  "es.regexp.dot-all",
387
387
  "es.string.substr",
388
388
  "es.unescape"
389
+ ],
390
+ "3.16": [
391
+ "esnext.array.filter-reject",
392
+ "esnext.array.group-by",
393
+ "esnext.typed-array.filter-reject",
394
+ "esnext.typed-array.group-by"
389
395
  ]
390
- }
396
+ }
package/modules.json CHANGED
@@ -220,8 +220,10 @@
220
220
  "esnext.aggregate-error",
221
221
  "esnext.array.at",
222
222
  "esnext.array.filter-out",
223
+ "esnext.array.filter-reject",
223
224
  "esnext.array.find-last",
224
225
  "esnext.array.find-last-index",
226
+ "esnext.array.group-by",
225
227
  "esnext.array.is-template-object",
226
228
  "esnext.array.last-index",
227
229
  "esnext.array.last-item",
@@ -341,8 +343,10 @@
341
343
  "esnext.symbol.replace-all",
342
344
  "esnext.typed-array.at",
343
345
  "esnext.typed-array.filter-out",
346
+ "esnext.typed-array.filter-reject",
344
347
  "esnext.typed-array.find-last",
345
348
  "esnext.typed-array.find-last-index",
349
+ "esnext.typed-array.group-by",
346
350
  "esnext.typed-array.unique-by",
347
351
  "esnext.weak-map.delete-all",
348
352
  "esnext.weak-map.from",
@@ -361,4 +365,4 @@
361
365
  "web.url",
362
366
  "web.url.to-json",
363
367
  "web.url-search-params"
364
- ]
368
+ ]
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.15.1",
4
+ "version": "3.16.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "main": "index.js",
11
11
  "dependencies": {
12
- "browserslist": "^4.16.6",
12
+ "browserslist": "^4.16.7",
13
13
  "semver": "7.0.0"
14
14
  },
15
15
  "funding": {
@@ -17,5 +17,5 @@
17
17
  "url": "https://opencollective.com/core-js"
18
18
  },
19
19
  "license": "MIT",
20
- "gitHead": "d7409d106383f252ab25215a287d9b8160785918"
20
+ "gitHead": "ef826cce45d2896ee92a2a27f6f09c2397e0a8b3"
21
21
  }
package/targets-parser.js CHANGED
@@ -14,6 +14,7 @@ const aliases = new Map([
14
14
  const validTargets = new Set([
15
15
  'android',
16
16
  'chrome',
17
+ 'deno',
17
18
  'edge',
18
19
  'electron',
19
20
  'firefox',
@@ -37,7 +38,11 @@ module.exports = function (targets) {
37
38
  const list = Object.entries(rest);
38
39
 
39
40
  if (browsers) {
40
- list.push(...browserslist(browsers).map(it => it.split(' ')));
41
+ if (typeof browsers === 'string' || Array.isArray(browsers)) {
42
+ list.push(...browserslist(browsers).map(it => it.split(' ')));
43
+ } else {
44
+ list.push(...Object.entries(browsers));
45
+ }
41
46
  }
42
47
  if (esmodules) {
43
48
  list.push(...Object.entries(external.modules));