Skip to content

Commit

Permalink
update-browser-releases: Ignore Safari 17.6
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed Jul 23, 2024
1 parent cafd468 commit 0d29441
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/update-browser-releases/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down
5 changes: 4 additions & 1 deletion scripts/update-browser-releases/safari.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 0d29441

Please sign in to comment.