There was no .browserslistrc and no browserslist key, so the build had been resolving browserslist's defaults - 32 entries including and_qq, and_uc, op_mini and Chrome 109. The new file states the policy as version floors, so the build moves only when we move it: chrome >= 131 (November 2024) edge >= 131 (November 2024, Chromium numbering) firefox >= 128 (July 2024, the ESR - corporate pins it) safari >= 17 (September 2023, and iOS 17 with it) not dead With those targets stated, src/polyfills.ts no longer needs the fifteen core-js ES6/ES7 imports it carried from the IE era, and nothing else in src imports core-js, so the dependency goes too (package.json, package-lock.json and the angular.json commonjs allow-list). Measured on the same tree: polyfills.js 155,341 -> 93,953 bytes raw (-39.5%), gzip 47,819 -> 25,767 (-46%, about 22 KiB per visit on every route); main.js unchanged. BREAKING CHANGE: the supported browsers are now Chrome/Edge 131+, Firefox 128+ and Safari/iOS 17+. A client on Chrome 110 or Safari 16 no longer gets the shims and is not supported.
25 lines
951 B
Plaintext
25 lines
951 B
Plaintext
# Browsers Data Controller supports.
|
|
#
|
|
# The policy is the last one to two years of the four engines our estates
|
|
# actually run - Edge first (most of our users), then Chrome, Firefox and
|
|
# Safari. Nothing older, and no IE: the security updates of the last six months
|
|
# are a fair reason to expect an evergreen browser, and Angular cannot run on
|
|
# EdgeHTML or IE anyway.
|
|
#
|
|
# Version floors rather than `last 2 versions`: a floor is a statement we can
|
|
# test against, and it does not move the build every time an engine ships.
|
|
# Roughly two years back from late 2026:
|
|
#
|
|
# chrome 131 November 2024
|
|
# edge 131 November 2024 (Chromium, same numbering)
|
|
# firefox 128 July 2024 (the ESR, kept because corporate pins it)
|
|
# safari 17 September 2023 (and iOS 17, which ships with it)
|
|
#
|
|
# Move these deliberately, with the release dates, when the window moves.
|
|
chrome >= 131
|
|
edge >= 131
|
|
firefox >= 128
|
|
safari >= 17
|
|
ios_saf >= 17
|
|
not dead
|