From 0d29441f426406c172cb088990c6cf61f25b4e88 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Tue, 23 Jul 2024 03:44:55 -0700 Subject: [PATCH] update-browser-releases: Ignore Safari 17.6 --- scripts/update-browser-releases/index.ts | 4 ++-- scripts/update-browser-releases/safari.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/update-browser-releases/index.ts b/scripts/update-browser-releases/index.ts index 9fdd02cfbe1c89..c72730c5682ff9 100644 --- a/scripts/update-browser-releases/index.ts +++ b/scripts/update-browser-releases/index.ts @@ -167,7 +167,7 @@ const options = { browserName: 'Safari for Desktop', bcdFile: './browsers/safari.json', bcdBrowserName: 'safari', - skippedReleases: [], + skippedReleases: ['17.6'], releaseNoteJSON: 'https://developer.apple.com/tutorials/data/documentation/safari-release-notes.json', releaseNoteURLBase: 'https://developer.apple.com', @@ -176,7 +176,7 @@ const options = { browserName: 'Safari for iOS', bcdFile: './browsers/safari_ios.json', bcdBrowserName: 'safari_ios', - skippedReleases: ['12.1', '13.1', '14.1'], + skippedReleases: ['12.1', '13.1', '14.1', '17.6'], releaseNoteJSON: 'https://developer.apple.com/tutorials/data/documentation/safari-release-notes.json', releaseNoteURLBase: 'https://developer.apple.com', diff --git a/scripts/update-browser-releases/safari.ts b/scripts/update-browser-releases/safari.ts index 41ad57bc66d732..bbbaf5d0362458 100644 --- a/scripts/update-browser-releases/safari.ts +++ b/scripts/update-browser-releases/safari.ts @@ -107,7 +107,10 @@ export const updateSafariReleases = async (options) => { // const dates: string[] = []; releaseData.forEach((release) => { - if (release.channel !== 'beta') { + if ( + release.channel !== 'beta' && + !options.skippedReleases.includes(release.version) + ) { dates.push(release.date); } });