web-features 2.12.0 → 2.13.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/data.schema.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "type": "array"
41
41
  }
42
42
  ],
43
- "description": "caniuse.com identifier"
43
+ "description": "caniuse.com identifier(s)"
44
44
  },
45
45
  "compat_features": {
46
46
  "description": "Sources of support data for this feature",
@@ -70,7 +70,7 @@
70
70
  "type": "array"
71
71
  }
72
72
  ],
73
- "description": "Group identifier"
73
+ "description": "Group identifier(s)"
74
74
  },
75
75
  "name": {
76
76
  "description": "Short name",
@@ -89,26 +89,22 @@
89
89
  "type": "array"
90
90
  }
91
91
  ],
92
- "description": "Snapshot identifier"
92
+ "description": "Snapshot identifier(s)"
93
93
  },
94
94
  "spec": {
95
95
  "anyOf": [
96
96
  {
97
- "description": "Specification URL",
98
- "format": "uri",
99
97
  "type": "string"
100
98
  },
101
99
  {
102
100
  "items": {
103
- "description": "Specification URL",
104
- "format": "uri",
105
101
  "type": "string"
106
102
  },
107
103
  "minItems": 2,
108
104
  "type": "array"
109
105
  }
110
106
  ],
111
- "description": "Specification"
107
+ "description": "Specification URL(s)"
112
108
  },
113
109
  "status": {
114
110
  "additionalProperties": false,
@@ -286,7 +282,6 @@
286
282
  },
287
283
  "spec": {
288
284
  "description": "Specification",
289
- "format": "uri",
290
285
  "type": "string"
291
286
  }
292
287
  },
package/index.d.ts CHANGED
@@ -19,13 +19,13 @@ interface FeatureData {
19
19
  description: string;
20
20
  /** Short description of the feature, as an HTML string */
21
21
  description_html: string;
22
- /** Specification */
23
- spec: specification_url | [specification_url, specification_url, ...specification_url[]];
24
- /** Group identifier */
22
+ /** Specification URL(s) */
23
+ spec: string | [string, string, ...string[]];
24
+ /** Group identifier(s) */
25
25
  group?: string | [string, string, ...string[]];
26
- /** Snapshot identifier */
26
+ /** Snapshot identifier(s) */
27
27
  snapshot?: string | [string, string, ...string[]];
28
- /** caniuse.com identifier */
28
+ /** caniuse.com identifier(s) */
29
29
  caniuse?: string | [string, string, ...string[]];
30
30
  /** Whether a feature is considered a "baseline" web platform feature and when it achieved that status */
31
31
  status: SupportStatus;
@@ -50,10 +50,6 @@ interface SupportStatus extends Status {
50
50
  /** Statuses for each key in the feature's compat_features list, if applicable. Not available to the npm release of web-features. */
51
51
  by_compat_key?: Record<string, Status>;
52
52
  }
53
- /** Specification URL
54
- * @format uri
55
- */
56
- type specification_url = string;
57
53
  interface GroupData {
58
54
  /** Short name */
59
55
  name: string;
@@ -64,7 +60,7 @@ interface SnapshotData {
64
60
  /** Short name */
65
61
  name: string;
66
62
  /** Specification */
67
- spec: specification_url;
63
+ spec: string;
68
64
  }
69
65
 
70
66
  declare const browsers: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "web-features",
3
3
  "description": "Curated list of Web platform features",
4
- "version": "2.12.0",
4
+ "version": "2.13.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",