Use ~ versioning in composer.json.