core-js-compat 3.14.0 → 3.16.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/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
+ }
@@ -377,5 +377,20 @@
377
377
  "3.12": [
378
378
  "esnext.symbol.matcher",
379
379
  "esnext.symbol.metadata"
380
+ ],
381
+ "3.15": [
382
+ "es.date.get-year",
383
+ "es.date.set-year",
384
+ "es.date.to-gmt-string",
385
+ "es.escape",
386
+ "es.regexp.dot-all",
387
+ "es.string.substr",
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"
380
395
  ]
381
- }
396
+ }
package/modules.json CHANGED
@@ -48,11 +48,15 @@
48
48
  "es.array-buffer.is-view",
49
49
  "es.array-buffer.slice",
50
50
  "es.data-view",
51
+ "es.date.get-year",
51
52
  "es.date.now",
53
+ "es.date.set-year",
54
+ "es.date.to-gmt-string",
52
55
  "es.date.to-iso-string",
53
56
  "es.date.to-json",
54
57
  "es.date.to-primitive",
55
58
  "es.date.to-string",
59
+ "es.escape",
56
60
  "es.function.bind",
57
61
  "es.function.has-instance",
58
62
  "es.function.name",
@@ -136,6 +140,7 @@
136
140
  "es.reflect.set-prototype-of",
137
141
  "es.reflect.to-string-tag",
138
142
  "es.regexp.constructor",
143
+ "es.regexp.dot-all",
139
144
  "es.regexp.exec",
140
145
  "es.regexp.flags",
141
146
  "es.regexp.sticky",
@@ -158,6 +163,7 @@
158
163
  "es.string.search",
159
164
  "es.string.split",
160
165
  "es.string.starts-with",
166
+ "es.string.substr",
161
167
  "es.string.trim",
162
168
  "es.string.trim-end",
163
169
  "es.string.trim-start",
@@ -208,13 +214,16 @@
208
214
  "es.typed-array.subarray",
209
215
  "es.typed-array.to-locale-string",
210
216
  "es.typed-array.to-string",
217
+ "es.unescape",
211
218
  "es.weak-map",
212
219
  "es.weak-set",
213
220
  "esnext.aggregate-error",
214
221
  "esnext.array.at",
215
222
  "esnext.array.filter-out",
223
+ "esnext.array.filter-reject",
216
224
  "esnext.array.find-last",
217
225
  "esnext.array.find-last-index",
226
+ "esnext.array.group-by",
218
227
  "esnext.array.is-template-object",
219
228
  "esnext.array.last-index",
220
229
  "esnext.array.last-item",
@@ -334,8 +343,10 @@
334
343
  "esnext.symbol.replace-all",
335
344
  "esnext.typed-array.at",
336
345
  "esnext.typed-array.filter-out",
346
+ "esnext.typed-array.filter-reject",
337
347
  "esnext.typed-array.find-last",
338
348
  "esnext.typed-array.find-last-index",
349
+ "esnext.typed-array.group-by",
339
350
  "esnext.typed-array.unique-by",
340
351
  "esnext.weak-map.delete-all",
341
352
  "esnext.weak-map.from",
@@ -354,4 +365,4 @@
354
365
  "web.url",
355
366
  "web.url.to-json",
356
367
  "web.url-search-params"
357
- ]
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.14.0",
4
+ "version": "3.16.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git",
@@ -17,5 +17,5 @@
17
17
  "url": "https://opencollective.com/core-js"
18
18
  },
19
19
  "license": "MIT",
20
- "gitHead": "e386f3de7760ee2910d07efb9d35029aa5dda93b"
20
+ "gitHead": "89686ea7429ad46a05040269be44395e3760837d"
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',
@@ -23,6 +24,7 @@ const validTargets = new Set([
23
24
  'opera',
24
25
  'opera_mobile',
25
26
  'phantom',
27
+ 'rhino',
26
28
  'safari',
27
29
  'samsung',
28
30
  ]);
@@ -36,7 +38,11 @@ module.exports = function (targets) {
36
38
  const list = Object.entries(rest);
37
39
 
38
40
  if (browsers) {
39
- 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
+ }
40
46
  }
41
47
  if (esmodules) {
42
48
  list.push(...Object.entries(external.modules));