caniuse-db updated their data to rev 1.0.30001022 ( https://github.com/Fyrd/caniuse/commit/a133838cd287d3e807151a4c39ebead7bb3b18b6 ) right after the commit https://github.com/browserslist/browserslist/commit/1e61852c55a31c83520392a61e3d2ad7d6cd0e8c in the issue https://github.com/browserslist/browserslist/issues/437, and the results are drifted instead.
For example, the query last 2 safari versions returns
safari 13
safari TP
instead of
safari 13
safari 12.1
The same applies to most if not all other browsers like Chrome or IE, etc.
I've created a PR to revert it: https://github.com/browserslist/browserslist/pull/438
FYI this is the latest agent data from [email protected]: https://gist.github.com/eligao/56c2d1938d5fd9875262c0c37cc9e33b
And this is the minimal reproducible example: https://codesandbox.io/s/sweet-fog-1xe6e
I saw a huge bump in our CSS prefixes after switching to v4.8.4 too. bundlesize link
It is also breaking https://github.com/amilajack/eslint-plugin-compat because of the Safari TP version matched with this rule. Which is actually the reason why I dug it all the way here.
Tracked this problem here from @babel/preset-env leaving the optional chaining operator un-transpiled when targeting "last 1 chrome version". That query is resolving to chrome 80, which is not yet released.
Same issue with "last 1 Firefox versions" which return an error Unknown version 73 of firefox, because the latest FF stable release is 72.
Some additional testing uncovered a difference for queries passed as argument compared to queries defined in package.json:
Single query as argument:
$ npx browserslist "last 1 Safari major versions"
safari 13
Multiple queries as argument:
$ npx browserslist "last 1 Safari major versions, last 1 iOS major versions"
ios_saf 13.2
ios_saf 13.0-13.1
safari 13
Defined by package.json:
# package.json
# "browserslist": [
# "last 1 Safari major versions",
# "last 1 iOS major versions"
# ]
$ npx browserslist
ios_saf 13.3
ios_saf 13.2
ios_saf 13.0-13.1
safari 13
safari 12.1
safari 12
safari 11.1
safari 11
safari 10.1
safari 10
safari 9.1
safari 9
safari 8
safari 7.1
safari 7
safari 6.1
safari 6
safari 5.1
safari 5
safari 4
safari 3.2
safari 3.1
safari TP
It seems like Can I Use data is inconsistency in terms of stable/unreleased releases.
Sorry, the fix could take a day since hotfix will bring another issue.
Fixed at 4.8.5
If you want to support us, here is release tweet
https://twitter.com/Browserslist/status/1219725386340347905
Here is our Open Collective
https://opencollective.com/browserslist
Most helpful comment
Fixed at 4.8.5