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
+46-17Lines changed: 46 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,16 +165,34 @@ By default, this function returns an `Array` of `Objects` and excludes downstrea
165
165
[
166
166
...
167
167
{
168
-
browser:'chrome_android', // Browser name
169
-
version:'68', // Browser version as a string
170
-
release_date:'2018-07-24', // Release date
171
-
year:2019, //Baseline year feature set the version supports
172
-
waCompatible:false//Boolean indicating whether the version is compatible with Baseline Widely available
168
+
browser:"firefox_android", // Browser name
169
+
version:"125", // Browser version
170
+
release_date:"2024-04-16", // Release date
171
+
year:2023, //Baseline year feature set the version supports
172
+
wa_compatible:true//Whether the browser version supports Widely available
173
173
},
174
174
...
175
175
]
176
176
```
177
177
178
+
### Understanding which browsers support Newly available features
179
+
180
+
You may want to understand which recent browser versions support all Newly available features. You can replace the `wa_compatible` property with a `supports` property using the `useSupport` option:
181
+
182
+
```javascript
183
+
getAllVersions({
184
+
useSupports:true,
185
+
});
186
+
```
187
+
188
+
The `supports` property has three possible values:
189
+
190
+
-`year_only` for browser versions that do not support all Baseline Widely available Newly Available features.
191
+
-`widely` for browser versions that support all Widely available features.
192
+
-`newly` for browser versions that support all Newly available features.
193
+
194
+
Browser versions that support all Newly available features also support all Widely available features.
195
+
178
196
### `getAllVersions()` Configuration options
179
197
180
198
`getAllVersions()` accepts an `Object` as an argument with configuration options. The defaults are as follows:
@@ -202,13 +220,13 @@ Downstream browsers include the same properties as core browsers, as well as the
202
220
[
203
221
...
204
222
{
205
-
"browser":"samsunginternet_android",
206
-
"version":"18.0",
207
-
"release_date":"2022-08-08",
208
-
"engine":"Blink",
209
-
"engine_version":"99",
210
-
"year":2021,
211
-
"waCompatible":false
223
+
browser:"samsunginternet_android",
224
+
version:"27.0",
225
+
release_date:"2024-11-06",
226
+
engine:"Blink",
227
+
engine_version:"125",
228
+
year:2023,
229
+
supports:"widely"
212
230
},
213
231
...
214
232
]
@@ -233,7 +251,7 @@ In thise case, `getAllVersions()` returns a nested object with the browser [IDs
233
251
"chrome": {
234
252
"53": {
235
253
"year":2016,
236
-
"wa_compatible":false,
254
+
"supports":"year_only",
237
255
"release_date":"2016-09-07"
238
256
},
239
257
...
@@ -248,7 +266,7 @@ Downstream browsers will include extra fields for `engine` and `engine_versions`
248
266
"webview_android": {
249
267
"53": {
250
268
"year":2016,
251
-
"waCompatible":false,
269
+
"supports":"year_only",
252
270
"release_date":"2016-09-07",
253
271
"engine":"Blink",
254
272
"engine_version":"53"
@@ -268,10 +286,13 @@ getAllVersions({
268
286
`getAllVersions` returns a `String` with a header row and comma-separated values for each browser version that you can write to a file or pass to another service. Core browsers will have "NULL" as the value for their `engine` and `engine_version`:
0 commit comments