core-js-compat 3.30.1 → 3.31.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.
@@ -0,0 +1,5 @@
1
+ import type { ModuleName, TargetVersion } from "./shared";
2
+
3
+ declare function getModulesListForTargetVersion(version: TargetVersion): readonly ModuleName[];
4
+
5
+ export = getModulesListForTargetVersion;
package/index.d.ts ADDED
@@ -0,0 +1,27 @@
1
+ import type compat from './compat'
2
+ import type getModulesListForTargetVersion from './get-modules-list-for-target-version';
3
+ import type { ModuleName, Target, TargetVersion } from './shared'
4
+
5
+ type CompatData = {
6
+ [module: ModuleName]: {
7
+ [target in Target]?: TargetVersion
8
+ }
9
+ };
10
+
11
+ declare const ExportedCompatObject: typeof compat & {
12
+ compat: typeof compat,
13
+
14
+ /** The subset of modules which available in the passed `core-js` version */
15
+ getModulesListForTargetVersion: typeof getModulesListForTargetVersion,
16
+
17
+ /** Full list compatibility data */
18
+ data: CompatData,
19
+
20
+ /** map of modules by `core-js` entry points */
21
+ entries: {[entry_point: string]: readonly ModuleName[]},
22
+
23
+ /** Full list of modules */
24
+ modules: readonly ModuleName[]
25
+ }
26
+
27
+ export = ExportedCompatObject
@@ -493,5 +493,16 @@
493
493
  ],
494
494
  "3.30": [
495
495
  "web.url.can-parse"
496
+ ],
497
+ "3.31": [
498
+ "es.string.is-well-formed",
499
+ "es.string.to-well-formed",
500
+ "esnext.function.metadata",
501
+ "esnext.object.group-by",
502
+ "esnext.promise.with-resolvers",
503
+ "esnext.symbol.is-registered-symbol",
504
+ "esnext.symbol.is-well-known-symbol",
505
+ "web.url-search-params.delete",
506
+ "web.url-search-params.has"
496
507
  ]
497
508
  }
package/modules.json CHANGED
@@ -167,6 +167,7 @@
167
167
  "es.string.ends-with",
168
168
  "es.string.from-code-point",
169
169
  "es.string.includes",
170
+ "es.string.is-well-formed",
170
171
  "es.string.iterator",
171
172
  "es.string.match",
172
173
  "es.string.match-all",
@@ -180,6 +181,7 @@
180
181
  "es.string.split",
181
182
  "es.string.starts-with",
182
183
  "es.string.substr",
184
+ "es.string.to-well-formed",
183
185
  "es.string.trim",
184
186
  "es.string.trim-end",
185
187
  "es.string.trim-start",
@@ -286,6 +288,7 @@
286
288
  "esnext.function.demethodize",
287
289
  "esnext.function.is-callable",
288
290
  "esnext.function.is-constructor",
291
+ "esnext.function.metadata",
289
292
  "esnext.function.un-this",
290
293
  "esnext.global-this",
291
294
  "esnext.iterator.constructor",
@@ -348,10 +351,12 @@
348
351
  "esnext.object.iterate-entries",
349
352
  "esnext.object.iterate-keys",
350
353
  "esnext.object.iterate-values",
354
+ "esnext.object.group-by",
351
355
  "esnext.observable",
352
356
  "esnext.promise.all-settled",
353
357
  "esnext.promise.any",
354
358
  "esnext.promise.try",
359
+ "esnext.promise.with-resolvers",
355
360
  "esnext.reflect.define-metadata",
356
361
  "esnext.reflect.delete-metadata",
357
362
  "esnext.reflect.get-metadata",
@@ -396,7 +401,9 @@
396
401
  "esnext.string.to-well-formed",
397
402
  "esnext.symbol.async-dispose",
398
403
  "esnext.symbol.dispose",
404
+ "esnext.symbol.is-registered-symbol",
399
405
  "esnext.symbol.is-registered",
406
+ "esnext.symbol.is-well-known-symbol",
400
407
  "esnext.symbol.is-well-known",
401
408
  "esnext.symbol.matcher",
402
409
  "esnext.symbol.metadata",
@@ -441,5 +448,7 @@
441
448
  "web.url.can-parse",
442
449
  "web.url.to-json",
443
450
  "web.url-search-params",
451
+ "web.url-search-params.delete",
452
+ "web.url-search-params.has",
444
453
  "web.url-search-params.size"
445
454
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-js-compat",
3
- "version": "3.30.1",
3
+ "version": "3.31.0",
4
4
  "description": "core-js compat",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "sideEffects": false,
21
21
  "main": "index.js",
22
+ "types": "index.d.ts",
22
23
  "dependencies": {
23
24
  "browserslist": "^4.21.5"
24
25
  }
package/shared.d.ts ADDED
@@ -0,0 +1,32 @@
1
+ export type ModuleName = string;
2
+
3
+ export type Target =
4
+ | 'android'
5
+ | 'bun'
6
+ | 'chrome'
7
+ | 'chrome-android'
8
+ | 'deno'
9
+ | 'edge'
10
+ | 'electron'
11
+ | 'firefox'
12
+ | 'firefox-android'
13
+ | 'hermes'
14
+ | 'ie'
15
+ | 'ios'
16
+ | 'node'
17
+ | 'opera'
18
+ | 'opera-android'
19
+ | 'phantom'
20
+ | 'quest'
21
+ | 'react-native'
22
+ | 'rhino'
23
+ | 'safari'
24
+ | 'samsung'
25
+ /** `quest` alias */
26
+ | 'oculus'
27
+ /** `react-native` alias */
28
+ | 'react'
29
+ /** @deprecated use `opera-android` instead */
30
+ | 'opera_mobile';
31
+
32
+ export type TargetVersion = string;