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?
to your account
When querying since 1970, it will be parsed into the UNIX timestamp 0. On the other hand, in caniuse-lite data, release date of unreleased versions are null.
Now, when processing since query, there is a comparison logic:
null >= 0
I'm not sure whether it's a bug or not. I found this problem when I was implementing since query in browserslist-rs, and currently I implemented this feature/bug as-is: https://github.com/g-plane/browserslist-rs/blob/35ed72f516ab1230d0c102169a9bbe25f493fedb/src/queries/since.rs#L53-L62 .
The text was updated successfully, but these errors were encountered:
Wow, crazy bug. Thanks.
I will add special logic for null. We should not use data.releaseDate[v] === null in any since X query.
data.releaseDate[v] === null
Sorry, something went wrong.
No branches or pull requests