The previous version mixed optional dependency pinning with version pinning logic and missed this case.