Repository navigation
refactor(storage, domains, cdn, fastly): use client 0.5's names - #347
Merged
Merged
Conversation
utopia-php/client 0.5 moved Utopia\Client and Utopia\Psr18\StreamingClientInterface under Utopia\Client and keeps the old names only as aliases until its next major. These packages now require ^0.5 and import the new names, so client can drop the aliases.
ChiragAgg5k
requested review from
Meldiron,
abnegate,
eldadfux,
lohanidamodar and
loks0n
as code owners
September 24, 2026 12:13
|
🔍 OpenCodeReview found 1 issue(s) in this PR.
|
| use Utopia\Client\Client as HttpClient; | ||
| use Utopia\Client\Decorator\Retry; | ||
| use Utopia\Psr18\StreamingClientInterface; | ||
| use Utopia\Client\Psr18\StreamingClientInterface; |
There was a problem hiding this comment.
This changes the public constructor's client intersection type (and the corresponding AWS/Backblaze/DOSpaces/Linode/Wasabi constructors) from Utopia\Psr18\StreamingClientInterface to a different FQCN. Consumers injecting custom clients that implement only the old interface will now get a TypeError; this is a breaking API change and should be handled/released as such, or supported through a compatibility path.
30 of 34 tasks
This was referenced Sep 24, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Moves the last monorepo consumers of client's pre-0.5 names to the new ones, so client can drop its alias shim at its next major.
^0.4→^0.5^0.4.3→^0.5^0.4→^0.5^0.4→^0.5The only changes are
Utopia\Client→Utopia\Client\ClientandUtopia\Psr18\StreamingClientInterface→Utopia\Client\Psr18\StreamingClientInterface, plus Pint's import re-sorting. Behaviour is identical, because the old names are aliases of these classes in 0.5.Validation
All runs resolve client from Packagist, where 0.5.1 is current:
bin/monorepo validate: all packages validbin/monorepo check storage domains cdn fastly: passbin/monorepo test: storage 119 unit plus 32 S3 e2e; domains 52 plus 54 skipped e2e-style; cdn 91; fastly 4Follow-up
Release each package once merged. Appwrite then picks up storage, domains and cdn. With usage and open-runtimes/sdk-for-php (separate PRs), that clears every consumer of the old names, and client can remove
compat.phpin its next major, cut from appwrite/appwrite.