mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 01:10:02 +02:00
chore(biome): update biome rules
This commit is contained in:
parent
78627c7749
commit
017cb2a7f5
45 changed files with 589 additions and 596 deletions
|
@ -1,41 +1,41 @@
|
|||
import releaseNotesStable from "./release-notes/stable.json";
|
||||
import releaseNotesStable from './release-notes/stable.json'
|
||||
|
||||
interface FixWithIssue {
|
||||
description: string;
|
||||
issue?: number;
|
||||
description: string
|
||||
issue?: number
|
||||
}
|
||||
|
||||
type Fix = string | FixWithIssue;
|
||||
type Fix = string | FixWithIssue
|
||||
|
||||
export type BreakingChange = string | { description: string; link: string };
|
||||
export type BreakingChange = string | { description: string; link: string }
|
||||
|
||||
export interface ReleaseNote {
|
||||
version: string;
|
||||
date?: string; // optional for twilight
|
||||
extra?: string;
|
||||
image?: boolean;
|
||||
fixes?: Fix[];
|
||||
features?: string[];
|
||||
breakingChanges?: BreakingChange[];
|
||||
themeChanges?: string[];
|
||||
inProgress?: boolean;
|
||||
workflowId?: number;
|
||||
isTwilight?: boolean;
|
||||
version: string
|
||||
date?: string // optional for twilight
|
||||
extra?: string
|
||||
image?: boolean
|
||||
fixes?: Fix[]
|
||||
features?: string[]
|
||||
breakingChanges?: BreakingChange[]
|
||||
themeChanges?: string[]
|
||||
inProgress?: boolean
|
||||
workflowId?: number
|
||||
isTwilight?: boolean
|
||||
}
|
||||
|
||||
export const releaseNotes: ReleaseNote[] = releaseNotesStable.reverse();
|
||||
export { default as releaseNotesTwilight } from "./release-notes/twilight.json";
|
||||
export const releaseNotes: ReleaseNote[] = releaseNotesStable.reverse()
|
||||
export { default as releaseNotesTwilight } from './release-notes/twilight.json'
|
||||
|
||||
export function getReleaseNoteFirefoxVersion(releaseNote: ReleaseNote): string | null {
|
||||
// Check if "firefox" is on the feature list
|
||||
for (const feature of releaseNote.features || []) {
|
||||
if (feature.toLowerCase().includes("firefox")) {
|
||||
if (feature.toLowerCase().includes('firefox')) {
|
||||
// may be X or X.X or X.X.X
|
||||
const match = feature.match(/(\d+(\.\d+){0,2})/);
|
||||
const match = feature.match(/(\d+(\.\d+){0,2})/)
|
||||
if (match) {
|
||||
return match[0];
|
||||
return match[0]
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue