Skip to content

refactor(client)!: remove the aliases for the pre-0.5 names - #13883

Merged
ChiragAgg5k merged 6 commits into
mainfrom
refactor/remove-client-shim
Sep 24, 2026
Merged

ChiragAgg5k merged 6 commits into
mainfrom
refactor/remove-client-shim

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Finishes client's namespace move. client 0.5 moved Utopia\Client to Utopia\Client\Client and Utopia\Psr18\StreamingClientInterface to Utopia\Client\Psr18\StreamingClientInterface, and kept the old names as aliases until every consumer moved. They all have now, so the aliases go and client can release 0.6.0.

  1. chore(deps): take the client 0.5 releases of storage, domains, cdn, usage and sdk-for-php

    Package Before After Change
    utopia-php/storage 4.1.0 4.3.0 refactor(storage, domains, cdn, fastly): use client 0.5's names utopia-php/monorepo#347
    utopia-php/domains 4.2.1 4.3.0 refactor(storage, domains, cdn, fastly): use client 0.5's names utopia-php/monorepo#347
    utopia-php/cdn 0.0.12 0.0.13 refactor(storage, domains, cdn, fastly): use client 0.5's names utopia-php/monorepo#347
    utopia-php/usage 0.16.5 0.16.6 refactor: use utopia-php/client 0.5's names utopia-php/usage#43
    open-runtimes/sdk-for-php 2.0.0 2.1.0 refactor: use utopia-php/client 0.5's names open-runtimes/sdk-for-php#18

    Nothing else in the lock moves. Appwrite had not taken storage 4.2.0 yet, so this bump also brings in these storage changes:

    • write() returns the ETag
    • conditional reads and writes
    • file info and upload listing
    • an explicit Content-Length on every S3 request
    • local-device contract fixes
  2. refactor(client)!: remove the aliases for the pre-0.5 names

    • Deletes packages/client/src/compat.php, CompatTest and its fixture.
    • Drops client's autoload.files entry and, through bin/monorepo autoload, the root files entry.
    • Records the removal in client's changelog and drops the item from the RFC's phase 8 list.

Validation

  • With the bumped lock, nothing under vendor/ references Utopia\Client or Utopia\Psr18 any more. The old name no longer resolves under the root autoloader.
  • bin/monorepo validate and bin/monorepo check client pass.
  • bin/monorepo test client: 185 tests, the 188 before minus the three compat tests
  • --testsuite packages for client, agents, span and messaging: 500 tests pass, 3 skipped.
  • Root PHPStan is clean on every Appwrite file that uses storage, client, domains, usage, cdn or the Open Runtimes SDK.
  • bin/monorepo split client --dry-run → d0ea91b

The e2e matrix exercises storage 4.3 end to end through the Storage, Functions and Sites services.

After merge

Merge with a merge commit, then run bin/monorepo release client 0.6.0.

Part of #13828.

…sage and sdk-for-php

storage 4.3.0, domains 4.3.0, cdn 0.0.13, usage 0.16.6 and
sdk-for-php 2.1.0 import Utopia\Client\Client instead of the alias
client 0.5 kept for the old name. storage also brings 4.2.0, which
Appwrite had not taken yet: ETag from write(), conditional reads and
writes, file info and upload listing, and an explicit Content-Length on
every S3 request.
Every consumer now imports Utopia\Client\Client and
Utopia\Client\Psr18\StreamingClientInterface, so compat.php, its tests
and the root autoload files entry go. This ships as client 0.6.0.
@greptile-apps

greptile-apps Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

No actionable issue was established; the PR appears safe to merge.

Summary

The PR removes the pre-0.5 client aliases, updates dependent packages to releases using the new names, and adjusts an execution test to wait for its record. Since the previous review, it also switches the S3 e2e service from MinIO to Silo.

Reviews (5) · Last reviewed commit: "Merge branch 'main' into refactor/remove..."

Comment thread packages/client/CHANGELOG.md Resolved
The Unreleased section said the aliases remain until the next major
right below the entry that removes them.
@ChiragAgg5k

Copy link
Copy Markdown
Member Author

@greptile review

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → refactor/remove-client-shim (after).

Metric Before After Change
🚀 Requests/sec 184.11 182.56 ⚪ -0.8%
⏱️ Latency P50 92.78 ms 94.19 ms ⚪ +1.5%
⏱️ Latency P95 228.09 ms 223.85 ms ⚪ -1.9%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 94.19 223.85 11,457 182.56 -4.24
Account 182.24 356.66 603 9.99 +12.18
TablesDB 89.74 178.5 6,231 101.14 +8.65
Storage 87.12 187.25 3,015 50.78 -2.61
Functions 137.74 266.06 1,608 27.8 -32.27

Top API waits (after)

API request Max wait (ms)
account.name.update 529.54
account.prefs.update 443.2
functions.variables.delete 430.86
tablesdb.rows.delete 429.71
tablesdb.rows.get 424.36

The router dispatches ExecutionCompleted and responds without waiting
for the record to be stored, so reading the execution once right after
the response raced that write and intermittently got a 404. Poll for it
the way the rest of the suite does.
@ChiragAgg5k
ChiragAgg5k merged commit b866958 into main Sep 24, 2026
65 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the refactor/remove-client-shim branch September 24, 2026 13:38
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.

2 participants