For the sake of others who end up on this page, the updated syntax is now
Username.or({username: @username}, {email: @email})
Please refer to the updated docs or relevant impl.
For the sake of others who end up on this page, the updated syntax is now
Username.or({username: @username}, {email: @email})
Please refer to the updated docs or relevant impl.