@mdn/browser-compat-data 5.4.1 → 5.4.3

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/import.d.mts ADDED
@@ -0,0 +1,8 @@
1
+ /* This file is a part of @mdn/browser-compat-data
2
+ * See LICENSE file for more information. */
3
+
4
+ import { CompatData } from "./types.js";
5
+
6
+ declare var bcd: CompatData;
7
+ export default bcd;
8
+ export * from "./types.js";
package/package.json CHANGED
@@ -1 +1,42 @@
1
- {"main":"data.json","exports":{".":"./data.json","./forLegacyNode":"./legacynode.mjs"},"types":"index.ts","name":"@mdn/browser-compat-data","version":"5.4.1","description":"Browser compatibility data provided by MDN Web Docs","repository":{"type":"git","url":"git+https://github.com/mdn/browser-compat-data.git"},"keywords":["bcd","browser-compat-data","browser","compatibility","data","mdn","mozilla"],"author":"MDN Web Docs","license":"CC0-1.0","bugs":{"url":"https://github.com/mdn/browser-compat-data/issues"},"homepage":"https://github.com/mdn/browser-compat-data#readme"}
1
+ {
2
+ "main": "data.json",
3
+ "exports": {
4
+ ".": {
5
+ "require": {
6
+ "types": "./require.d.ts",
7
+ "default": "./data.json"
8
+ },
9
+ "import": {
10
+ "types": "./import.d.mts",
11
+ "default": "./data.json"
12
+ }
13
+ },
14
+ "./forLegacyNode": {
15
+ "types": "./import.d.mts",
16
+ "default": "./legacynode.mjs"
17
+ }
18
+ },
19
+ "types": "require.d.ts",
20
+ "name": "@mdn/browser-compat-data",
21
+ "version": "5.4.3",
22
+ "description": "Browser compatibility data provided by MDN Web Docs",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/mdn/browser-compat-data.git"
26
+ },
27
+ "keywords": [
28
+ "bcd",
29
+ "browser-compat-data",
30
+ "browser",
31
+ "compatibility",
32
+ "data",
33
+ "mdn",
34
+ "mozilla"
35
+ ],
36
+ "author": "MDN Web Docs",
37
+ "license": "CC0-1.0",
38
+ "bugs": {
39
+ "url": "https://github.com/mdn/browser-compat-data/issues"
40
+ },
41
+ "homepage": "https://github.com/mdn/browser-compat-data#readme"
42
+ }
package/require.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /* This file is a part of @mdn/browser-compat-data
2
+ * See LICENSE file for more information. */
3
+
4
+ import { CompatData } from "./types.js";
5
+
6
+ declare var bcd: CompatData;
7
+ export default bcd;
8
+ export * from "./types.js";
package/index.ts DELETED
@@ -1,11 +0,0 @@
1
- /* This file is a part of @mdn/browser-compat-data
2
- * See LICENSE file for more information. */
3
-
4
- import { CompatData } from "./types";
5
-
6
- import bcd from "./data.json";
7
-
8
- // XXX The cast to "any" mitigates a TS definition issue.
9
- // This is a longstanding TypeScript issue; see https://github.com/microsoft/TypeScript/issues/17867.
10
- export default bcd as any as CompatData;
11
- export * from "./types";