Block Safari 14, deprecate Safari 15 (#23740)

GitOrigin-RevId: ef1506bc58982c4fb8286d48137ca9c8557ee1a0
This commit is contained in:
Alf Eaton
2025-02-21 13:21:54 +00:00
committed by Copybot
parent cce1406e1c
commit 88d1f4757a
4 changed files with 9 additions and 5 deletions

View File

@@ -1007,7 +1007,7 @@ module.exports = {
unsupportedBrowsers: {
ie: '<=11',
safari: '<=13',
safari: '<=14',
},
// ID of the IEEE brand in the rails app

View File

@@ -6,7 +6,7 @@ import Bowser from 'bowser'
export const isDeprecatedBrowser = () => {
const parser = Bowser.getParser(window.navigator.userAgent)
return parser.satisfies({
safari: '~14',
safari: '~15',
})
}

View File

@@ -67,7 +67,7 @@
"browserslist": [
"defaults and supports woff2",
"last 1 year",
"safari > 13"
"safari > 14"
],
"dependencies": {
"@contentful/rich-text-html-renderer": "^16.0.2",

View File

@@ -14,6 +14,10 @@ const unsupportedUserAgents = new Map([
'Safari 13',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_12_2) AppleWebKit/629.24.7 (KHTML, like Gecko) Version/13.0.26 Safari/629.24.7',
],
[
'Safari 14',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_5_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15',
],
])
const supportedUserAgents = new Map([
@@ -30,8 +34,8 @@ const supportedUserAgents = new Map([
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0',
],
[
'Safari 14',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_5_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15',
'Safari 15',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15',
],
[
'Safari 17',