From dfb7069e79da5b42094dce13fe6eaeb80ba77f8e Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 25 Mar 2025 18:03:14 +1300 Subject: [PATCH] Update libs --- app/controllers/api/databases.php | 2 +- app/controllers/api/messaging.php | 2 +- app/controllers/api/projects.php | 2 +- app/controllers/api/teams.php | 2 +- app/controllers/api/users.php | 2 +- app/http.php | 2 +- composer.json | 4 +-- composer.lock | 42 ++++++++++++++--------- src/Appwrite/Platform/Workers/Audits.php | 2 +- src/Appwrite/Platform/Workers/Deletes.php | 2 +- 10 files changed, 36 insertions(+), 26 deletions(-) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 0c37e1a765..afd55d22b8 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -20,7 +20,7 @@ use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use MaxMind\Db\Reader; use Utopia\App; -use Utopia\Audit\Audit; +use Utopia\Audit\Adapter\Audit; use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\DateTime; diff --git a/app/controllers/api/messaging.php b/app/controllers/api/messaging.php index 178266db60..922e1f61c0 100644 --- a/app/controllers/api/messaging.php +++ b/app/controllers/api/messaging.php @@ -25,7 +25,7 @@ use Appwrite\Utopia\Database\Validator\Queries\Topics; use Appwrite\Utopia\Response; use MaxMind\Db\Reader; use Utopia\App; -use Utopia\Audit\Audit; +use Utopia\Audit\Adapter\Audit; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 48d20cd17f..8e3004397c 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -21,7 +21,7 @@ use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use PHPMailer\PHPMailer\PHPMailer; use Utopia\App; -use Utopia\Audit\Audit; +use Utopia\Audit\Adapter\Audit; use Utopia\Cache\Cache; use Utopia\Config\Config; use Utopia\Database\Database; diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index dfdccf5e99..b544c15b49 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -26,7 +26,7 @@ use libphonenumber\PhoneNumberUtil; use MaxMind\Db\Reader; use Utopia\Abuse\Abuse; use Utopia\App; -use Utopia\Audit\Audit; +use Utopia\Audit\Adapter\Audit; use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\DateTime; diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 4a551b7478..84ace4fe0c 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -27,7 +27,7 @@ use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use MaxMind\Db\Reader; use Utopia\App; -use Utopia\Audit\Audit; +use Utopia\Audit\Adapter\Audit; use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\DateTime; diff --git a/app/http.php b/app/http.php index 451a25a601..e3ebf76922 100644 --- a/app/http.php +++ b/app/http.php @@ -11,7 +11,7 @@ use Swoole\Http\Server; use Swoole\Process; use Swoole\Table; use Utopia\App; -use Utopia\Audit\Audit; +use Utopia\Audit\Adapter\Audit; use Utopia\CLI\Console; use Utopia\Config\Config; use Utopia\Database\Database; diff --git a/composer.json b/composer.json index b1b6aed539..bda449b0b7 100644 --- a/composer.json +++ b/composer.json @@ -47,11 +47,11 @@ "appwrite/php-clamav": "2.0.*", "utopia-php/abuse": "0.52.*", "utopia-php/analytics": "0.10.*", - "utopia-php/audit": "0.55.*", + "utopia-php/audit": "0.56.*", "utopia-php/cache": "0.12.*", "utopia-php/cli": "0.15.*", "utopia-php/config": "0.2.*", - "utopia-php/database": "0.62.*", + "utopia-php/database": "dev-feat-multi-tenant-insert as 0.62.1", "utopia-php/domains": "0.5.*", "utopia-php/dsn": "0.2.1", "utopia-php/framework": "0.33.*", diff --git a/composer.lock b/composer.lock index 1ea887fdbc..8bfa58f6a1 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": "d2bec8137dcd84994121f89a29932d31", + "content-hash": "5d00164c7aeda6182fc9aa1ffa8d3881", "packages": [ { "name": "adhocore/jwt", @@ -3253,16 +3253,16 @@ }, { "name": "utopia-php/audit", - "version": "0.55.0", + "version": "0.56.0", "source": { "type": "git", "url": "https://github.com/utopia-php/audit.git", - "reference": "9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518" + "reference": "fb5af087cea8f3de50b1e610644fd2672fa3265a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/audit/zipball/9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518", - "reference": "9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518", + "url": "https://api.github.com/repos/utopia-php/audit/zipball/fb5af087cea8f3de50b1e610644fd2672fa3265a", + "reference": "fb5af087cea8f3de50b1e610644fd2672fa3265a", "shasum": "" }, "require": { @@ -3270,8 +3270,9 @@ "utopia-php/database": "0.*.*" }, "require-dev": { + "ext-pdo": "*", "laravel/pint": "1.*", - "phpstan/phpstan": "1.*", + "phpstan/phpstan": "2.*", "phpunit/phpunit": "9.*" }, "type": "library", @@ -3294,9 +3295,9 @@ ], "support": { "issues": "https://github.com/utopia-php/audit/issues", - "source": "https://github.com/utopia-php/audit/tree/0.55.0" + "source": "https://github.com/utopia-php/audit/tree/0.56.0" }, - "time": "2025-03-06T03:47:47+00:00" + "time": "2025-03-25T04:58:15+00:00" }, { "name": "utopia-php/cache", @@ -3497,16 +3498,16 @@ }, { "name": "utopia-php/database", - "version": "0.62.1", + "version": "dev-feat-multi-tenant-insert", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "65dc51466c12552add10395900cdbb4728da4068" + "reference": "2e01c999153a202a8bae9c21e4302e7a674442d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/65dc51466c12552add10395900cdbb4728da4068", - "reference": "65dc51466c12552add10395900cdbb4728da4068", + "url": "https://api.github.com/repos/utopia-php/database/zipball/2e01c999153a202a8bae9c21e4302e7a674442d0", + "reference": "2e01c999153a202a8bae9c21e4302e7a674442d0", "shasum": "" }, "require": { @@ -3546,9 +3547,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/0.62.1" + "source": "https://github.com/utopia-php/database/tree/feat-multi-tenant-insert" }, - "time": "2025-03-24T08:27:18+00:00" + "time": "2025-03-25T04:45:25+00:00" }, { "name": "utopia-php/domains", @@ -8132,9 +8133,18 @@ "time": "2024-03-07T20:33:40+00:00" } ], - "aliases": [], + "aliases": [ + { + "package": "utopia-php/database", + "version": "dev-feat-multi-tenant-insert", + "alias": "0.62.1", + "alias_normalized": "0.62.1.0" + } + ], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "utopia-php/database": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/src/Appwrite/Platform/Workers/Audits.php b/src/Appwrite/Platform/Workers/Audits.php index ed5ff8010a..84d53b20e6 100644 --- a/src/Appwrite/Platform/Workers/Audits.php +++ b/src/Appwrite/Platform/Workers/Audits.php @@ -5,7 +5,7 @@ namespace Appwrite\Platform\Workers; use Appwrite\Auth\Auth; use Exception; use Throwable; -use Utopia\Audit\Audit; +use Utopia\Audit\Adapter\Audit; use Utopia\CLI\Console; use Utopia\Database\Document; use Utopia\Database\Exception\Authorization; diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index 6dff127784..cd8a647ad7 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -8,7 +8,7 @@ use Appwrite\Extend\Exception; use Executor\Executor; use Throwable; use Utopia\Abuse\Adapters\TimeLimit\Database as AbuseDatabase; -use Utopia\Audit\Audit; +use Utopia\Audit\Adapter\Audit; use Utopia\Cache\Adapter\Filesystem; use Utopia\Cache\Cache; use Utopia\CLI\Console;