You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ To install the package, run:
25
25
]
26
26
```
27
27
28
-
## Get Baseline Widely available browser versions
28
+
## Get Baseline Widely available browser versions or Baseline year browser versions
29
29
30
30
To get the current list of minimum browser versions compatible with Baseline Widely available features from the core browser set, call the `getCompatibleVersions()` function:
31
31
@@ -79,7 +79,7 @@ Executed on 7th March 2025, the above code returns the following browser version
79
79
80
80
#### `targetYear`
81
81
82
-
The `targetYear` option returns the minimum browser versions compatible with all interoperable features at the end of the specific calendar year. For example, calling:
82
+
The `targetYear` option returns the minimum browser versions compatible with all **Baseline Newly available**features at the end of the specified calendar year. For example, calling:
83
83
84
84
```javascript
85
85
getCompatibleVersions({
@@ -116,7 +116,7 @@ Returns the following versions:
116
116
117
117
#### `widelyAvailableOnDate`
118
118
119
-
The `widelyAvailableOnDate`options returns the minimum versions compatible with Baseline Widely available on a specified date in the formay `YYYY-MM-DD`:
119
+
The `widelyAvailableOnDate`option returns the minimum versions compatible with Baseline Widely available on a specified date in the formay `YYYY-MM-DD`:
120
120
121
121
```javascript
122
122
getCompatibleVersions({
@@ -125,7 +125,7 @@ getCompatibleVersions({
125
125
```
126
126
127
127
> [!TIP]
128
-
> This can be particularly useful if you provide a versioned library that target Baseline Widely available on each version's release date and want to provide a table of minimum supported browsers in your documentation.
128
+
> This option is useful if you provide a versioned library that targets Baseline Widely available on each version's release date and you need to provide a statement on minimum supported browser versions in your documentation.
129
129
130
130
#### `includeDownstreamBrowsers`
131
131
@@ -141,7 +141,7 @@ For more information on downstream browsers, see [the section on downstream brow
141
141
142
142
#### `listAllCompatibleVersions`
143
143
144
-
If you need a list of all compatible versions, pass an object with the `listAllCompatibleVersions`:
144
+
Setting `listAllCompatibleVersions` to true will include the minimum versions of each compatible browser, and all the subsequent versions:
145
145
146
146
```javascript
147
147
getCompatibleVersions({
@@ -196,7 +196,7 @@ getAllVersions({
196
196
});
197
197
```
198
198
199
-
Downstream browsers include the same properties as core browsers, as well as the enginethey use and which version of that engine they implement, for example:
199
+
Downstream browsers include the same properties as core browsers, as well as the `engine`they use and `engine_version`, for example:
`Mozilla/5.0 (Linux; arm_64; Android 11; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.123 YaBrowser/24.10.2.123.00 SA/3 Mobile Safari/537.36`
258
258
259
-
Shows Yandex Browser Mobile 24.10 implementing Chromium 128. The Chromium version from this string is mapped to the main Chrome version from MDN `browser-compat-data`.
259
+
Shows Yandex Browser Mobile 24.10 implementing Chromium 128. The Chromium version from this string is mapped to the corresponding Chrome version from MDN `browser-compat-data`.
260
260
261
261
> [!NOTE]
262
262
> Where possible, approximate release dates have been included based on useragents.io "first seen" data. useragents.io does not have "first seen" dates prior to June 2020. However, these browsers' Baseline compatibility is determined by their Chromium version, so their release dates are more informative than critical.
@@ -284,7 +284,3 @@ This data is updated on a daily basis using a [script](https://github.com/web-pl
284
284
285
285
> [!NOTE]
286
286
> All the non-core browsers currently included implement Chromium. Their inclusion in any of the above methods is based on the Baseline feature set supported by the Chromium version they implement, not their release date.
287
-
288
-
## Contributing
289
-
290
-
`baseline-browser-mapping` is part of the W3C WebDX Community Group's web-features project. To learn more about contributing to this module, see [CONTRIBUTING](/CONTRIBUTING.md).
0 commit comments