Unexpected parsing of `not` query with Android stats
See original GitHub issueIf you have a browserslist-stats.json
like the following:
{
"android": {
"3": 0,
"4": 0,
"66": 3,
"2.1": 0,
"2.2": 0,
"2.3": 0,
"4.1": 0,
"4.2-4.3": 0,
"4.4": 0.0008008986082384436,
"4.4.3-4.4.4": 0
},
"and_chr": {
"66": 3
},
"firefox": {
"57": 0.01121258051533821,
"58": 0.0014015725644172762,
"59": 0.04695268090797875,
"60": 0.10922254769851773,
"61": 5.358712475397396,
"62": 1.956895636904607,
"3.5": 0,
"3.6": 0
}
}
And a browserslist config like so:
[production]
> 0.5% in my stats
not android <= 66
not and_chr <= 66
not firefox <= 62
The output of npx browserslist
is
and_chr 66
android 66
As you expect to see, it excludes all versions of Firefox (specifically versions 62 and lower) even though they’re greater than 0.5% in stats, however, Android version 66 is still being targeted.
The expected output with this example config would be no targets whatsoever.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Unexpected character encountered while parsing value
I was using JsonConvert.DeserializeObject to deserialize response which is string and not json. Hence it was throwing the above error. – Bijay Nandagiri....
Read more >CameraCharacteristics - Android Developers
When obtained by a client that does not hold the CAMERA permission, some metadata values are not included. The list of keys that...
Read more >Parse LiveQuery client for Android. - GitHub
To solve this problem, we introduce Parse LiveQuery. This tool allows you to subscribe to a ParseQuery you are interested in. Once subscribed,...
Read more >Error handling - Apollo GraphQL Docs
A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ...
Read more >SQL Expression Parsing Error - GIS Stack Exchange
I try to find out how many countries start with a 'd' and have a 'n' in their name using the query. When...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OH 😦 I hate instability of
caniuse-db
😦I will think
Got you. I asked about
android 66
.I will look at it this week.
If you want to fix it faster, you can debug it yourself (it is simple few files project).