Skip to content

Commit c82cbab

Browse files
committed
docs(headless): add MinimumVersions caption and clarify NATIVE_FEATURES comment
1 parent 29ce54b commit c82cbab

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

apps/public-docsite-v9-headless/src/BrowserSupport/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export {
1313
} from './constants';
1414
export {
1515
browserLabel,
16-
compareVersions,
1716
featureLabel,
1817
formatMonthYear,
1918
formatYear,

apps/public-docsite-v9-headless/src/BrowserSupport/utils/getMinimumVersions.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { browsers, features, MATRIX_ORDER } from '../constants';
22
import type { FeatureKey } from '../types';
33

4-
/** Features that ship natively in at least one browser and gate "works by default". */
54
const NATIVE_FEATURES: FeatureKey[] = MATRIX_ORDER;
65

7-
/** Compare dotted numeric versions (e.g. "15.4" vs "116"). Returns >0 if a > b. */
86
export function compareVersions(a: string, b: string): number {
97
const pa = a.split('.').map(Number);
108
const pb = b.split('.').map(Number);
@@ -18,13 +16,6 @@ export function compareVersions(a: string, b: string): number {
1816
return 0;
1917
}
2018

21-
/**
22-
* Per browser, the minimum version where every natively-shipping feature is supported —
23-
* i.e. the MAX of each feature's minimum supporting version. Features that never shipped in a
24-
* browser (e.g. focusgroup, unsupported everywhere) are excluded from that browser's floor and
25-
* surfaced separately as an "always needs a polyfill" caveat in the docs. A browser whose
26-
* considered features are all unsupported yields `null`.
27-
*/
2819
export function getMinimumVersions(): Record<string, string | null> {
2920
const result: Record<string, string | null> = {};
3021

0 commit comments

Comments
 (0)