web-features 2.25.0 → 2.26.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
@@ -70,7 +70,9 @@
70
70
  },
71
71
  "alternatives": {
72
72
  "description": "IDs for features that substitute some or all of this feature's utility",
73
- "items": {},
73
+ "items": {
74
+ "type": "string"
75
+ },
74
76
  "type": "array"
75
77
  }
76
78
  },
package/index.d.ts CHANGED
@@ -1,21 +1,3 @@
1
- interface WebFeaturesData {
2
- /** Browsers and browser release data */
3
- browsers: {
4
- [key in BrowserIdentifier]: BrowserData;
5
- };
6
- /** Feature identifiers and data */
7
- features: {
8
- [key: string]: FeatureData;
9
- };
10
- /** Group identifiers and data */
11
- groups: {
12
- [key: string]: GroupData;
13
- };
14
- /** Snapshot identifiers and data */
15
- snapshots: {
16
- [key: string]: SnapshotData;
17
- };
18
- }
19
1
  /** Browser information */
20
2
  interface BrowserData {
21
3
  /** The name of the browser, as in "Edge" or "Safari on iOS" */
@@ -74,7 +56,7 @@ interface Discouraged {
74
56
  /** Links to a formal discouragement notice, such as specification text, intent-to-unship, etc. */
75
57
  according_to: string[];
76
58
  /** IDs for features that substitute some or all of this feature's utility */
77
- alternatives?: (keyof WebFeaturesData["features"])[];
59
+ alternatives?: string[];
78
60
  }
79
61
  interface GroupData {
80
62
  /** Short name */
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.25.0",
4
+ "version": "2.26.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",