avancement planning

This commit is contained in:
2026-05-26 11:58:39 +02:00
parent 619a2b240a
commit 150b97cd2e
4892 changed files with 99214 additions and 429382 deletions
+17 -3
View File
@@ -1,3 +1,4 @@
export declare function _resetHasWarned(): void;
type BrowserVersion = {
browser: string;
version: string;
@@ -45,15 +46,22 @@ type Options = {
* an optimal user experience. Defaults to `false`.
*/
includeKaiOS?: boolean;
overrideLastUpdated?: number;
/**
* Pass a boolean to suppress the warning about stale data.
* Defaults to `false`.
*/
suppressWarnings?: boolean;
};
/**
* Returns browser versions compatible with specified Baseline targets.
* Defaults to returning the minimum versions of the core browser set that support Baseline Widely available.
* Takes an optional configuration `Object` with four optional properties:
* - `listAllCompatibleVersions`: `false` (default) or `false`
* - `includeDownstreamBrowsers`: `false` (default) or `false`
* - `listAllCompatibleVersions`: `false` (default) or `true`
* - `includeDownstreamBrowsers`: `false` (default) or `true`
* - `widelyAvailableOnDate`: date in format `YYYY-MM-DD`
* - `targetYear`: year in format `YYYY`
* - `supressWarnings`: `false` (default) or `true`
*/
export declare function getCompatibleVersions(userOptions?: Options): BrowserVersion[];
type AllVersionsOptions = {
@@ -78,13 +86,19 @@ type AllVersionsOptions = {
* consideration beyond simple feature compatibility to provide an optimal user experience.
*/
includeKaiOS?: boolean;
/**
* Pass a boolean to suppress the warning about old data.
* Defaults to `false`.
*/
suppressWarnings?: boolean;
};
/**
* Returns all browser versions known to this module with their level of Baseline support as a JavaScript `Array` (`"array"`), `Object` (`"object"`) or a CSV string (`"csv"`).
* Takes an optional configuration `Object` with three optional properties:
* - `includeDownstreamBrowsers`: `true` (default) or `false`
* - `includeDownstreamBrowsers`: `false` (default) or `true`
* - `outputFormat`: `"array"` (default), `"object"` or `"csv"`
* - `useSupports`: `false` (default) or `true`, replaces `wa_compatible` property with optional `supports` property which returns `widely` or `newly` available when present.
* - `supressWarnings`: `false` (default) or `true`
*/
export declare function getAllVersions(userOptions?: AllVersionsOptions): AllBrowsersBrowserVersion[] | NestedBrowserVersions | string;
export {};