Skip to content

refactor(storage, domains, cdn, fastly): use client 0.5's names - #347

Merged
ChiragAgg5k merged 1 commit into
mainfrom
refactor/client-0.5-names
Sep 24, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
refactor/client-0.5-names

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

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.

Package Constraint Files
storage ^0.4 → ^0.5 S3 and the five S3-family devices, one test, README
domains ^0.4.3 → ^0.5 registrar adapter, README
cdn ^0.4 → ^0.5 Fastly and Cloudflare certificate providers and cache adapters
fastly ^0.4 → ^0.5 client, README

The only changes are Utopia\Client → Utopia\Client\Client and Utopia\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 valid
  • bin/monorepo check storage domains cdn fastly: pass
  • bin/monorepo test: storage 119 unit plus 32 S3 e2e; domains 52 plus 54 skipped e2e-style; cdn 91; fastly 4

Follow-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.php in its next major, cut from appwrite/appwrite.

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.
@walter-o-brien

walter-o-brien Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🔍 OpenCodeReview found 1 issue(s) in this PR.

  • ✅ Successfully posted inline: 1 comment(s)

use Utopia\Client\Client as HttpClient;
use Utopia\Client\Decorator\Retry;
use Utopia\Psr18\StreamingClientInterface;
use Utopia\Client\Psr18\StreamingClientInterface;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other · medium
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.

@ChiragAgg5k
ChiragAgg5k merged commit 2433422 into main Sep 24, 2026
10 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the refactor/client-0.5-names branch September 24, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant