question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Browserlist is not consisting

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
jonathantnealcommented, Jul 3, 2019

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”.

2reactions
aicommented, Jun 20, 2019
  "browserslist": [
    "last 2 versions and > 0.5%",
    "not ie 11",
    "not ie_mob 11",
    "not op_mini all",
    "not dead"
  ]
Read more comments on GitHub >

github_iconTop Results From Across the Web

Different behavior of "not" operator in package.json and ...
Browserslist is on 3.2.8, and using not < 1% (with space) not working as well. Still, .browserslistrc and cli (globally, locally) with "last...
Read more >
browserslist - npm
Developers set their version lists using queries like last 2 versions to be free from updating versions manually. Browserslist will use caniuse ...
Read more >
What is the significance of browserslist in package.json ...
Browserslist is a tool that allows specifying which browsers should be supported in your frontend app by specifying "queries" in a config file....
Read more >
node_modules/browserslist · master - PLMlab - CNRS
Developers set their version lists using queries like last 2 versions to be free from updating versions manually. Browserslist will use caniuse-lite with ......
Read more >
browserslist: What Browsers do you need to Support?
Video not working? It looks like your browser may not support the H264 codec. If you're using Linux, try a different browser or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found