browserslist: Browserlist is not consisting

Hi,

I’ve always use the following config:

"browserslist": [
    "last 2 versions",
    "> 0.5%",
    "not ie 11",
    "not ie_mob 11",
    "not op_mini all",
    "not dead"
  ]

Since today it returns me a strange result:

Screenshot 2019-06-20 at 23 01 40

As you can see it returns safari 5.1 whereas it shouldn’t.

The same config on browserl.ist doesn’t return safari 5.1 as you can see.

Screenshot 2019-06-20 at 22 57 06

I’m surprise because I haven’t change my browserlist config for while…

Thanks for your help!

Cheers

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Thank you for posting this issue, @jimblue. I was very confused.

Here are the browsers currently returning by default:

[
  "and_chr 75",
  "and_ff 67",
  "and_qq 1.2",
  "and_uc 11.8",
  "android 67",
  "baidu 7.12",
  "chrome 72",
  "chrome 73",
  "chrome 74",
  "chrome 75",
  "edge 17",
  "edge 18",
  "firefox 60",
  "firefox 66",
  "firefox 67",
  "ie 11",
  "ie_mob 11",
  "ios_saf 11.3-11.4",
  "ios_saf 12.0-12.1",
  "ios_saf 12.2",
  "kaios 2.5",
  "op_mini all",
  "op_mob 46",
  "opera 57",
  "opera 58",
  "safari 12",
  "safari 12.1",
  "safari 5.1",
  "samsung 4",
  "samsung 8.2",
  "samsung 9.2"
]

I tried a similar query, > 0.5% and not dead, and these were the results:

[
  "and_chr 75",
  "and_uc 11.8",
  "chrome 72",
  "chrome 73",
  "chrome 74",
  "edge 17",
  "edge 18",
  "firefox 66",
  "ie 11",
  "ios_saf 11.3-11.4",
  "ios_saf 12.0-12.1",
  "ios_saf 12.2",
  "op_mini all",
  "opera 58",
  "safari 12",
  "safari 12.1",
  "safari 5.1",
  "samsung 4",
  "samsung 9.2"
]

I think the surprising thing in both results is that not dead is not removing samsung 4 or safari 5.1. I thought both of these browsers would fall under “without official support or updates for 24 months”.

  "browserslist": [
    "last 2 versions and > 0.5%",
    "not ie 11",
    "not ie_mob 11",
    "not op_mini all",
    "not dead"
  ]

This is OR combination.

We are writing it here https://github.com/browserslist/browserslist#query-composition

But you are not the first and seems like people misses it (so it is docs problem). How we can improve docs?

Hm. I will investigate the update status for these browsers few day later.