From c2aa880ae065e63ae80c9bd20a578a371a19c076 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 12 Aug 2026 16:40:46 +1200 Subject: [PATCH 1/3] (fix): preserve empty document objects --- .../Collections/Documents/Action.php | 39 +++++ .../Collections/Documents/Bulk/Update.php | 6 +- .../Collections/Documents/Bulk/Upsert.php | 1 + .../Collections/Documents/Create.php | 14 +- .../Collections/Documents/Update.php | 4 +- .../Collections/Documents/Upsert.php | 8 +- .../DocumentsDBObjectFidelityTest.php | 152 ++++++++++++++++++ 7 files changed, 202 insertions(+), 22 deletions(-) create mode 100644 tests/e2e/Services/Databases/DocumentsDB/DocumentsDBObjectFidelityTest.php diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php index 48ab9b298f..54d5f06db8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php @@ -257,6 +257,45 @@ abstract class Action extends DatabasesAction return $resource . 'Id'; } + /** + * Convert a request object to the associative shape Document expects while + * retaining empty objects at any nested depth. + * + * @return array + */ + protected function normalizeData(string|array|\stdClass $data): array + { + if (\is_string($data)) { + $data = \json_decode($data); + if (!$data instanceof \stdClass && !\is_array($data)) { + return []; + } + } + + if ($data instanceof \stdClass) { + $data = (array) $data; + } + + return \array_map($this->normalizeValue(...), $data); + } + + private function normalizeValue(mixed $value): mixed + { + if ($value instanceof \stdClass) { + $properties = (array) $value; + + return $properties === [] + ? $value + : \array_map($this->normalizeValue(...), $properties); + } + + if (\is_array($value)) { + return \array_map($this->normalizeValue(...), $value); + } + + return $value; + } + /** * Remove configured removable attributes from a document. * Used for relationship path handling to remove API-specific attributes. diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php index 789fef8fcb..62a3e9777a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php @@ -93,11 +93,9 @@ class Update extends Action ->callback($this->action(...)); } - public function action(string $databaseId, string $collectionId, string|array $data, array $queries, ?string $transactionId, UtopiaResponse $response, Database $dbForProject, callable $getDatabasesDB, Context $usage, Event $queueForEvents, Event $queueForRealtime, FunctionPublisher $publisherForFunctions, Event $queueForWebhooks, array $plan, EventProcessor $eventProcessor): void + public function action(string $databaseId, string $collectionId, string|array|\stdClass $data, array $queries, ?string $transactionId, UtopiaResponse $response, Database $dbForProject, callable $getDatabasesDB, Context $usage, Event $queueForEvents, Event $queueForRealtime, FunctionPublisher $publisherForFunctions, Event $queueForWebhooks, array $plan, EventProcessor $eventProcessor): void { - $data = \is_string($data) - ? \json_decode($data, true) - : $data; + $data = $this->normalizeData($data); if (empty($data)) { throw new Exception($this->getMissingPayloadException()); diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php index 0530535729..9c0eb232b6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php @@ -113,6 +113,7 @@ class Upsert extends Action } foreach ($documents as $key => $document) { + $document = $this->normalizeData($document); if ($transactionId === null) { $document = $this->parseOperators($document, $collection); } diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php index 5c761fa55c..4ab3bd407a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php @@ -147,20 +147,14 @@ class Create extends Action ->callback($this->action(...)); } - public function action(string $databaseId, string $documentId, string $collectionId, string|array $data, ?array $permissions, ?array $documents, ?string $transactionId, UtopiaResponse $response, Database $dbForProject, callable $getDatabasesDB, User $user, Event $queueForEvents, Context $usage, Event $queueForRealtime, FunctionPublisher $publisherForFunctions, Event $queueForWebhooks, array $plan, Authorization $authorization, EventProcessor $eventProcessor): void + public function action(string $databaseId, string $documentId, string $collectionId, string|array|\stdClass $data, ?array $permissions, ?array $documents, ?string $transactionId, UtopiaResponse $response, Database $dbForProject, callable $getDatabasesDB, User $user, Event $queueForEvents, Context $usage, Event $queueForRealtime, FunctionPublisher $publisherForFunctions, Event $queueForWebhooks, array $plan, Authorization $authorization, EventProcessor $eventProcessor): void { - // The JSON object validators guarantee object shape for both parameters, so - // decoding is all that is left. Encoded scalars and lists are rejected during - // validation, before the handler adds system fields or touches the database. - $data = \is_string($data) - ? \json_decode($data, true) - : $data; + $data = $this->normalizeData($data); if ($documents !== null) { foreach ($documents as $key => $document) { - if (\is_string($document)) { - $documents[$key] = \json_decode($document, true); - } + /** @var string|array|\stdClass $document */ + $documents[$key] = $this->normalizeData($document); } } diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php index 9fb1952428..66ffb504e9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php @@ -94,9 +94,9 @@ class Update extends Action ->callback($this->action(...)); } - public function action(string $databaseId, string $collectionId, string $documentId, string|array $data, ?array $permissions, ?string $transactionId, ?\DateTime $requestTimestamp, UtopiaResponse $response, Database $dbForProject, callable $getDatabasesDB, Event $queueForEvents, Context $usage, TransactionState $transactionState, array $plan, Authorization $authorization, User $user): void + public function action(string $databaseId, string $collectionId, string $documentId, string|array|\stdClass $data, ?array $permissions, ?string $transactionId, ?\DateTime $requestTimestamp, UtopiaResponse $response, Database $dbForProject, callable $getDatabasesDB, Event $queueForEvents, Context $usage, TransactionState $transactionState, array $plan, Authorization $authorization, User $user): void { - $data = (\is_string($data)) ? \json_decode($data, true) : $data; // Cast to JSON array + $data = $this->normalizeData($data); if (empty($data) && \is_null($permissions)) { throw new Exception($this->getMissingPayloadException()); diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php index 6bedae4a31..d7cc46449d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php @@ -97,18 +97,14 @@ class Upsert extends Action ->callback($this->action(...)); } - public function action(string $databaseId, string $collectionId, string $documentId, string|array $data, ?array $permissions, ?string $transactionId, ?\DateTime $requestTimestamp, UtopiaResponse $response, User $user, Database $dbForProject, callable $getDatabasesDB, Event $queueForEvents, Context $usage, TransactionState $transactionState, array $plan, Authorization $authorization): void + public function action(string $databaseId, string $collectionId, string $documentId, string|array|\stdClass $data, ?array $permissions, ?string $transactionId, ?\DateTime $requestTimestamp, UtopiaResponse $response, User $user, Database $dbForProject, callable $getDatabasesDB, Event $queueForEvents, Context $usage, TransactionState $transactionState, array $plan, Authorization $authorization): void { - $data = (\is_string($data)) ? \json_decode($data, true) : $data; // Cast to JSON array + $data = $this->normalizeData($data); if (empty($data) && \is_null($permissions)) { throw new Exception($this->getMissingPayloadException()); } - if (\array_is_list($data) && \count($data) > 1) { // Allow 1 associated array - throw new Exception($this->getMissingPayloadException()); - } - $isAPIKey = $user->isKey($authorization->getRoles()); $isPrivilegedUser = $user->isPrivileged($authorization->getRoles()); diff --git a/tests/e2e/Services/Databases/DocumentsDB/DocumentsDBObjectFidelityTest.php b/tests/e2e/Services/Databases/DocumentsDB/DocumentsDBObjectFidelityTest.php new file mode 100644 index 0000000000..ade7a86471 --- /dev/null +++ b/tests/e2e/Services/Databases/DocumentsDB/DocumentsDBObjectFidelityTest.php @@ -0,0 +1,152 @@ + 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]; + $databaseId = ID::unique(); + $collectionId = ID::unique(); + + $database = $this->client->call(Client::METHOD_POST, '/documentsdb', $headers, [ + 'databaseId' => $databaseId, + 'name' => 'Object Fidelity', + ]); + $this->assertSame(201, $database['headers']['status-code']); + + try { + $collection = $this->client->call(Client::METHOD_POST, "/documentsdb/{$databaseId}/collections", $headers, [ + 'collectionId' => $collectionId, + 'name' => 'Objects', + ]); + $this->assertSame(201, $collection['headers']['status-code']); + + $empty = $this->client->call(Client::METHOD_POST, "/documentsdb/{$databaseId}/collections/{$collectionId}/documents", $headers, [ + 'documentId' => 'empty', + 'data' => new \stdClass(), + ]); + $this->assertSame(201, $empty['headers']['status-code']); + + $created = $this->client->call( + Client::METHOD_POST, + "/documentsdb/{$databaseId}/collections/{$collectionId}/documents", + $headers, + [ + 'documentId' => 'created', + 'data' => ['shape' => $this->shape()], + ], + false, + ); + $this->assertSame(201, $created['headers']['status-code']); + $this->assertShape($created['body']); + + for ($read = 0; $read < 2; $read++) { + $fetched = $this->client->call( + Client::METHOD_GET, + "/documentsdb/{$databaseId}/collections/{$collectionId}/documents/created", + $headers, + decode: false, + ); + $this->assertSame(200, $fetched['headers']['status-code']); + $this->assertShape($fetched['body']); + } + + $updated = $this->client->call( + Client::METHOD_PATCH, + "/documentsdb/{$databaseId}/collections/{$collectionId}/documents/created", + $headers, + ['data' => \json_encode(['shape' => $this->shape()], JSON_THROW_ON_ERROR)], + false, + ); + $this->assertSame(200, $updated['headers']['status-code']); + $this->assertShape($updated['body']); + + $upserted = $this->client->call( + Client::METHOD_PUT, + "/documentsdb/{$databaseId}/collections/{$collectionId}/documents/upserted", + $headers, + ['data' => ['shape' => $this->shape()]], + false, + ); + $this->assertContains($upserted['headers']['status-code'], [200, 201]); + $this->assertShape($upserted['body']); + + $bulkCreated = $this->client->call( + Client::METHOD_POST, + "/documentsdb/{$databaseId}/collections/{$collectionId}/documents", + $headers, + ['documents' => [\json_encode(['$id' => 'bulk-created', 'shape' => $this->shape()], JSON_THROW_ON_ERROR)]], + false, + ); + $this->assertSame(201, $bulkCreated['headers']['status-code']); + $this->assertShape($bulkCreated['body'], true); + + $bulkUpdated = $this->client->call( + Client::METHOD_PATCH, + "/documentsdb/{$databaseId}/collections/{$collectionId}/documents", + $headers, + ['data' => \json_encode(['shape' => $this->shape()], JSON_THROW_ON_ERROR)], + false, + ); + $this->assertSame(200, $bulkUpdated['headers']['status-code']); + $this->assertShape($bulkUpdated['body'], true); + + $bulkUpserted = $this->client->call( + Client::METHOD_PUT, + "/documentsdb/{$databaseId}/collections/{$collectionId}/documents", + $headers, + ['documents' => [['$id' => 'bulk-upserted', 'shape' => $this->shape()]]], + false, + ); + $this->assertContains($bulkUpserted['headers']['status-code'], [200, 201]); + $this->assertShape($bulkUpserted['body'], true); + } finally { + $this->client->call(Client::METHOD_DELETE, "/documentsdb/{$databaseId}", $headers); + } + } + + /** + * @return array + */ + private function shape(): array + { + return [ + 'empty' => new \stdClass(), + 'nested' => ['empty' => new \stdClass()], + 'list' => [new \stdClass(), ['x' => 1]], + 'emptyArray' => [], + ]; + } + + private function assertShape(string $body, bool $bulk = false): void + { + $decoded = \json_decode($body, flags: JSON_THROW_ON_ERROR); + if ($bulk) { + $decoded = $decoded->documents[0]; + } + $shape = $decoded->shape; + + $this->assertInstanceOf(\stdClass::class, $shape->empty); + $this->assertInstanceOf(\stdClass::class, $shape->nested->empty); + $this->assertInstanceOf(\stdClass::class, $shape->list[0]); + $this->assertSame(1, $shape->list[1]->x); + $this->assertSame([], $shape->emptyArray); + } +} From 79c51fcfe450b2b57185a01786013c7b368c9c26 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 12 Aug 2026 17:01:27 +1200 Subject: [PATCH 2/3] (test): verify empty object dependency chain --- .github/workflows/ci.yml | 4 ++++ Dockerfile | 30 +++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8b6be61b9..6de39542d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -288,6 +288,10 @@ jobs: build-args: | DEBUG=false TESTING=true + UTOPIA_CACHE_REFERENCE=d7c0806f9bbdafee794849398f65e8ece322711d + UTOPIA_DATABASE_REFERENCE=74d9af59947d1f3c6998fb23715bf2d8f1cf4e0b + UTOPIA_HTTP_REFERENCE=b6747451178c2f9581e5ee6e34a6de1bdfabed4d + UTOPIA_MONGO_REFERENCE=daea8f8213c33f52e8b66d0f5366428bf2f5a4b8 VERSION=dev unit: diff --git a/Dockerfile b/Dockerfile index ea39e616f6..f3bce5390b 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ FROM composer:2 AS composer ARG TESTING=false +ARG UTOPIA_CACHE_REFERENCE='' +ARG UTOPIA_DATABASE_REFERENCE='' +ARG UTOPIA_HTTP_REFERENCE='' +ARG UTOPIA_MONGO_REFERENCE='' ENV TESTING=$TESTING WORKDIR /usr/local/src/ @@ -10,7 +14,31 @@ COPY composer.json /usr/local/src/ RUN composer install --ignore-platform-reqs --optimize-autoloader \ --no-plugins --no-scripts --prefer-dist \ - `if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` + `if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` \ + && if [ -n "$UTOPIA_CACHE_REFERENCE" ] || [ -n "$UTOPIA_DATABASE_REFERENCE" ] || [ -n "$UTOPIA_HTTP_REFERENCE" ] || [ -n "$UTOPIA_MONGO_REFERENCE" ]; then \ + test -n "$UTOPIA_CACHE_REFERENCE" \ + && test -n "$UTOPIA_DATABASE_REFERENCE" \ + && test -n "$UTOPIA_HTTP_REFERENCE" \ + && test -n "$UTOPIA_MONGO_REFERENCE" \ + && git init /tmp/utopia-monorepo \ + && git -C /tmp/utopia-monorepo remote add origin https://github.com/utopia-php/monorepo.git \ + && git -C /tmp/utopia-monorepo fetch --depth 1 origin "$UTOPIA_CACHE_REFERENCE" \ + && git -C /tmp/utopia-monorepo checkout --detach FETCH_HEAD \ + && cp -R /tmp/utopia-monorepo/packages/cache/src/. vendor/utopia-php/cache/src/ \ + && git -C /tmp/utopia-monorepo fetch --depth 1 origin "$UTOPIA_HTTP_REFERENCE" \ + && git -C /tmp/utopia-monorepo checkout --detach FETCH_HEAD \ + && cp -R /tmp/utopia-monorepo/packages/http/src/. vendor/utopia-php/http/src/ \ + && git init /tmp/utopia-database \ + && git -C /tmp/utopia-database remote add origin https://github.com/utopia-php/database.git \ + && git -C /tmp/utopia-database fetch --depth 1 origin "$UTOPIA_DATABASE_REFERENCE" \ + && git -C /tmp/utopia-database checkout --detach FETCH_HEAD \ + && cp -R /tmp/utopia-database/src/. vendor/utopia-php/database/src/ \ + && git init /tmp/utopia-mongo \ + && git -C /tmp/utopia-mongo remote add origin https://github.com/utopia-php/mongo.git \ + && git -C /tmp/utopia-mongo fetch --depth 1 origin "$UTOPIA_MONGO_REFERENCE" \ + && git -C /tmp/utopia-mongo checkout --detach FETCH_HEAD \ + && cp -R /tmp/utopia-mongo/src/. vendor/utopia-php/mongo/src/; \ + fi FROM appwrite/base:2.0.0 AS base From ee309ef0e1559ee7bddbbccc484caeb5799fd5f7 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 12 Aug 2026 21:49:25 +1200 Subject: [PATCH 3/3] chore: lock the released DAT-2310 packages instead of patching vendor The Dockerfile cloned utopia-php/monorepo, database and mongo at fixed commits and copied their src/ over vendor/, driven by four build args pinned in ci.yml. Meanwhile composer.lock still resolved the OLD versions: cache 4.0.1 database 7.1.3 http 2.0.0-rc21 mongo 1.5.1 So the fix lived only inside the CI image. A release cut from this branch would have shipped unfixed dependencies while its own CI stayed green. All four releases now exist and each contains the commit it was pinned to, so the lock resolves them and the machinery goes: cache 4.0.1 -> 4.0.2 source 92e02dab6 database 7.1.3 -> 7.1.4 source b2b136a38 http 2.0.0-rc21 -> 2.0.0-rc22 source cc791f56b mongo 1.5.1 -> 1.5.2 source 20f9a644a Every reference equals the Packagist source reference exactly. No package was added or removed: 25 lines changed, no new entries. Constraints already admitted these (cache ^4.0.0, database ^7.0.0, http ^2.0@RC, mongo transitively), so only the lock moved. Removing the build args also stops a Docker build fetching arbitrary external git refs. Co-Authored-By: Claude Opus 5 --- .github/workflows/ci.yml | 4 ---- Dockerfile | 30 +----------------------- composer.lock | 50 ++++++++++++++++++++-------------------- 3 files changed, 26 insertions(+), 58 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6de39542d7..d8b6be61b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -288,10 +288,6 @@ jobs: build-args: | DEBUG=false TESTING=true - UTOPIA_CACHE_REFERENCE=d7c0806f9bbdafee794849398f65e8ece322711d - UTOPIA_DATABASE_REFERENCE=74d9af59947d1f3c6998fb23715bf2d8f1cf4e0b - UTOPIA_HTTP_REFERENCE=b6747451178c2f9581e5ee6e34a6de1bdfabed4d - UTOPIA_MONGO_REFERENCE=daea8f8213c33f52e8b66d0f5366428bf2f5a4b8 VERSION=dev unit: diff --git a/Dockerfile b/Dockerfile index f3bce5390b..ea39e616f6 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,6 @@ FROM composer:2 AS composer ARG TESTING=false -ARG UTOPIA_CACHE_REFERENCE='' -ARG UTOPIA_DATABASE_REFERENCE='' -ARG UTOPIA_HTTP_REFERENCE='' -ARG UTOPIA_MONGO_REFERENCE='' ENV TESTING=$TESTING WORKDIR /usr/local/src/ @@ -14,31 +10,7 @@ COPY composer.json /usr/local/src/ RUN composer install --ignore-platform-reqs --optimize-autoloader \ --no-plugins --no-scripts --prefer-dist \ - `if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` \ - && if [ -n "$UTOPIA_CACHE_REFERENCE" ] || [ -n "$UTOPIA_DATABASE_REFERENCE" ] || [ -n "$UTOPIA_HTTP_REFERENCE" ] || [ -n "$UTOPIA_MONGO_REFERENCE" ]; then \ - test -n "$UTOPIA_CACHE_REFERENCE" \ - && test -n "$UTOPIA_DATABASE_REFERENCE" \ - && test -n "$UTOPIA_HTTP_REFERENCE" \ - && test -n "$UTOPIA_MONGO_REFERENCE" \ - && git init /tmp/utopia-monorepo \ - && git -C /tmp/utopia-monorepo remote add origin https://github.com/utopia-php/monorepo.git \ - && git -C /tmp/utopia-monorepo fetch --depth 1 origin "$UTOPIA_CACHE_REFERENCE" \ - && git -C /tmp/utopia-monorepo checkout --detach FETCH_HEAD \ - && cp -R /tmp/utopia-monorepo/packages/cache/src/. vendor/utopia-php/cache/src/ \ - && git -C /tmp/utopia-monorepo fetch --depth 1 origin "$UTOPIA_HTTP_REFERENCE" \ - && git -C /tmp/utopia-monorepo checkout --detach FETCH_HEAD \ - && cp -R /tmp/utopia-monorepo/packages/http/src/. vendor/utopia-php/http/src/ \ - && git init /tmp/utopia-database \ - && git -C /tmp/utopia-database remote add origin https://github.com/utopia-php/database.git \ - && git -C /tmp/utopia-database fetch --depth 1 origin "$UTOPIA_DATABASE_REFERENCE" \ - && git -C /tmp/utopia-database checkout --detach FETCH_HEAD \ - && cp -R /tmp/utopia-database/src/. vendor/utopia-php/database/src/ \ - && git init /tmp/utopia-mongo \ - && git -C /tmp/utopia-mongo remote add origin https://github.com/utopia-php/mongo.git \ - && git -C /tmp/utopia-mongo fetch --depth 1 origin "$UTOPIA_MONGO_REFERENCE" \ - && git -C /tmp/utopia-mongo checkout --detach FETCH_HEAD \ - && cp -R /tmp/utopia-mongo/src/. vendor/utopia-php/mongo/src/; \ - fi + `if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` FROM appwrite/base:2.0.0 AS base diff --git a/composer.lock b/composer.lock index f960ddbd42..1841e42ac4 100644 --- a/composer.lock +++ b/composer.lock @@ -3272,16 +3272,16 @@ }, { "name": "utopia-php/cache", - "version": "4.0.1", + "version": "4.0.2", "source": { "type": "git", "url": "https://github.com/utopia-php/cache.git", - "reference": "6f8cb03a5cb76e95b95a05103cd14cf782b8060f" + "reference": "92e02dab63606234b993b841ebf4c58845dd4620" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cache/zipball/6f8cb03a5cb76e95b95a05103cd14cf782b8060f", - "reference": "6f8cb03a5cb76e95b95a05103cd14cf782b8060f", + "url": "https://api.github.com/repos/utopia-php/cache/zipball/92e02dab63606234b993b841ebf4c58845dd4620", + "reference": "92e02dab63606234b993b841ebf4c58845dd4620", "shasum": "" }, "require": { @@ -3325,9 +3325,9 @@ ], "support": { "issues": "https://github.com/utopia-php/cache/issues", - "source": "https://github.com/utopia-php/cache/tree/4.0.1" + "source": "https://github.com/utopia-php/cache/tree/4.0.2" }, - "time": "2026-08-04T00:06:02+00:00" + "time": "2026-08-12T07:48:59+00:00" }, { "name": "utopia-php/circuit-breaker", @@ -3638,16 +3638,16 @@ }, { "name": "utopia-php/database", - "version": "7.1.3", + "version": "7.1.4", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "ce4e14e11cf8f9e6897015d5a7f8bb44a4b74949" + "reference": "b2b136a3827ccee2ea4eb83626348db4992286e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/ce4e14e11cf8f9e6897015d5a7f8bb44a4b74949", - "reference": "ce4e14e11cf8f9e6897015d5a7f8bb44a4b74949", + "url": "https://api.github.com/repos/utopia-php/database/zipball/b2b136a3827ccee2ea4eb83626348db4992286e1", + "reference": "b2b136a3827ccee2ea4eb83626348db4992286e1", "shasum": "" }, "require": { @@ -3692,9 +3692,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/7.1.3" + "source": "https://github.com/utopia-php/database/tree/7.1.4" }, - "time": "2026-08-10T12:17:57+00:00" + "time": "2026-08-12T09:39:29+00:00" }, { "name": "utopia-php/detector", @@ -4058,16 +4058,16 @@ }, { "name": "utopia-php/http", - "version": "2.0.0-rc21", + "version": "2.0.0-rc22", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "9d8d374926dd2d3c35808deb72199ab943355d64" + "reference": "cc791f56bfa1114d8e5c721f68eb4ad581140883" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/9d8d374926dd2d3c35808deb72199ab943355d64", - "reference": "9d8d374926dd2d3c35808deb72199ab943355d64", + "url": "https://api.github.com/repos/utopia-php/http/zipball/cc791f56bfa1114d8e5c721f68eb4ad581140883", + "reference": "cc791f56bfa1114d8e5c721f68eb4ad581140883", "shasum": "" }, "require": { @@ -4105,9 +4105,9 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/2.0.0-rc21" + "source": "https://github.com/utopia-php/http/tree/2.0.0-rc22" }, - "time": "2026-08-10T04:51:03+00:00" + "time": "2026-08-12T06:51:48+00:00" }, { "name": "utopia-php/image", @@ -4416,16 +4416,16 @@ }, { "name": "utopia-php/mongo", - "version": "1.5.1", + "version": "1.5.2", "source": { "type": "git", "url": "https://github.com/utopia-php/mongo.git", - "reference": "3ece830d1d72d2c9f68c656738e285629b5c72a9" + "reference": "20f9a644a356599fdd6265ba48696fc42a1f1881" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/mongo/zipball/3ece830d1d72d2c9f68c656738e285629b5c72a9", - "reference": "3ece830d1d72d2c9f68c656738e285629b5c72a9", + "url": "https://api.github.com/repos/utopia-php/mongo/zipball/20f9a644a356599fdd6265ba48696fc42a1f1881", + "reference": "20f9a644a356599fdd6265ba48696fc42a1f1881", "shasum": "" }, "require": { @@ -4471,9 +4471,9 @@ ], "support": { "issues": "https://github.com/utopia-php/mongo/issues", - "source": "https://github.com/utopia-php/mongo/tree/1.5.1" + "source": "https://github.com/utopia-php/mongo/tree/1.5.2" }, - "time": "2026-08-02T00:46:11+00:00" + "time": "2026-08-12T06:57:25+00:00" }, { "name": "utopia-php/platform", @@ -8439,5 +8439,5 @@ "platform-dev": { "ext-fileinfo": "*" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" }