See this pull request on sodium_compat for context.
If you find yourself in a position where you want to coax Composer into treating sodium_compat as ext-sodium, simply add this project to your dependencies.
composer require paragonie/sodium_compat_ext_sodium