New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom usage data produce invalid output? #740
Comments
Hm, strange. I will look when after my vacation. |
that is maybe true in certain browsers, but I also see modern |
Avoiding using The main difference between Browserslist built-in data and your custom data, that you have separated versions for Android Chrome. (Can I Use data is packed in a crazy way, I'm afraid that we will not have a solution with expected result in any case. It is better to add hack to your custom data.) |
@ai any recommendations? E.g. if I have these
should I change the latter to add android numbers on top and remove
And perhaps the same for the firefox. |
The minimum is just to have a single version of |
I see. In my case to fix the problem I had to increment the versions in the
(107 -> 108 and 106 -> 107 correspondingly). That's due that the below output is the content of the generated supported browsers, so I had to match these signatures:
For additional context - I used to download CSV files from GA and then generate the |
I'm not sure this is a valid bug or just an expected design (or even I write bad configuration), but I notice there is a possible incorrect output when using custom usage data with
supports
query. For example I attempt to run the browserslist with this custom usage data combined with below query:The output seems invalid? Because there is some "modern" browsers that if I refer to the caniuse they potentially already have support with
es6
.But, if I change the query using region usage statistic, it will have different output and I think this is the correct output comparing with previous result:
I have created reproducible code if you are interested to hack around
https://stackblitz.com/edit/coba-browserlist-hpznb3?file=index.js
The text was updated successfully, but these errors were encountered: