From 221e9727dadc8c349874b3d30c53d3da4bb3b28e Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 20 Jul 2026 21:30:51 +1200 Subject: [PATCH] refactor(migrations): adapt migration and deps to main Fold the migration-resource-link schema provisioning and document backfill into main's V25 migration instead of a standalone V25: only the class mapped to the release version (2.0.0 => V25) is executed, so a separate migration would never run. Main's existing V25 collection work is preserved and the migrations-collection attributes/indexes plus the resource-link document backfill are layered on top. Gate the V27 request/response filters on < 2.0.0 (the release the fields ship in) instead of the branch's 1.9.6, keeping the API version aligned with the folded migration. Restore main's utopia-php/auth VCS repository alongside the utopia-php/migration one, keep utopia-php/messaging ^2.0, and regenerate the lock so only utopia-php/migration moves to the resource-selector branch. APP_VERSION_STABLE and the migration version map stay at main's values. Co-Authored-By: Claude Fable 5 --- app/controllers/general.php | 4 +- composer.json | 26 +- composer.lock | 714 ++++++++++--------- src/Appwrite/Migration/Version/V25.php | 148 +++- src/Appwrite/Utopia/Request/Filters/V27.php | 2 +- src/Appwrite/Utopia/Response/Filters/V27.php | 2 +- 6 files changed, 525 insertions(+), 371 deletions(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 47b4ecd097..18f252458e 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -919,7 +919,7 @@ Http::init() if (version_compare($requestFormat, '1.9.5', '<')) { $request->addFilter(new RequestV26()); } - if (version_compare($requestFormat, '1.9.6', '<')) { + if (version_compare($requestFormat, '2.0.0', '<')) { $request->addFilter(new RequestV27()); } } @@ -946,7 +946,7 @@ Http::init() */ $responseFormat = $request->getHeaderLine('x-appwrite-response-format', System::getEnv('_APP_SYSTEM_RESPONSE_FORMAT', '')); if ($responseFormat) { - if (version_compare($responseFormat, '1.9.6', '<')) { + if (version_compare($responseFormat, '2.0.0', '<')) { $response->addFilter(new ResponseV27()); } if (version_compare($responseFormat, '1.9.5', '<')) { diff --git a/composer.json b/composer.json index 639cae1ffe..228d754f57 100644 --- a/composer.json +++ b/composer.json @@ -38,13 +38,17 @@ "minimum-stability": "dev", "prefer-stable": true, "repositories": [ + { + "type": "vcs", + "url": "https://github.com/utopia-php/auth" + }, { "type": "vcs", "url": "https://github.com/utopia-php/migration" } ], "require": { - "php": ">=8.3.0", + "php": ">=8.5.0", "ext-curl": "*", "ext-imagick": "*", "ext-mbstring": "*", @@ -62,14 +66,14 @@ "utopia-php/abuse": "1.4.*", "utopia-php/agents": "2.*", "utopia-php/analytics": "0.15.*", - "utopia-php/audit": "2.6.*", - "utopia-php/auth": "^0.7", - "utopia-php/cache": "^3.0", + "utopia-php/audit": "2.9.*", + "utopia-php/auth": "^0.10", + "utopia-php/cache": "^3.0.0", "utopia-php/cli": "^0.24", "utopia-php/compression": "0.1.*", "utopia-php/config": "1.*", "utopia-php/console": "0.1.*", - "utopia-php/database": "6.0.*", + "utopia-php/database": "^6.0.0", "utopia-php/detector": "0.2.*", "utopia-php/domains": "^2.2", "utopia-php/emails": "0.7.*", @@ -77,24 +81,24 @@ "utopia-php/dsn": "0.2.1", "utopia-php/http": "^2.0@RC", "utopia-php/fetch": "^1.1", - "utopia-php/validators": "0.2.*", + "utopia-php/validators": "0.3.*", "utopia-php/image": "0.8.*", "utopia-php/locale": "0.8.*", "utopia-php/lock": "0.2.*", "utopia-php/logger": "0.8.*", - "utopia-php/messaging": "^1.2", + "utopia-php/messaging": "^2.0", "utopia-php/migration": "dev-feat/drop-compound-resource-id#7ed62ca2e2279bf30fa2018655e045c59bb5bc3d as 1.17.3", "utopia-php/platform": "^1.0@RC", "utopia-php/pools": "1.*", "utopia-php/span": "3.0.*", "utopia-php/preloader": "0.2.*", - "utopia-php/queue": "^0.21", + "utopia-php/queue": "^0.22", "utopia-php/servers": "0.4.*", "utopia-php/registry": "0.5.*", "utopia-php/storage": "2.*", "utopia-php/system": "0.10.*", "utopia-php/telemetry": "^0.4", - "utopia-php/vcs": "4.*", + "utopia-php/vcs": "^4.4.2", "utopia-php/websocket": "1.0.*", "matomo/device-detector": "6.4.*", "dragonmantank/cron-expression": "3.4.*", @@ -104,7 +108,9 @@ "spomky-labs/otphp": "11.*", "webonyx/graphql-php": "15.32.*", "league/csv": "9.14.*", - "enshrined/svg-sanitize": "0.22.*" + "enshrined/svg-sanitize": "0.22.*", + "utopia-php/client": "^0.2.2", + "open-runtimes/sdk-for-php": "^0.4.0" }, "require-dev": { "ext-fileinfo": "*", diff --git a/composer.lock b/composer.lock index 673731619d..c3b90792c9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "de9b7927d2e0c923329b782e737ab716", + "content-hash": "de6d55bb252b6063fe98964392cbc80a", "packages": [ { "name": "adhocore/jwt", @@ -216,23 +216,22 @@ }, { "name": "brick/math", - "version": "0.14.8", + "version": "0.18.0", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "63422359a44b7f06cae63c3b429b59e8efcc0629" + "reference": "82944324d1c1bdb2c2618e89978d4e2ad78d69ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/63422359a44b7f06cae63c3b429b59e8efcc0629", - "reference": "63422359a44b7f06cae63c3b429b59e8efcc0629", + "url": "https://api.github.com/repos/brick/math/zipball/82944324d1c1bdb2c2618e89978d4e2ad78d69ad", + "reference": "82944324d1c1bdb2c2618e89978d4e2ad78d69ad", "shasum": "" }, "require": { "php": "^8.2" }, "require-dev": { - "php-coveralls/php-coveralls": "^2.2", "phpstan/phpstan": "2.1.22", "phpunit/phpunit": "^11.5" }, @@ -264,7 +263,7 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.14.8" + "source": "https://github.com/brick/math/tree/0.18.0" }, "funding": [ { @@ -272,7 +271,7 @@ "type": "github" } ], - "time": "2026-02-10T14:33:43+00:00" + "time": "2026-06-14T18:21:03+00:00" }, { "name": "chillerlan/php-qrcode", @@ -606,84 +605,6 @@ }, "time": "2025-08-12T10:13:48+00:00" }, - { - "name": "giggsey/libphonenumber-for-php-lite", - "version": "9.0.23", - "source": { - "type": "git", - "url": "https://github.com/giggsey/libphonenumber-for-php-lite.git", - "reference": "e8f6f896c1bef398136849934a934904bd9bf072" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/e8f6f896c1bef398136849934a934904bd9bf072", - "reference": "e8f6f896c1bef398136849934a934904bd9bf072", - "shasum": "" - }, - "require": { - "php": "^8.1", - "symfony/polyfill-mbstring": "^1.17" - }, - "conflict": { - "giggsey/libphonenumber-for-php": "*" - }, - "require-dev": { - "ext-dom": "*", - "friendsofphp/php-cs-fixer": "^3.71", - "infection/infection": "^0.29|^0.31.0", - "nette/php-generator": "^4.1", - "php-coveralls/php-coveralls": "^2.7", - "phpstan/extension-installer": "^1.4.3", - "phpstan/phpstan": "^2.1.7", - "phpstan/phpstan-deprecation-rules": "^2.0.1", - "phpstan/phpstan-phpunit": "^2.0.4", - "phpstan/phpstan-strict-rules": "^2.0.3", - "phpunit/phpunit": "^10.5.45", - "symfony/console": "^6.4", - "symfony/filesystem": "^6.4", - "symfony/process": "^6.4" - }, - "suggest": { - "giggsey/libphonenumber-for-php": "Use libphonenumber-for-php for geocoding, carriers, timezones and matching" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "9.x-dev" - } - }, - "autoload": { - "psr-4": { - "libphonenumber\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Joshua Gigg", - "email": "giggsey@gmail.com", - "homepage": "https://giggsey.com/" - } - ], - "description": "A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber", - "homepage": "https://github.com/giggsey/libphonenumber-for-php-lite", - "keywords": [ - "geocoding", - "geolocation", - "libphonenumber", - "mobile", - "phonenumber", - "validation" - ], - "support": { - "issues": "https://github.com/giggsey/libphonenumber-for-php-lite/issues", - "source": "https://github.com/giggsey/libphonenumber-for-php-lite" - }, - "time": "2026-01-30T12:33:03+00:00" - }, { "name": "google/protobuf", "version": "v4.33.6", @@ -1224,6 +1145,49 @@ ], "time": "2023-11-08T09:30:43+00:00" }, + { + "name": "open-runtimes/sdk-for-php", + "version": "0.4.0", + "source": { + "type": "git", + "url": "https://github.com/open-runtimes/sdk-for-php.git", + "reference": "02c01ec6c807f43602d93534252e96c9451ecd80" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/open-runtimes/sdk-for-php/zipball/02c01ec6c807f43602d93534252e96c9451ecd80", + "reference": "02c01ec6c807f43602d93534252e96c9451ecd80", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "php": ">=8.4", + "utopia-php/client": "^0.2.2" + }, + "require-dev": { + "laravel/pint": "^1.22", + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^13.1", + "rector/rector": "^2.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "OpenRuntimes\\Orchestrator\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHP SDK for the Open Runtimes orchestrator Jobs API.", + "support": { + "issues": "https://github.com/open-runtimes/sdk-for-php/issues", + "source": "https://github.com/open-runtimes/sdk-for-php/tree/0.4.0" + }, + "time": "2026-07-13T21:55:56+00:00" + }, { "name": "open-telemetry/api", "version": "1.9.0", @@ -2252,20 +2216,20 @@ }, { "name": "ramsey/uuid", - "version": "4.9.2", + "version": "4.9.3", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "8429c78ca35a09f27565311b98101e2826affde0" + "reference": "1df15849d00943a67d677dc9cfd80795f038c9f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/8429c78ca35a09f27565311b98101e2826affde0", - "reference": "8429c78ca35a09f27565311b98101e2826affde0", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/1df15849d00943a67d677dc9cfd80795f038c9f8", + "reference": "1df15849d00943a67d677dc9cfd80795f038c9f8", "shasum": "" }, "require": { - "brick/math": "^0.8.16 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14", + "brick/math": ">=0.8.16 <=0.18", "php": "^8.0", "ramsey/collection": "^1.2 || ^2.0" }, @@ -2324,9 +2288,9 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.9.2" + "source": "https://github.com/ramsey/uuid/tree/4.9.3" }, - "time": "2025-12-14T04:43:48+00:00" + "time": "2026-06-18T03:57:49+00:00" }, { "name": "spomky-labs/otphp", @@ -2400,16 +2364,16 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b" + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/50f59d1f3ca46d41ac911f97a78626b6756af35b", - "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/f3202fa1b5097b0af062dc978b32ecf63404e31d", + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d", "shasum": "" }, "require": { @@ -2447,7 +2411,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.1" }, "funding": [ { @@ -2467,20 +2431,20 @@ "type": "tidelift" } ], - "time": "2026-04-13T15:52:40+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/http-client", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "e8a112b8415707265a7e614278136a9d92989a6a" + "reference": "f6bc6b5a54ff5afac4725cacec9bf2f52eb15920" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/e8a112b8415707265a7e614278136a9d92989a6a", - "reference": "e8a112b8415707265a7e614278136a9d92989a6a", + "url": "https://api.github.com/repos/symfony/http-client/zipball/f6bc6b5a54ff5afac4725cacec9bf2f52eb15920", + "reference": "f6bc6b5a54ff5afac4725cacec9bf2f52eb15920", "shasum": "" }, "require": { @@ -2548,7 +2512,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.4.13" + "source": "https://github.com/symfony/http-client/tree/v7.4.14" }, "funding": [ { @@ -2568,20 +2532,20 @@ "type": "tidelift" } ], - "time": "2026-05-24T09:57:54+00:00" + "time": "2026-06-16T11:50:14+00:00" }, { "name": "symfony/http-client-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/http-client-contracts.git", - "reference": "4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d" + "reference": "41fc42d276aeff21192465331ebbab7d83a743c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d", - "reference": "4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/41fc42d276aeff21192465331ebbab7d83a743c0", + "reference": "41fc42d276aeff21192465331ebbab7d83a743c0", "shasum": "" }, "require": { @@ -2630,7 +2594,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/http-client-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/http-client-contracts/tree/v3.7.1" }, "funding": [ { @@ -2650,7 +2614,7 @@ "type": "tidelift" } ], - "time": "2026-03-06T13:17:50+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -2979,16 +2943,16 @@ }, { "name": "symfony/service-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a" + "reference": "c0a284bab1ed8aa0417e3d69250ab437739563a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d25d82433a80eba6aa0e6c24b61d7370d99e444a", - "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/c0a284bab1ed8aa0417e3d69250ab437739563a0", + "reference": "c0a284bab1ed8aa0417e3d69250ab437739563a0", "shasum": "" }, "require": { @@ -3042,7 +3006,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.7.1" }, "funding": [ { @@ -3062,7 +3026,7 @@ "type": "tidelift" } ], - "time": "2026-03-28T09:44:51+00:00" + "time": "2026-06-16T09:55:08+00:00" }, { "name": "tbachert/spi", @@ -3118,16 +3082,16 @@ }, { "name": "utopia-php/abuse", - "version": "1.4.1", + "version": "1.4.2", "source": { "type": "git", "url": "https://github.com/utopia-php/abuse.git", - "reference": "8f5df0274869cf9022eea7d8030ca1a0d458b3b2" + "reference": "3b527181546d6191ac2d028a2fd1e500ca90f999" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/abuse/zipball/8f5df0274869cf9022eea7d8030ca1a0d458b3b2", - "reference": "8f5df0274869cf9022eea7d8030ca1a0d458b3b2", + "url": "https://api.github.com/repos/utopia-php/abuse/zipball/3b527181546d6191ac2d028a2fd1e500ca90f999", + "reference": "3b527181546d6191ac2d028a2fd1e500ca90f999", "shasum": "" }, "require": { @@ -3135,8 +3099,9 @@ "ext-curl": "*", "ext-pdo": "*", "ext-redis": "*", - "php": ">=8.2", - "utopia-php/database": "^6.0.0" + "php": ">=8.4.1", + "utopia-php/database": "^6.0.0", + "utopia-php/pools": "1.*" }, "require-dev": { "laravel/pint": "1.*", @@ -3164,9 +3129,9 @@ ], "support": { "issues": "https://github.com/utopia-php/abuse/issues", - "source": "https://github.com/utopia-php/abuse/tree/1.4.1" + "source": "https://github.com/utopia-php/abuse/tree/1.4.2" }, - "time": "2026-06-18T11:18:52+00:00" + "time": "2026-06-19T07:18:23+00:00" }, { "name": "utopia-php/agents", @@ -3269,29 +3234,24 @@ }, { "name": "utopia-php/audit", - "version": "2.6.0", + "version": "2.9.0", "source": { "type": "git", "url": "https://github.com/utopia-php/audit.git", - "reference": "f5bb07841e335e9ea7d4bd5860da1f580447014a" + "reference": "322fd475836be6aa20f8e7ec017299ac55b3c8f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/audit/zipball/f5bb07841e335e9ea7d4bd5860da1f580447014a", - "reference": "f5bb07841e335e9ea7d4bd5860da1f580447014a", + "url": "https://api.github.com/repos/utopia-php/audit/zipball/322fd475836be6aa20f8e7ec017299ac55b3c8f4", + "reference": "322fd475836be6aa20f8e7ec017299ac55b3c8f4", "shasum": "" }, "require": { - "php": ">=8.4", + "php": ">=8.5", "utopia-php/database": "^6.0.0", "utopia-php/fetch": "^1.1", "utopia-php/query": "0.1.*", - "utopia-php/validators": "0.2.*" - }, - "require-dev": { - "laravel/pint": "1.*", - "phpstan/phpstan": "1.*", - "phpunit/phpunit": "9.*" + "utopia-php/validators": "0.3.*" }, "type": "library", "autoload": { @@ -3313,22 +3273,22 @@ ], "support": { "issues": "https://github.com/utopia-php/audit/issues", - "source": "https://github.com/utopia-php/audit/tree/2.6.0" + "source": "https://github.com/utopia-php/audit/tree/2.9.0" }, - "time": "2026-06-22T03:33:28+00:00" + "time": "2026-07-15T10:27:51+00:00" }, { "name": "utopia-php/auth", - "version": "0.7.0", + "version": "0.10.0", "source": { "type": "git", "url": "https://github.com/utopia-php/auth.git", - "reference": "22a2cf6ca604e5cc6bf10f0f8240195f0baa063a" + "reference": "fc6e7861a0428415a7454ba808a511cc01bf8db4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/auth/zipball/22a2cf6ca604e5cc6bf10f0f8240195f0baa063a", - "reference": "22a2cf6ca604e5cc6bf10f0f8240195f0baa063a", + "url": "https://api.github.com/repos/utopia-php/auth/zipball/fc6e7861a0428415a7454ba808a511cc01bf8db4", + "reference": "fc6e7861a0428415a7454ba808a511cc01bf8db4", "shasum": "" }, "require": { @@ -3336,7 +3296,7 @@ "ext-openssl": "*", "ext-scrypt": "*", "ext-sodium": "*", - "php": ">=8.1" + "php": ">=8.3" }, "type": "library", "autoload": { @@ -3344,7 +3304,16 @@ "Utopia\\Auth\\": "src/Auth" } }, - "notification-url": "https://packagist.org/downloads/", + "autoload-dev": { + "psr-4": { + "Utopia\\Tests\\Auth\\": "tests/Auth" + } + }, + "scripts": { + "test": [ + "phpunit --configuration phpunit.xml" + ] + }, "license": [ "MIT" ], @@ -3356,29 +3325,29 @@ ], "description": "A simple PHP authentication library", "keywords": [ - "Authentication", "auth", + "authentication", "php", "security" ], "support": { - "issues": "https://github.com/utopia-php/auth/issues", - "source": "https://github.com/utopia-php/auth/tree/0.7.0" + "source": "https://github.com/utopia-php/auth/tree/0.10.0", + "issues": "https://github.com/utopia-php/auth/issues" }, - "time": "2026-06-22T11:58:24+00:00" + "time": "2026-07-15T15:52:58+00:00" }, { "name": "utopia-php/cache", - "version": "3.0.2", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/utopia-php/cache.git", - "reference": "086687d7ae23dd1dae67b943161e8cef143539e1" + "reference": "5c292d4df156f8b008f29fa6b033834b906bf328" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cache/zipball/086687d7ae23dd1dae67b943161e8cef143539e1", - "reference": "086687d7ae23dd1dae67b943161e8cef143539e1", + "url": "https://api.github.com/repos/utopia-php/cache/zipball/5c292d4df156f8b008f29fa6b033834b906bf328", + "reference": "5c292d4df156f8b008f29fa6b033834b906bf328", "shasum": "" }, "require": { @@ -3417,9 +3386,9 @@ ], "support": { "issues": "https://github.com/utopia-php/cache/issues", - "source": "https://github.com/utopia-php/cache/tree/3.0.2" + "source": "https://github.com/utopia-php/cache/tree/3.4.0" }, - "time": "2026-05-19T22:38:16+00:00" + "time": "2026-07-01T15:44:35+00:00" }, { "name": "utopia-php/circuit-breaker", @@ -3485,16 +3454,16 @@ }, { "name": "utopia-php/cli", - "version": "0.24.1", + "version": "0.24.3", "source": { "type": "git", "url": "https://github.com/utopia-php/cli.git", - "reference": "ba1eabbbfa56f0936de7455a26dcd1afc3246636" + "reference": "d6a27f2902e777c2985e834ffb3e662130fd7ecc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cli/zipball/ba1eabbbfa56f0936de7455a26dcd1afc3246636", - "reference": "ba1eabbbfa56f0936de7455a26dcd1afc3246636", + "url": "https://api.github.com/repos/utopia-php/cli/zipball/d6a27f2902e777c2985e834ffb3e662130fd7ecc", + "reference": "d6a27f2902e777c2985e834ffb3e662130fd7ecc", "shasum": "" }, "require": { @@ -3526,22 +3495,79 @@ ], "support": { "issues": "https://github.com/utopia-php/cli/issues", - "source": "https://github.com/utopia-php/cli/tree/0.24.1" + "source": "https://github.com/utopia-php/cli/tree/0.24.3" }, - "time": "2026-06-10T16:25:51+00:00" + "time": "2026-06-26T10:48:18+00:00" }, { - "name": "utopia-php/compression", - "version": "0.1.5", + "name": "utopia-php/client", + "version": "0.2.3", "source": { "type": "git", - "url": "https://github.com/utopia-php/compression.git", - "reference": "d39208e3f0f3ad0a793e8023046eb2e69b57bae3" + "url": "https://github.com/utopia-php/client.git", + "reference": "377dc1f79441ac1584f25dba57904ee1cf0f626b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/compression/zipball/d39208e3f0f3ad0a793e8023046eb2e69b57bae3", - "reference": "d39208e3f0f3ad0a793e8023046eb2e69b57bae3", + "url": "https://api.github.com/repos/utopia-php/client/zipball/377dc1f79441ac1584f25dba57904ee1cf0f626b", + "reference": "377dc1f79441ac1584f25dba57904ee1cf0f626b", + "shasum": "" + }, + "require": { + "php": ">=8.5", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "utopia-php/pools": "^1.0", + "utopia-php/psr7": "^0.2", + "utopia-php/span": "^1.1 || ^3.0 || ^4.0" + }, + "require-dev": { + "swoole/ide-helper": "^6.0" + }, + "suggest": { + "ext-curl": "Required to use the cURL HTTP client adapter.", + "ext-simplexml": "Required to decode XML responses with Response::xml().", + "ext-swoole": "Required to use the Swoole coroutine HTTP client adapter." + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A lightweight PSR-18 HTTP client with cURL and Swoole coroutine backends", + "keywords": [ + "client", + "curl", + "http", + "php", + "psr-18", + "swoole", + "utopia" + ], + "support": { + "issues": "https://github.com/utopia-php/client/issues", + "source": "https://github.com/utopia-php/client/tree/0.2.3" + }, + "time": "2026-07-13T15:29:09+00:00" + }, + { + "name": "utopia-php/compression", + "version": "0.1.7", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/compression.git", + "reference": "655adbd2e42ba28f3148e0aaaf03a68dd6a1bd44" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/compression/zipball/655adbd2e42ba28f3148e0aaaf03a68dd6a1bd44", + "reference": "655adbd2e42ba28f3148e0aaaf03a68dd6a1bd44", "shasum": "" }, "require": { @@ -3575,9 +3601,9 @@ ], "support": { "issues": "https://github.com/utopia-php/compression/issues", - "source": "https://github.com/utopia-php/compression/tree/0.1.5" + "source": "https://github.com/utopia-php/compression/tree/0.1.7" }, - "time": "2026-06-10T15:38:47+00:00" + "time": "2026-06-26T10:48:18+00:00" }, { "name": "utopia-php/config", @@ -3676,16 +3702,16 @@ }, { "name": "utopia-php/database", - "version": "6.0.0", + "version": "6.4.3", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "fff9f0effbd40359ff925741ff9424856d8b4fde" + "reference": "d5ebecc2f4518329e3e1c5ded3769638908c78ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/fff9f0effbd40359ff925741ff9424856d8b4fde", - "reference": "fff9f0effbd40359ff925741ff9424856d8b4fde", + "url": "https://api.github.com/repos/utopia-php/database/zipball/d5ebecc2f4518329e3e1c5ded3769638908c78ba", + "reference": "d5ebecc2f4518329e3e1c5ded3769638908c78ba", "shasum": "" }, "require": { @@ -3693,12 +3719,12 @@ "ext-mongodb": "*", "ext-pdo": "*", "ext-redis": "*", - "php": ">=8.4", - "utopia-php/cache": "^3.0", + "php": ">=8.5", + "utopia-php/cache": "^3.1.0", "utopia-php/console": "0.1.*", "utopia-php/mongo": "1.*", "utopia-php/pools": "1.*", - "utopia-php/validators": "0.2.*" + "utopia-php/validators": "0.3.*" }, "require-dev": { "fakerphp/faker": "1.23.*", @@ -3730,22 +3756,22 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/6.0.0" + "source": "https://github.com/utopia-php/database/tree/6.4.3" }, - "time": "2026-06-18T10:37:40+00:00" + "time": "2026-07-13T13:24:23+00:00" }, { "name": "utopia-php/detector", - "version": "0.2.4", + "version": "0.2.6", "source": { "type": "git", "url": "https://github.com/utopia-php/detector.git", - "reference": "a564381108518ce6d18b6ab441f1448bd8355afd" + "reference": "2b2744be7ea028307dc9352eeec109cd1f9ab2d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/detector/zipball/a564381108518ce6d18b6ab441f1448bd8355afd", - "reference": "a564381108518ce6d18b6ab441f1448bd8355afd", + "url": "https://api.github.com/repos/utopia-php/detector/zipball/2b2744be7ea028307dc9352eeec109cd1f9ab2d3", + "reference": "2b2744be7ea028307dc9352eeec109cd1f9ab2d3", "shasum": "" }, "require": { @@ -3775,22 +3801,22 @@ ], "support": { "issues": "https://github.com/utopia-php/detector/issues", - "source": "https://github.com/utopia-php/detector/tree/0.2.4" + "source": "https://github.com/utopia-php/detector/tree/0.2.6" }, - "time": "2026-02-17T11:26:34+00:00" + "time": "2026-07-01T14:00:11+00:00" }, { "name": "utopia-php/di", - "version": "0.3.3", + "version": "0.3.5", "source": { "type": "git", "url": "https://github.com/utopia-php/di.git", - "reference": "a0cee7ff9976bb6b596619aeac524948a8ee3dfb" + "reference": "053ebd097963190c5b279d66c5b530acb584d8c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/di/zipball/a0cee7ff9976bb6b596619aeac524948a8ee3dfb", - "reference": "a0cee7ff9976bb6b596619aeac524948a8ee3dfb", + "url": "https://api.github.com/repos/utopia-php/di/zipball/053ebd097963190c5b279d66c5b530acb584d8c0", + "reference": "053ebd097963190c5b279d66c5b530acb584d8c0", "shasum": "" }, "require": { @@ -3823,9 +3849,9 @@ ], "support": { "issues": "https://github.com/utopia-php/di/issues", - "source": "https://github.com/utopia-php/di/tree/0.3.3" + "source": "https://github.com/utopia-php/di/tree/0.3.5" }, - "time": "2026-06-10T14:22:41+00:00" + "time": "2026-06-26T10:48:18+00:00" }, { "name": "utopia-php/dns", @@ -3886,16 +3912,16 @@ }, { "name": "utopia-php/domains", - "version": "2.2.0", + "version": "2.3.0", "source": { "type": "git", "url": "https://github.com/utopia-php/domains.git", - "reference": "77fcf4b63e33b2c1ddf8c67cfc1a57eef2dbec8f" + "reference": "73bb46ec7c7522c8a0a1e7311144bdea1a7480cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/domains/zipball/77fcf4b63e33b2c1ddf8c67cfc1a57eef2dbec8f", - "reference": "77fcf4b63e33b2c1ddf8c67cfc1a57eef2dbec8f", + "url": "https://api.github.com/repos/utopia-php/domains/zipball/73bb46ec7c7522c8a0a1e7311144bdea1a7480cd", + "reference": "73bb46ec7c7522c8a0a1e7311144bdea1a7480cd", "shasum": "" }, "require": { @@ -3942,9 +3968,9 @@ ], "support": { "issues": "https://github.com/utopia-php/domains/issues", - "source": "https://github.com/utopia-php/domains/tree/2.2.0" + "source": "https://github.com/utopia-php/domains/tree/2.3.0" }, - "time": "2026-05-28T15:16:46+00:00" + "time": "2026-07-06T03:50:24+00:00" }, { "name": "utopia-php/dsn", @@ -4096,25 +4122,27 @@ }, { "name": "utopia-php/http", - "version": "2.0.0-rc9", + "version": "2.0.0-rc18", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "e4fdbc57ac6dc7cad1604eb904d3c95a31226ba9" + "reference": "3bfc500c6a53ffb87d4dcb95b4712b6a91b24439" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/e4fdbc57ac6dc7cad1604eb904d3c95a31226ba9", - "reference": "e4fdbc57ac6dc7cad1604eb904d3c95a31226ba9", + "url": "https://api.github.com/repos/utopia-php/http/zipball/3bfc500c6a53ffb87d4dcb95b4712b6a91b24439", + "reference": "3bfc500c6a53ffb87d4dcb95b4712b6a91b24439", "shasum": "" }, "require": { - "php": ">=8.3", + "php": ">=8.5", "utopia-php/compression": "^0.1", "utopia-php/di": "^0.3", + "utopia-php/psr7": "^0.2.0", "utopia-php/servers": "^0.4", + "utopia-php/system": "^0.10", "utopia-php/telemetry": "^0.4", - "utopia-php/validators": "^0.2" + "utopia-php/validators": "0.3.*" }, "require-dev": { "swoole/ide-helper": "4.8.3" @@ -4141,22 +4169,22 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/2.0.0-rc9" + "source": "https://github.com/utopia-php/http/tree/2.0.0-rc18" }, - "time": "2026-06-10T16:25:51+00:00" + "time": "2026-07-13T16:18:22+00:00" }, { "name": "utopia-php/image", - "version": "0.8.6", + "version": "0.8.7", "source": { "type": "git", "url": "https://github.com/utopia-php/image.git", - "reference": "85ab7027873e11bc901110d8f7830252247ba724" + "reference": "ed06c72998869f5d66026c7e4b7e1bcc1bbf45c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/image/zipball/85ab7027873e11bc901110d8f7830252247ba724", - "reference": "85ab7027873e11bc901110d8f7830252247ba724", + "url": "https://api.github.com/repos/utopia-php/image/zipball/ed06c72998869f5d66026c7e4b7e1bcc1bbf45c7", + "reference": "ed06c72998869f5d66026c7e4b7e1bcc1bbf45c7", "shasum": "" }, "require": { @@ -4192,9 +4220,9 @@ ], "support": { "issues": "https://github.com/utopia-php/image/issues", - "source": "https://github.com/utopia-php/image/tree/0.8.6" + "source": "https://github.com/utopia-php/image/tree/0.8.7" }, - "time": "2026-04-19T12:52:59+00:00" + "time": "2026-07-13T12:12:06+00:00" }, { "name": "utopia-php/locale", @@ -4245,16 +4273,16 @@ }, { "name": "utopia-php/lock", - "version": "0.2.1", + "version": "0.2.3", "source": { "type": "git", "url": "https://github.com/utopia-php/lock.git", - "reference": "9ef48d7094f5c68d1736f664f6e9b4b1ec656f21" + "reference": "4eca3784d4c112655faf77adcf0fdbb186650487" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/lock/zipball/9ef48d7094f5c68d1736f664f6e9b4b1ec656f21", - "reference": "9ef48d7094f5c68d1736f664f6e9b4b1ec656f21", + "url": "https://api.github.com/repos/utopia-php/lock/zipball/4eca3784d4c112655faf77adcf0fdbb186650487", + "reference": "4eca3784d4c112655faf77adcf0fdbb186650487", "shasum": "" }, "require": { @@ -4287,9 +4315,9 @@ "description": "A simple lock library to coordinate access to shared resources across coroutines, processes and hosts", "support": { "issues": "https://github.com/utopia-php/lock/issues", - "source": "https://github.com/utopia-php/lock/tree/0.2.1" + "source": "https://github.com/utopia-php/lock/tree/0.2.3" }, - "time": "2026-06-10T15:55:36+00:00" + "time": "2026-06-26T10:48:18+00:00" }, { "name": "utopia-php/logger", @@ -4348,30 +4376,34 @@ }, { "name": "utopia-php/messaging", - "version": "1.2.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/utopia-php/messaging.git", - "reference": "3419ffbbeb242b3232b588430bd465024959720c" + "reference": "8890c3b2e94bdf832c17fd3d7832cdf01b933eb7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/messaging/zipball/3419ffbbeb242b3232b588430bd465024959720c", - "reference": "3419ffbbeb242b3232b588430bd465024959720c", + "url": "https://api.github.com/repos/utopia-php/messaging/zipball/8890c3b2e94bdf832c17fd3d7832cdf01b933eb7", + "reference": "8890c3b2e94bdf832c17fd3d7832cdf01b933eb7", "shasum": "" }, "require": { "ext-curl": "*", "ext-openssl": "*", - "giggsey/libphonenumber-for-php-lite": "9.0.23", - "php": ">=8.1.0", - "phpmailer/phpmailer": "6.9.1", + "ext-swoole": "*", + "php": ">=8.5.0", + "phpmailer/phpmailer": "^6.9", + "psr/http-client": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "utopia-php/client": "^0.2", "utopia-php/telemetry": "^0.4" }, "require-dev": { - "laravel/pint": "1.*", - "phpstan/phpstan": "1.*", - "phpunit/phpunit": "11.*" + "laravel/pint": "^1.0", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^11.0", + "swoole/ide-helper": "^6.0" }, "type": "library", "autoload": { @@ -4394,9 +4426,9 @@ ], "support": { "issues": "https://github.com/utopia-php/messaging/issues", - "source": "https://github.com/utopia-php/messaging/tree/1.2.0" + "source": "https://github.com/utopia-php/messaging/tree/2.0.0" }, - "time": "2026-06-23T04:24:43+00:00" + "time": "2026-07-14T10:22:03+00:00" }, { "name": "utopia-php/migration", @@ -4473,16 +4505,16 @@ }, { "name": "utopia-php/mongo", - "version": "1.1.0", + "version": "1.3.1", "source": { "type": "git", "url": "https://github.com/utopia-php/mongo.git", - "reference": "73593682deee4696525a04e26524c1c1226e1530" + "reference": "f6ef5f1cecf80fb0378eda13250d6c14096d7620" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/mongo/zipball/73593682deee4696525a04e26524c1c1226e1530", - "reference": "73593682deee4696525a04e26524c1c1226e1530", + "url": "https://api.github.com/repos/utopia-php/mongo/zipball/f6ef5f1cecf80fb0378eda13250d6c14096d7620", + "reference": "f6ef5f1cecf80fb0378eda13250d6c14096d7620", "shasum": "" }, "require": { @@ -4528,31 +4560,31 @@ ], "support": { "issues": "https://github.com/utopia-php/mongo/issues", - "source": "https://github.com/utopia-php/mongo/tree/1.1.0" + "source": "https://github.com/utopia-php/mongo/tree/1.3.1" }, - "time": "2026-04-24T06:15:10+00:00" + "time": "2026-07-14T15:22:52+00:00" }, { "name": "utopia-php/platform", - "version": "1.0.0-rc9", + "version": "1.0.0-rc14", "source": { "type": "git", "url": "https://github.com/utopia-php/platform.git", - "reference": "5ae1fba6d797ba617816a1a582d9c1b1d188a1bc" + "reference": "bf3f1266de7da2e9ce00d923df054057c1b2fbb4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/platform/zipball/5ae1fba6d797ba617816a1a582d9c1b1d188a1bc", - "reference": "5ae1fba6d797ba617816a1a582d9c1b1d188a1bc", + "url": "https://api.github.com/repos/utopia-php/platform/zipball/bf3f1266de7da2e9ce00d923df054057c1b2fbb4", + "reference": "bf3f1266de7da2e9ce00d923df054057c1b2fbb4", "shasum": "" }, "require": { "ext-json": "*", "ext-redis": "*", - "php": ">=8.3", + "php": ">=8.5", "utopia-php/cli": "^0.24", "utopia-php/http": "^2.0@RC", - "utopia-php/queue": "^0.21", + "utopia-php/queue": "^0.22", "utopia-php/servers": "^0.4" }, "type": "library", @@ -4575,22 +4607,22 @@ ], "support": { "issues": "https://github.com/utopia-php/platform/issues", - "source": "https://github.com/utopia-php/platform/tree/1.0.0-rc9" + "source": "https://github.com/utopia-php/platform/tree/1.0.0-rc14" }, - "time": "2026-06-11T10:36:26+00:00" + "time": "2026-07-13T15:07:08+00:00" }, { "name": "utopia-php/pools", - "version": "1.0.5", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/utopia-php/pools.git", - "reference": "e66e498d59cf3ac48c1f4c70be46f7eb6df7a63b" + "reference": "fd5aa7e89685ffc74f9dff3d23c270ef30c7bbf3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/pools/zipball/e66e498d59cf3ac48c1f4c70be46f7eb6df7a63b", - "reference": "e66e498d59cf3ac48c1f4c70be46f7eb6df7a63b", + "url": "https://api.github.com/repos/utopia-php/pools/zipball/fd5aa7e89685ffc74f9dff3d23c270ef30c7bbf3", + "reference": "fd5aa7e89685ffc74f9dff3d23c270ef30c7bbf3", "shasum": "" }, "require": { @@ -4601,7 +4633,10 @@ "swoole/ide-helper": "6.*" }, "suggest": { - "ext-swoole": "Required to use the Swoole pool adapter" + "ext-mongodb": "Needed to support MongoDB database pools", + "ext-pdo": "Needed to support MariaDB, MySQL or SQLite database pools", + "ext-redis": "Needed to support Redis cache pools", + "ext-swoole": "Needed to support Swoole based pool adapter" }, "type": "library", "autoload": { @@ -4628,9 +4663,9 @@ ], "support": { "issues": "https://github.com/utopia-php/pools/issues", - "source": "https://github.com/utopia-php/pools/tree/1.0.5" + "source": "https://github.com/utopia-php/pools/tree/1.1.0" }, - "time": "2026-06-10T15:14:31+00:00" + "time": "2026-07-17T10:19:09+00:00" }, { "name": "utopia-php/preloader", @@ -4685,6 +4720,52 @@ }, "time": "2020-10-24T07:04:59+00:00" }, + { + "name": "utopia-php/psr7", + "version": "0.2.0", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/psr7.git", + "reference": "115753c36194d53abe5587d383810724ac3a782d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/psr7/zipball/115753c36194d53abe5587d383810724ac3a782d", + "reference": "115753c36194d53abe5587d383810724ac3a782d", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0" + }, + "suggest": { + "ext-simplexml": "Required to decode XML responses with Response::xml()." + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\Psr7\\": "src/Psr7/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PSR-7 HTTP message implementations and PSR-17 factories for Utopia", + "keywords": [ + "http", + "php", + "psr-17", + "psr-7", + "utopia" + ], + "support": { + "issues": "https://github.com/utopia-php/psr7/issues", + "source": "https://github.com/utopia-php/psr7/tree/0.2.0" + }, + "time": "2026-07-06T12:40:23+00:00" + }, { "name": "utopia-php/query", "version": "0.1.1", @@ -4733,26 +4814,26 @@ }, { "name": "utopia-php/queue", - "version": "0.21.1", + "version": "0.22.2", "source": { "type": "git", "url": "https://github.com/utopia-php/queue.git", - "reference": "abc5173ff7079118ebf5a22cb8008e8cf0a150e4" + "reference": "3081a1cd464e9bc92443e91e08d653bfdf45b54d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/queue/zipball/abc5173ff7079118ebf5a22cb8008e8cf0a150e4", - "reference": "abc5173ff7079118ebf5a22cb8008e8cf0a150e4", + "url": "https://api.github.com/repos/utopia-php/queue/zipball/3081a1cd464e9bc92443e91e08d653bfdf45b54d", + "reference": "3081a1cd464e9bc92443e91e08d653bfdf45b54d", "shasum": "" }, "require": { - "php": ">=8.4", + "php": ">=8.5", "utopia-php/di": "^0.3", "utopia-php/lock": "^0.2", "utopia-php/pools": "^1.0", "utopia-php/servers": "^0.4", "utopia-php/telemetry": "^0.4", - "utopia-php/validators": "^0.2" + "utopia-php/validators": "0.3.*" }, "require-dev": { "ext-redis": "*", @@ -4790,9 +4871,9 @@ ], "support": { "issues": "https://github.com/utopia-php/queue/issues", - "source": "https://github.com/utopia-php/queue/tree/0.21.1" + "source": "https://github.com/utopia-php/queue/tree/0.22.2" }, - "time": "2026-06-10T16:25:51+00:00" + "time": "2026-07-13T11:15:40+00:00" }, { "name": "utopia-php/registry", @@ -4848,22 +4929,22 @@ }, { "name": "utopia-php/servers", - "version": "0.4.3", + "version": "0.4.6", "source": { "type": "git", "url": "https://github.com/utopia-php/servers.git", - "reference": "a160268a804ae1a6d8a6ee41aed8dda1d2553da8" + "reference": "036c4da1c8b9a5bba1a973270158ba745a5944c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/servers/zipball/a160268a804ae1a6d8a6ee41aed8dda1d2553da8", - "reference": "a160268a804ae1a6d8a6ee41aed8dda1d2553da8", + "url": "https://api.github.com/repos/utopia-php/servers/zipball/036c4da1c8b9a5bba1a973270158ba745a5944c9", + "reference": "036c4da1c8b9a5bba1a973270158ba745a5944c9", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.5", "utopia-php/di": "^0.3", - "utopia-php/validators": "^0.2" + "utopia-php/validators": "0.3.*" }, "type": "library", "autoload": { @@ -4891,32 +4972,28 @@ ], "support": { "issues": "https://github.com/utopia-php/servers/issues", - "source": "https://github.com/utopia-php/servers/tree/0.4.3" + "source": "https://github.com/utopia-php/servers/tree/0.4.6" }, - "time": "2026-06-10T16:25:51+00:00" + "time": "2026-07-13T11:15:40+00:00" }, { "name": "utopia-php/span", - "version": "3.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/utopia-php/span.git", - "reference": "97f0ab6e9125c000262f8b5b007423d11fd1a9b3" + "reference": "6f9042c1ae1fa5a3e890b5c9a92cbf1388422945" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/span/zipball/97f0ab6e9125c000262f8b5b007423d11fd1a9b3", - "reference": "97f0ab6e9125c000262f8b5b007423d11fd1a9b3", + "url": "https://api.github.com/repos/utopia-php/span/zipball/6f9042c1ae1fa5a3e890b5c9a92cbf1388422945", + "reference": "6f9042c1ae1fa5a3e890b5c9a92cbf1388422945", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "laravel/pint": "^1.0", - "phpstan/phpstan": "^2.0", - "phpunit/phpunit": "^10.0", - "rector/rector": "^2.3", "swoole/ide-helper": "^5.0" }, "suggest": { @@ -4935,22 +5012,22 @@ "description": "Simple span tracing library for PHP with coroutine support", "support": { "issues": "https://github.com/utopia-php/span/issues", - "source": "https://github.com/utopia-php/span/tree/3.0.1" + "source": "https://github.com/utopia-php/span/tree/3.0.2" }, - "time": "2026-05-13T11:53:06+00:00" + "time": "2026-06-10T14:42:53+00:00" }, { "name": "utopia-php/storage", - "version": "2.0.5", + "version": "2.0.6", "source": { "type": "git", "url": "https://github.com/utopia-php/storage.git", - "reference": "b8af52e8ae1f9e670b32255a8936bbb46634b711" + "reference": "00503ebecdae5e4c694889acf7777b1b4ca5d3d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/storage/zipball/b8af52e8ae1f9e670b32255a8936bbb46634b711", - "reference": "b8af52e8ae1f9e670b32255a8936bbb46634b711", + "url": "https://api.github.com/repos/utopia-php/storage/zipball/00503ebecdae5e4c694889acf7777b1b4ca5d3d6", + "reference": "00503ebecdae5e4c694889acf7777b1b4ca5d3d6", "shasum": "" }, "require": { @@ -4958,10 +5035,10 @@ "ext-fileinfo": "*", "ext-simplexml": "*", "ext-zlib": "*", - "php": ">=8.1", + "php": ">=8.5", "utopia-php/system": "0.*.*", "utopia-php/telemetry": "^0.4", - "utopia-php/validators": "0.2.*" + "utopia-php/validators": "0.3.*" }, "require-dev": { "laravel/pint": "^1.21", @@ -4987,32 +5064,27 @@ ], "support": { "issues": "https://github.com/utopia-php/storage/issues", - "source": "https://github.com/utopia-php/storage/tree/2.0.5" + "source": "https://github.com/utopia-php/storage/tree/2.0.6" }, - "time": "2026-06-03T05:21:46+00:00" + "time": "2026-07-13T13:40:39+00:00" }, { "name": "utopia-php/system", - "version": "0.10.2", + "version": "0.10.5", "source": { "type": "git", "url": "https://github.com/utopia-php/system.git", - "reference": "04229a822b147c1abaf1a92fb42c2d7aad4625df" + "reference": "57a2ab17f5346f171c796e29a6c2202bfaa21303" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/system/zipball/04229a822b147c1abaf1a92fb42c2d7aad4625df", - "reference": "04229a822b147c1abaf1a92fb42c2d7aad4625df", + "url": "https://api.github.com/repos/utopia-php/system/zipball/57a2ab17f5346f171c796e29a6c2202bfaa21303", + "reference": "57a2ab17f5346f171c796e29a6c2202bfaa21303", "shasum": "" }, "require": { "php": ">=8.0.0" }, - "require-dev": { - "laravel/pint": "1.13.*", - "phpstan/phpstan": "1.12.*", - "phpunit/phpunit": "9.6.*" - }, "type": "library", "autoload": { "psr-4": { @@ -5043,26 +5115,25 @@ ], "support": { "issues": "https://github.com/utopia-php/system/issues", - "source": "https://github.com/utopia-php/system/tree/0.10.2" + "source": "https://github.com/utopia-php/system/tree/0.10.5" }, - "time": "2026-05-05T14:33:41+00:00" + "time": "2026-06-26T10:48:18+00:00" }, { "name": "utopia-php/telemetry", - "version": "0.4.1", + "version": "0.4.5", "source": { "type": "git", "url": "https://github.com/utopia-php/telemetry.git", - "reference": "028f3a85bb987b1e9357fb1632aa40f020d1b86e" + "reference": "139943bffcd4f6dd8fb9ed247f946a1d151b006a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/028f3a85bb987b1e9357fb1632aa40f020d1b86e", - "reference": "028f3a85bb987b1e9357fb1632aa40f020d1b86e", + "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/139943bffcd4f6dd8fb9ed247f946a1d151b006a", + "reference": "139943bffcd4f6dd8fb9ed247f946a1d151b006a", "shasum": "" }, "require": { - "ext-opentelemetry": "*", "ext-protobuf": "*", "nyholm/psr7": "1.*", "open-telemetry/exporter-otlp": "1.*", @@ -5071,7 +5142,6 @@ "symfony/http-client": "7.*" }, "require-dev": { - "phpbench/phpbench": "1.*", "swoole/ide-helper": "6.*" }, "suggest": { @@ -5096,26 +5166,26 @@ ], "support": { "issues": "https://github.com/utopia-php/telemetry/issues", - "source": "https://github.com/utopia-php/telemetry/tree/0.4.1" + "source": "https://github.com/utopia-php/telemetry/tree/0.4.5" }, - "time": "2026-06-10T15:48:26+00:00" + "time": "2026-07-08T11:07:25+00:00" }, { "name": "utopia-php/validators", - "version": "0.2.6", + "version": "0.3.0", "source": { "type": "git", "url": "https://github.com/utopia-php/validators.git", - "reference": "f1ac4f08d6876daf117a1d9af53a4c7b752c2c0b" + "reference": "5a3ef67ce17c2e148da7895e8de699614f0afdfa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/validators/zipball/f1ac4f08d6876daf117a1d9af53a4c7b752c2c0b", - "reference": "f1ac4f08d6876daf117a1d9af53a4c7b752c2c0b", + "url": "https://api.github.com/repos/utopia-php/validators/zipball/5a3ef67ce17c2e148da7895e8de699614f0afdfa", + "reference": "5a3ef67ce17c2e148da7895e8de699614f0afdfa", "shasum": "" }, "require": { - "php": ">=8.0" + "php": ">=8.5" }, "type": "library", "autoload": { @@ -5136,22 +5206,22 @@ ], "support": { "issues": "https://github.com/utopia-php/validators/issues", - "source": "https://github.com/utopia-php/validators/tree/0.2.6" + "source": "https://github.com/utopia-php/validators/tree/0.3.0" }, - "time": "2026-06-10T14:45:13+00:00" + "time": "2026-07-13T09:46:33+00:00" }, { "name": "utopia-php/vcs", - "version": "4.2.3", + "version": "4.4.2", "source": { "type": "git", "url": "https://github.com/utopia-php/vcs.git", - "reference": "598cbd2793a5a6394493f1046743e75ec6544a57" + "reference": "ea623171caeaad2ef600b6c6bd52fd5f76b38486" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/vcs/zipball/598cbd2793a5a6394493f1046743e75ec6544a57", - "reference": "598cbd2793a5a6394493f1046743e75ec6544a57", + "url": "https://api.github.com/repos/utopia-php/vcs/zipball/ea623171caeaad2ef600b6c6bd52fd5f76b38486", + "reference": "ea623171caeaad2ef600b6c6bd52fd5f76b38486", "shasum": "" }, "require": { @@ -5185,9 +5255,9 @@ ], "support": { "issues": "https://github.com/utopia-php/vcs/issues", - "source": "https://github.com/utopia-php/vcs/tree/4.2.3" + "source": "https://github.com/utopia-php/vcs/tree/4.4.2" }, - "time": "2026-06-16T12:14:08+00:00" + "time": "2026-07-14T06:22:41+00:00" }, { "name": "utopia-php/websocket", @@ -5380,16 +5450,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "2.0.0", + "version": "2.4.5", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "60a2e804c1464494d763e5ff6bfff9b188502253" + "reference": "ebdb3af8bee5669879644c262e704d83dbeb438a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/60a2e804c1464494d763e5ff6bfff9b188502253", - "reference": "60a2e804c1464494d763e5ff6bfff9b188502253", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/ebdb3af8bee5669879644c262e704d83dbeb438a", + "reference": "ebdb3af8bee5669879644c262e704d83dbeb438a", "shasum": "" }, "require": { @@ -5404,7 +5474,7 @@ "brianium/paratest": "7.*", "phpunit/phpunit": "11.*", "rector/rector": "^2.4", - "squizlabs/php_codesniffer": "3.*" + "squizlabs/php_codesniffer": "4.*" }, "type": "library", "autoload": { @@ -5426,9 +5496,9 @@ "description": "SDK generator for Appwrite APIs across multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/2.0.0" + "source": "https://github.com/appwrite/sdk-generator/tree/2.4.5" }, - "time": "2026-06-11T05:54:24+00:00" + "time": "2026-07-09T15:23:08+00:00" }, { "name": "brianium/paratest", @@ -8389,7 +8459,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=8.3.0", + "php": ">=8.5.0", "ext-curl": "*", "ext-imagick": "*", "ext-mbstring": "*", diff --git a/src/Appwrite/Migration/Version/V25.php b/src/Appwrite/Migration/Version/V25.php index 01a98d71c0..62d734af9e 100644 --- a/src/Appwrite/Migration/Version/V25.php +++ b/src/Appwrite/Migration/Version/V25.php @@ -3,10 +3,12 @@ namespace Appwrite\Migration\Version; use Appwrite\Migration\Migration; +use Exception; use Throwable; use Utopia\Console; use Utopia\Database\Database; use Utopia\Database\Document; +use Utopia\Database\Query; use Utopia\Migration\Resource; class V25 extends Migration @@ -24,51 +26,127 @@ class V25 extends Migration } /** - * @throws Throwable + * Migrate Collections. + * + * @return void + * @throws Exception|Throwable */ private function migrateCollections(): void { - if ($this->project->getSequence() === 'console') { - return; + $projectInternalId = $this->project->getSequence(); + + if (empty($projectInternalId)) { + throw new Exception('Project ID is null'); } - $id = 'migrations'; + $collectionType = match ($projectInternalId) { + 'console' => 'console', + default => 'projects', + }; - $this->dbForProject->purgeCachedCollection($id); - $this->dbForProject->purgeCachedDocument(Database::METADATA, $id); + $collections = $this->collections[$collectionType]; - $attributes = [ - 'resourceInternalId', - 'parentResourceId', - 'parentResourceInternalId', - 'parentResourceType', - 'destinationResourceId', - 'destinationResourceType', - ]; - try { - $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); - } catch (Throwable $th) { - Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); - } + foreach ($collections as $collection) { + $id = $collection['$id']; - $indexes = [ - '_key_resourceType', - '_key_resourceInternalId', - '_key_parentResourceId', - '_key_parentResourceType', - '_key_parentResourceInternalId', - '_key_destinationResourceId', - '_key_destinationResourceType', - ]; - foreach ($indexes as $index) { - try { - $this->createIndexFromCollection($this->dbForProject, $id, $index); - } catch (Throwable $th) { - Console::warning("Failed to create index \"{$index}\" from {$id}: {$th->getMessage()}"); + if (empty($id)) { + continue; + } + + Console::log("Migrating collection \"{$id}\""); + + $this->dbForProject->purgeCachedCollection($id); + $this->dbForProject->purgeCachedDocument(Database::METADATA, $id); + + switch ($id) { + case 'projects': + if ($collectionType === 'console') { + try { + $this->createIndexFromCollection($this->dbForProject, $id, '_key_accessedAt'); + } catch (Throwable $th) { + Console::warning("Failed to create index \"_key_accessedAt\" from {$id}: {$th->getMessage()}"); + } + } + $this->dbForProject->purgeCachedCollection($id); + break; + + case 'installations': + if ($collectionType === 'console') { + foreach (['personalAccessToken', 'personalRefreshToken'] as $attribute) { + try { + $this->dbForProject->updateAttribute($id, $attribute, size: 2048); + } catch (Throwable $th) { + Console::warning("Failed to resize attribute \"{$attribute}\" in collection {$id}: {$th->getMessage()}"); + } + } + } + $this->dbForProject->purgeCachedCollection($id); + break; + + case 'databases': + if ($collectionType === 'projects') { + try { + $this->createAttributeFromCollection($this->dbForProject, $id, 'status'); + } catch (Throwable $th) { + Console::warning("Failed to create attribute \"status\" in collection {$id}: {$th->getMessage()}"); + } + $this->dbForProject->purgeCachedCollection($id); + + // Backfill existing databases so the stored value matches the intended default. + // Materialize the matched documents before updating any of them: updating + // "status" removes rows from the isNull() set, and the offset-based iterator + // would otherwise skip un-processed rows as the filtered set shrinks mid-scan. + $databases = \iterator_to_array($this->documentsIterator($id, [Query::isNull('status')])); + foreach ($databases as $database) { + try { + $this->dbForProject->updateDocument($id, $database->getId(), new Document([ + 'status' => 'ready', + ])); + } catch (Throwable $th) { + Console::warning("Failed to backfill \"status\" for database {$database->getId()}: {$th->getMessage()}"); + } + } + } + break; + + case 'migrations': + if ($collectionType === 'projects') { + $attributes = [ + 'resourceInternalId', + 'parentResourceId', + 'parentResourceInternalId', + 'parentResourceType', + 'destinationResourceId', + 'destinationResourceType', + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + + $indexes = [ + '_key_resourceType', + '_key_resourceInternalId', + '_key_parentResourceId', + '_key_parentResourceType', + '_key_parentResourceInternalId', + '_key_destinationResourceId', + '_key_destinationResourceType', + ]; + foreach ($indexes as $index) { + try { + $this->createIndexFromCollection($this->dbForProject, $id, $index); + } catch (Throwable $th) { + Console::warning("Failed to create index \"{$index}\" from {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + } + break; } } - - $this->dbForProject->purgeCachedCollection($id); } protected function migrateDocument(Document $document): Document diff --git a/src/Appwrite/Utopia/Request/Filters/V27.php b/src/Appwrite/Utopia/Request/Filters/V27.php index 58baf8a1a5..3b4c427732 100644 --- a/src/Appwrite/Utopia/Request/Filters/V27.php +++ b/src/Appwrite/Utopia/Request/Filters/V27.php @@ -6,7 +6,7 @@ use Appwrite\Utopia\Request\Filter; class V27 extends Filter { - // Convert 1.9.5 params to 1.9.6 + // Convert 1.9.5 params to 2.0.0 public function parse(array $content, string $model): array { return match ($model) { diff --git a/src/Appwrite/Utopia/Response/Filters/V27.php b/src/Appwrite/Utopia/Response/Filters/V27.php index 57bad7171e..258dd56ffc 100644 --- a/src/Appwrite/Utopia/Response/Filters/V27.php +++ b/src/Appwrite/Utopia/Response/Filters/V27.php @@ -5,7 +5,7 @@ namespace Appwrite\Utopia\Response\Filters; use Appwrite\Utopia\Response; use Appwrite\Utopia\Response\Filter; -// Convert 1.9.6 data format to 1.9.5 format +// Convert 2.0.0 Data format to 1.9.5 format class V27 extends Filter { public function parse(array $content, string $model): array