Skip to content

Conversation

@ithinkihaveacat
Copy link

That is, filtering by the boolean value true, rather than the string 'true'.

i.e. filtering by the boolean value true, rather than the string 'true'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is necessary to prevent the boolean true matching 0, etc. This does, however, mean that queries that previously relied upon '' matching 0 will break, but arguably it was a bug that they matched in the first place...

The alternative is to check whether the expected value is a boolean, and only doing the stricter === check if so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant