and migrate affected code _last refactoring bits to replace **util.OptionalBool** with **optional.Option[bool]**_
Fixes #25564 Fixes #23191 - Api v2 search endpoint should return only the latest version matching the query - Api v3 search endpoint should return `take` packages not package versions