You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update utopia-php/fetch constraint from ^0.5 to ^1.1.
Move utopia-php/fetch to require-dev because it is only used by the import.php dev utility.
Refresh composer.lock to install utopia-php/fetch1.1.2 as a dev package.
Compatibility
emails uses Utopia\Fetch\Client only in the import.php dev utility script. The script calls Client::fetch(), Client::METHOD_GET, Response::getStatusCode(), and Response::getBody(), which are still available in fetch1.1.2. Runtime consumers of the library do not need fetch installed.
Test Plan
composer validate --strict
composer run lint
composer run check
vendor/bin/phpunit
Notes:
composer audit reports the existing google/protobuf advisory on the default dependency set; this PR only changes utopia-php/fetch.
This PR moves utopia-php/fetch from a production dependency (require) to a dev-only dependency (require-dev) and upgrades it from ^0.5 to ^1.1 (resolved to 1.1.2 in the lock file). The reclassification is correct — the package is only consumed by import.php, a Composer dev-utility script, and is not referenced anywhere in the production source tree.
composer.json: utopia-php/fetch removed from require, added to require-dev at ^1.1.
composer.lock: 0.5.1 entry removed from production packages; 1.1.2 added to dev-packages with an updated content hash.
Confidence Score: 5/5
Safe to merge — the change is a clean dependency reclassification with no impact on production code.
The only file that uses utopia-php/fetch is import.php, a dev utility script, so moving the package to require-dev is correct. No production source files reference the package, and the lock file update is consistent with the manifest change.
No files require special attention.
Important Files Changed
Filename
Overview
composer.json
Moves utopia-php/fetch from require (^0.5) to require-dev (^1.1); correct since the package is only consumed by the dev-only import.php script.
composer.lock
Lock file regenerated: removes utopia-php/fetch 0.5.1 from production packages and adds 1.1.2 to dev-packages; no other dependency changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
utopia-php/fetchconstraint from^0.5to^1.1.utopia-php/fetchtorequire-devbecause it is only used by theimport.phpdev utility.composer.lockto installutopia-php/fetch1.1.2as a dev package.Compatibility
emailsusesUtopia\Fetch\Clientonly in theimport.phpdev utility script. The script callsClient::fetch(),Client::METHOD_GET,Response::getStatusCode(), andResponse::getBody(), which are still available infetch1.1.2. Runtime consumers of the library do not needfetchinstalled.Test Plan
composer validate --strictcomposer run lintcomposer run checkvendor/bin/phpunitNotes:
composer auditreports the existinggoogle/protobufadvisory on the default dependency set; this PR only changesutopia-php/fetch.