baseline-browser-mapping 2.0.0-beta.1 → 2.0.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.
@@ -6,9 +6,25 @@ type BrowserVersion = {
6
6
  engine_version?: string;
7
7
  };
8
8
  type Options = {
9
+ /**
10
+ * Whether to include only the minimum compatible browser versions or all compatible versions.
11
+ * Defaults to `false`.
12
+ */
9
13
  listAllCompatibleVersions?: boolean;
14
+ /**
15
+ * Whether to include browsers that use the same engines as a core Baseline browser.
16
+ * Defaults to `false`.
17
+ */
10
18
  includeDownstreamBrowsers?: boolean;
19
+ /**
20
+ * Pass a date in the format 'YYYY-MM-DD' to get versions compatible with Widely available on the specified date.
21
+ * If left undefined and a `targetYear` is not passed, defaults to Widely Available as of the current date.
22
+ */
11
23
  widelyAvailableOnDate?: string | number;
24
+ /**
25
+ * Pass a year between 2016 and the current year to get browser versions compatible with all
26
+ * Newly Available features as of the end of the year specified.
27
+ */
12
28
  targetYear?: number;
13
29
  };
14
30
  export declare function getCompatibleVersions(userOptions: Options): BrowserVersion[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseline-browser-mapping",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0",
4
4
  "description": "A library for obtaining browser versions with their maximum supported Baseline feature set and Widely Available status.",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -24,5 +24,9 @@
24
24
  "devDependencies": {
25
25
  "@types/node": "^22.13.5",
26
26
  "typescript": "^5.7.2"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/tonypconway/web-features/tree/main/packages/baseline-browser-mapping"
27
31
  }
28
32
  }