diff --git a/CHANGES.md b/CHANGES.md index 91e6e4dbe..ba628e241 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ - Renamed *Devices* to *Sessions* - Add Provider Icon to each Session - Add Anonymous Account Placeholder +- Upgraded phpmailer version to 6.5.0 (#1317) - Upgraded telegraf docker image version to v1.2.0 - Added new environment variables to the `telegraf` service: (#1202) - _APP_INFLUXDB_HOST @@ -24,6 +25,7 @@ ## Breaking Changes (Read before upgrading!) - Renamed `env` param on `/v1/functions` to `runtime` (#1314) +- Renamed `deleteUser` method in all SDKs to `delete` (#1216) ## Bugs @@ -42,10 +44,6 @@ - Fixed potential XSS injection on the console -## Breaking Changes (Read before upgrading!) - -- Renamed `deleteUser` method in all SDKs to `delete` (#1216) - # Version 0.8.0 ## Features diff --git a/app/config/variables.php b/app/config/variables.php index 7b1bf1054..e5372f54d 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -67,7 +67,7 @@ return [ 'introduction' => '', 'default' => 'localhost', 'required' => true, - 'question' => 'Enter a DNS A record hostname to serve as a CNAME for your custom domains.\nYou can use the same value as used for the Appwrite hostname.', + 'question' => 'Enter a DNS A record hostname to serve as a CNAME for your custom domains.' . PHP_EOL . 'You can use the same value as used for the Appwrite hostname.', 'filter' => '' ], [ diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index ce8a765c8..a161b2bde 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -46,7 +46,6 @@ App::get('/v1/health/db') ->action(function ($response, $app) { /** @var Appwrite\Utopia\Response $response */ /** @var Utopia\App $app */ - $app->getResource('db'); $response->json(['status' => 'OK']); diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index c4fe8c849..3adb03104 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -242,7 +242,7 @@ App::get('/v1/storage/files/:fileId/preview') ->param('fileId', '', new UID(), 'File unique ID') ->param('width', 0, new Range(0, 4000), 'Resize preview image width, Pass an integer between 0 to 4000.', true) ->param('height', 0, new Range(0, 4000), 'Resize preview image height, Pass an integer between 0 to 4000.', true) - ->param('gravity', Image::GRAVITY_CENTER, new WhiteList([Image::GRAVITY_CENTER, Image::GRAVITY_NORTH, Image::GRAVITY_NORTHWEST, Image::GRAVITY_NORTHEAST, Image::GRAVITY_WEST, Image::GRAVITY_EAST, Image::GRAVITY_SOUTHWEST, Image::GRAVITY_SOUTH, Image::GRAVITY_SOUTHEAST]), 'Image crop gravity', true) + ->param('gravity', Image::GRAVITY_CENTER, new WhiteList(Image::getGravityTypes()), 'Image crop gravity. Can be one of ' . implode(",", Image::getGravityTypes()), true) ->param('quality', 100, new Range(0, 100), 'Preview image quality. Pass an integer between 0 to 100. Defaults to 100.', true) ->param('borderWidth', 0, new Range(0, 100), 'Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.', true) ->param('borderColor', '', new HexColor(), 'Preview image border color. Use a valid HEX color, no # is needed for prefix.', true) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 07e021a4b..26948cef3 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -35,9 +35,7 @@ App::init(function ($utopia, $request, $response, $project, $user, $register, $e /* * Abuse Check */ - $timeLimit = new TimeLimit($route->getLabel('abuse-key', 'url:{url},ip:{ip}'), $route->getLabel('abuse-limit', 0), $route->getLabel('abuse-time', 3600), function () use (&$db) { - return $db; - }); + $timeLimit = new TimeLimit($route->getLabel('abuse-key', 'url:{url},ip:{ip}'), $route->getLabel('abuse-limit', 0), $route->getLabel('abuse-time', 3600), $db); $timeLimit->setNamespace('app_'.$project->getId()); $timeLimit ->setParam('{userId}', $user->getId()) diff --git a/app/http.php b/app/http.php index 170e478d8..6b216da80 100644 --- a/app/http.php +++ b/app/http.php @@ -4,14 +4,14 @@ require_once __DIR__.'/../vendor/autoload.php'; use Appwrite\Database\Validator\Authorization; use Appwrite\Utopia\Response; -use Utopia\Swoole\Files; -use Utopia\Swoole\Request; use Swoole\Process; use Swoole\Http\Server; use Swoole\Http\Request as SwooleRequest; use Swoole\Http\Response as SwooleResponse; use Utopia\App; use Utopia\CLI\Console; +use Utopia\Swoole\Files; +use Utopia\Swoole\Request; $http = new Server("0.0.0.0", App::getEnv('PORT', 80)); diff --git a/app/workers/deletes.php b/app/workers/deletes.php index f2931de31..a0a5708b6 100644 --- a/app/workers/deletes.php +++ b/app/workers/deletes.php @@ -176,9 +176,7 @@ class DeletesV1 extends Worker throw new Exception('Failed to delete audit logs. No timestamp provided'); } - $timeLimit = new TimeLimit("", 0, 1, function () use ($register) { - return $register->get('db'); - }); + $timeLimit = new TimeLimit("", 0, 1, $register->get('db')); $this->deleteForProjectIds(function($projectId) use ($timeLimit, $timestamp){ $timeLimit->setNamespace('app_'.$projectId); diff --git a/app/workers/functions.php b/app/workers/functions.php index 0c86a714c..1910fdcac 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -8,6 +8,7 @@ use Appwrite\Database\Validator\Authorization; use Appwrite\Event\Event; use Appwrite\Event\Realtime; use Appwrite\Resque\Worker; +use Appwrite\Utopia\Response\Model\Execution; use Cron\CronExpression; use Swoole\Runtime; use Utopia\App; @@ -481,6 +482,7 @@ class FunctionsV1 extends Worker throw new Exception('Failed saving execution to DB', 500); } + $executionModel = new Execution(); $executionUpdate = new Event('v1-webhooks', 'WebhooksV1'); $executionUpdate @@ -488,7 +490,7 @@ class FunctionsV1 extends Worker ->setParam('userId', $userId) ->setParam('webhooks', $webhooks) ->setParam('event', 'functions.executions.update') - ->setParam('payload', $execution->getArrayCopy()); + ->setParam('eventData', $execution->getArrayCopy(array_keys($executionModel->getRules()))); $executionUpdate->trigger(); @@ -531,7 +533,7 @@ class FunctionsV1 extends Worker if(\count($list) > $max) { Console::info('Starting containers cleanup'); - \usort($list, function ($item1, $item2) { + \uasort($list, function ($item1, $item2) { return (int)($item1['appwrite-created'] ?? 0) <=> (int)($item2['appwrite-created'] ?? 0); }); diff --git a/bin/schedule b/bin/schedule index 6300d97ed..dbc6d94d9 100644 --- a/bin/schedule +++ b/bin/schedule @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -REDIS_BACKEND=$REDIS_BACKEND RESQUE_PHP='/usr/src/code/vendor/autoload.php' php /usr/src/code/vendor/bin/resque-scheduler +INTERVAL=1 REDIS_BACKEND=$REDIS_BACKEND RESQUE_PHP='/usr/src/code/vendor/autoload.php' php /usr/src/code/vendor/bin/resque-scheduler diff --git a/bin/worker-audits b/bin/worker-audits index 8e99481d2..7dd25c75c 100644 --- a/bin/worker-audits +++ b/bin/worker-audits @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -QUEUE='v1-audits' APP_INCLUDE='/usr/src/code/app/workers/audits.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file +INTERVAL=1 QUEUE='v1-audits' APP_INCLUDE='/usr/src/code/app/workers/audits.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file diff --git a/bin/worker-certificates b/bin/worker-certificates index 9214af513..679885fa4 100755 --- a/bin/worker-certificates +++ b/bin/worker-certificates @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -QUEUE='v1-certificates' APP_INCLUDE='/usr/src/code/app/workers/certificates.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file +INTERVAL=1 QUEUE='v1-certificates' APP_INCLUDE='/usr/src/code/app/workers/certificates.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file diff --git a/bin/worker-deletes b/bin/worker-deletes index 517f75530..02c2311fa 100644 --- a/bin/worker-deletes +++ b/bin/worker-deletes @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -QUEUE='v1-deletes' APP_INCLUDE='/usr/src/code/app/workers/deletes.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file +INTERVAL=1 QUEUE='v1-deletes' APP_INCLUDE='/usr/src/code/app/workers/deletes.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file diff --git a/bin/worker-functions b/bin/worker-functions index 29cd4b85c..5e9728c46 100644 --- a/bin/worker-functions +++ b/bin/worker-functions @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -QUEUE='v1-functions' APP_INCLUDE='/usr/src/code/app/workers/functions.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file +INTERVAL=0.1 QUEUE='v1-functions' APP_INCLUDE='/usr/src/code/app/workers/functions.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file diff --git a/bin/worker-mails b/bin/worker-mails index a66394262..87fa64cf7 100644 --- a/bin/worker-mails +++ b/bin/worker-mails @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -QUEUE='v1-mails' APP_INCLUDE='/usr/src/code/app/workers/mails.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file +INTERVAL=1 QUEUE='v1-mails' APP_INCLUDE='/usr/src/code/app/workers/mails.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file diff --git a/bin/worker-tasks b/bin/worker-tasks index bac1f54a8..0b54d9a06 100644 --- a/bin/worker-tasks +++ b/bin/worker-tasks @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -QUEUE='v1-tasks' APP_INCLUDE='/usr/src/code/app/workers/tasks.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file +INTERVAL=0.1 QUEUE='v1-tasks' APP_INCLUDE='/usr/src/code/app/workers/tasks.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file diff --git a/bin/worker-usage b/bin/worker-usage index 9cb9b5ed8..4174acce2 100644 --- a/bin/worker-usage +++ b/bin/worker-usage @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -QUEUE='v1-usage' APP_INCLUDE='/usr/src/code/app/workers/usage.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file +INTERVAL=1 QUEUE='v1-usage' APP_INCLUDE='/usr/src/code/app/workers/usage.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file diff --git a/bin/worker-webhooks b/bin/worker-webhooks index 4ae2fadaa..e34c79658 100644 --- a/bin/worker-webhooks +++ b/bin/worker-webhooks @@ -7,4 +7,4 @@ else REDIS_BACKEND="redis://${_APP_REDIS_USER}:${_APP_REDIS_PASS}@${_APP_REDIS_HOST}:${_APP_REDIS_PORT}" fi -QUEUE='v1-webhooks' APP_INCLUDE='/usr/src/code/app/workers/webhooks.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file +INTERVAL=0.1 QUEUE='v1-webhooks' APP_INCLUDE='/usr/src/code/app/workers/webhooks.php' php /usr/src/code/vendor/bin/resque -dopcache.preload=opcache.preload=/usr/src/code/app/preload.php \ No newline at end of file diff --git a/composer.json b/composer.json index 5725a5406..82c635eaf 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "appwrite/php-runtimes": "0.3.*", "utopia-php/framework": "0.14.*", - "utopia-php/abuse": "0.4.*", + "utopia-php/abuse": "0.5.*", "utopia-php/analytics": "0.2.*", "utopia-php/audit": "0.5.*", "utopia-php/cache": "0.2.*", @@ -51,22 +51,22 @@ "utopia-php/domains": "1.1.*", "utopia-php/swoole": "0.2.*", "utopia-php/storage": "0.5.*", - "utopia-php/image": "0.3.*", "utopia-php/websocket": "dev-main", + "utopia-php/image": "0.5.*", "resque/php-resque": "1.3.6", - "matomo/device-detector": "4.2.2", + "matomo/device-detector": "4.2.3", "dragonmantank/cron-expression": "3.1.0", "influxdb/influxdb-php": "1.15.2", - "phpmailer/phpmailer": "6.4.1", + "phpmailer/phpmailer": "6.5.0", "chillerlan/php-qrcode": "4.3.0", "adhocore/jwt": "1.1.2", - "slickdeals/statsd": "3.0.2" + "slickdeals/statsd": "3.1.0" }, "require-dev": { "appwrite/sdk-generator": "0.10.11", - "swoole/ide-helper": "4.6.6", "textalk/websocket": "1.5.2", - "phpunit/phpunit": "9.5.4", + "swoole/ide-helper": "4.6.7", + "phpunit/phpunit": "9.5.6", "vimeo/psalm": "4.7.2" }, "repositories": [ diff --git a/composer.lock b/composer.lock index 3d1d8d2ad..9143ccbd0 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": "3cf401f31fafb8aa517415681d53c516", + "content-hash": "f0045a975cc1e8215cdfef44472b702f", "packages": [ { "name": "adhocore/jwt", @@ -715,16 +715,16 @@ }, { "name": "matomo/device-detector", - "version": "4.2.2", + "version": "4.2.3", "source": { "type": "git", "url": "https://github.com/matomo-org/device-detector.git", - "reference": "dc270e7645d286d6f01d516a6634aba8b31ad668" + "reference": "d879f07496d6e6ee89cef5bcd925383d9b0c2cc0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/matomo-org/device-detector/zipball/dc270e7645d286d6f01d516a6634aba8b31ad668", - "reference": "dc270e7645d286d6f01d516a6634aba8b31ad668", + "url": "https://api.github.com/repos/matomo-org/device-detector/zipball/d879f07496d6e6ee89cef5bcd925383d9b0c2cc0", + "reference": "d879f07496d6e6ee89cef5bcd925383d9b0c2cc0", "shasum": "" }, "require": { @@ -780,7 +780,7 @@ "source": "https://github.com/matomo-org/matomo", "wiki": "https://dev.matomo.org/" }, - "time": "2021-02-26T07:31:42+00:00" + "time": "2021-05-12T14:14:25+00:00" }, { "name": "mustangostang/spyc", @@ -834,16 +834,16 @@ }, { "name": "phpmailer/phpmailer", - "version": "v6.4.1", + "version": "v6.5.0", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "9256f12d8fb0cd0500f93b19e18c356906cbed3d" + "reference": "a5b5c43e50b7fba655f793ad27303cd74c57363c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/9256f12d8fb0cd0500f93b19e18c356906cbed3d", - "reference": "9256f12d8fb0cd0500f93b19e18c356906cbed3d", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/a5b5c43e50b7fba655f793ad27303cd74c57363c", + "reference": "a5b5c43e50b7fba655f793ad27303cd74c57363c", "shasum": "" }, "require": { @@ -898,7 +898,7 @@ "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { "issues": "https://github.com/PHPMailer/PHPMailer/issues", - "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.4.1" + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.5.0" }, "funding": [ { @@ -906,7 +906,7 @@ "type": "github" } ], - "time": "2021-04-29T12:25:04+00:00" + "time": "2021-06-16T14:33:43+00:00" }, { "name": "psr/http-client", @@ -1192,31 +1192,33 @@ }, { "name": "slickdeals/statsd", - "version": "3.0.2", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/Slickdeals/statsd-php.git", - "reference": "393c6565efbfb23c8296ae3099a62fb6366c6ce3" + "reference": "225588a0a079e145359049f6e5e23eedb1b4c17f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Slickdeals/statsd-php/zipball/393c6565efbfb23c8296ae3099a62fb6366c6ce3", - "reference": "393c6565efbfb23c8296ae3099a62fb6366c6ce3", + "url": "https://api.github.com/repos/Slickdeals/statsd-php/zipball/225588a0a079e145359049f6e5e23eedb1b4c17f", + "reference": "225588a0a079e145359049f6e5e23eedb1b4c17f", "shasum": "" }, "require": { - "php": ">= 7.2" + "php": ">= 7.3 || ^8" + }, + "replace": { + "domnikl/statsd": "self.version" }, "require-dev": { - "flyeralarm/php-code-validator": "^2.2", - "phpunit/phpunit": "~8.0", - "vimeo/psalm": "^3.4" + "friendsofphp/php-cs-fixer": "^3.0", + "phpunit/phpunit": "^9", + "vimeo/psalm": "^4.6" }, "type": "library", "autoload": { "psr-4": { - "Domnikl\\Statsd\\": "src/", - "Domnikl\\Test\\Statsd\\": "tests/unit" + "Domnikl\\Statsd\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1230,7 +1232,7 @@ } ], "description": "a PHP client for statsd", - "homepage": "https://domnikl.github.com/statsd-php", + "homepage": "https://github.com/Slickdeals/statsd-php", "keywords": [ "Metrics", "monitoring", @@ -1239,9 +1241,10 @@ "udp" ], "support": { - "source": "https://github.com/Slickdeals/statsd-php/tree/3.0.2" + "issues": "https://github.com/Slickdeals/statsd-php/issues", + "source": "https://github.com/Slickdeals/statsd-php/tree/3.1.0" }, - "time": "2020-01-03T14:24:58+00:00" + "time": "2021-06-04T20:33:46+00:00" }, { "name": "symfony/polyfill-ctype", @@ -1324,16 +1327,16 @@ }, { "name": "utopia-php/abuse", - "version": "0.4.2", + "version": "0.5.0", "source": { "type": "git", "url": "https://github.com/utopia-php/abuse.git", - "reference": "286b52209818e5033573e6441d65adbc48a6f715" + "reference": "339c1720e5aa5314276128170463594b81f84760" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/abuse/zipball/286b52209818e5033573e6441d65adbc48a6f715", - "reference": "286b52209818e5033573e6441d65adbc48a6f715", + "url": "https://api.github.com/repos/utopia-php/abuse/zipball/339c1720e5aa5314276128170463594b81f84760", + "reference": "339c1720e5aa5314276128170463594b81f84760", "shasum": "" }, "require": { @@ -1370,9 +1373,9 @@ ], "support": { "issues": "https://github.com/utopia-php/abuse/issues", - "source": "https://github.com/utopia-php/abuse/tree/0.4.2" + "source": "https://github.com/utopia-php/abuse/tree/0.5.0" }, - "time": "2021-06-23T15:04:44+00:00" + "time": "2021-06-28T10:11:01+00:00" }, { "name": "utopia-php/analytics", @@ -1742,16 +1745,16 @@ }, { "name": "utopia-php/image", - "version": "0.3.2", + "version": "0.5.0", "source": { "type": "git", "url": "https://github.com/utopia-php/image.git", - "reference": "2044fdd44d87c4253cfe929cca975fd037461b00" + "reference": "5b4ac25e70a95fa10b39c129b742ac66748d40b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/image/zipball/2044fdd44d87c4253cfe929cca975fd037461b00", - "reference": "2044fdd44d87c4253cfe929cca975fd037461b00", + "url": "https://api.github.com/repos/utopia-php/image/zipball/5b4ac25e70a95fa10b39c129b742ac66748d40b8", + "reference": "5b4ac25e70a95fa10b39c129b742ac66748d40b8", "shasum": "" }, "require": { @@ -1789,9 +1792,9 @@ ], "support": { "issues": "https://github.com/utopia-php/image/issues", - "source": "https://github.com/utopia-php/image/tree/0.3.2" + "source": "https://github.com/utopia-php/image/tree/0.5.0" }, - "time": "2021-06-10T09:16:11+00:00" + "time": "2021-06-25T03:40:03+00:00" }, { "name": "utopia-php/locale", @@ -3875,16 +3878,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.4", + "version": "9.5.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c73c6737305e779771147af66c96ca6a7ed8a741" + "reference": "fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c73c6737305e779771147af66c96ca6a7ed8a741", - "reference": "c73c6737305e779771147af66c96ca6a7ed8a741", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb", + "reference": "fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb", "shasum": "" }, "require": { @@ -3914,7 +3917,7 @@ "sebastian/global-state": "^5.0.1", "sebastian/object-enumerator": "^4.0.3", "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^2.3", + "sebastian/type": "^2.3.4", "sebastian/version": "^3.0.2" }, "require-dev": { @@ -3962,7 +3965,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.4" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.6" }, "funding": [ { @@ -3974,7 +3977,7 @@ "type": "github" } ], - "time": "2021-03-23T07:16:29+00:00" + "time": "2021-06-23T05:14:38+00:00" }, { "name": "psr/container", @@ -4990,16 +4993,16 @@ }, { "name": "swoole/ide-helper", - "version": "4.6.6", + "version": "4.6.7", "source": { "type": "git", "url": "https://github.com/swoole/ide-helper.git", - "reference": "d29d71267f8ed4e4993dc057ca53ffdb5d2703b7" + "reference": "0d1409b8274117addfe64d3ea412812a69807411" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/swoole/ide-helper/zipball/d29d71267f8ed4e4993dc057ca53ffdb5d2703b7", - "reference": "d29d71267f8ed4e4993dc057ca53ffdb5d2703b7", + "url": "https://api.github.com/repos/swoole/ide-helper/zipball/0d1409b8274117addfe64d3ea412812a69807411", + "reference": "0d1409b8274117addfe64d3ea412812a69807411", "shasum": "" }, "require-dev": { @@ -5022,7 +5025,7 @@ "description": "IDE help files for Swoole.", "support": { "issues": "https://github.com/swoole/ide-helper/issues", - "source": "https://github.com/swoole/ide-helper/tree/4.6.6" + "source": "https://github.com/swoole/ide-helper/tree/4.6.7" }, "funding": [ { @@ -5038,7 +5041,7 @@ "type": "open_collective" } ], - "time": "2021-04-22T16:38:11+00:00" + "time": "2021-05-14T16:05:16+00:00" }, { "name": "symfony/console", @@ -6110,9 +6113,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "utopia-php/websocket": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/docs/references/account/create-session-anonymous.md b/docs/references/account/create-session-anonymous.md index 61895604a..f10778b78 100644 --- a/docs/references/account/create-session-anonymous.md +++ b/docs/references/account/create-session-anonymous.md @@ -1 +1 @@ -Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account account, you need to update its [email and password](/docs/client/account#accountUpdateEmail). \ No newline at end of file +Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](/docs/client/account#accountUpdateEmail) or create an [OAuth2 session](/docs/client/account#accountCreateOAuth2Session). \ No newline at end of file diff --git a/src/Appwrite/Database/Adapter/MySQL.php b/src/Appwrite/Database/Adapter/MySQL.php index 52b0f9d1a..dcee96113 100644 --- a/src/Appwrite/Database/Adapter/MySQL.php +++ b/src/Appwrite/Database/Adapter/MySQL.php @@ -953,4 +953,4 @@ class MySQL extends Adapter { return $this->redis; } -} +} \ No newline at end of file diff --git a/src/Appwrite/Database/Adapter/Redis.php b/src/Appwrite/Database/Adapter/Redis.php index 1abffe460..e4df234e4 100644 --- a/src/Appwrite/Database/Adapter/Redis.php +++ b/src/Appwrite/Database/Adapter/Redis.php @@ -280,4 +280,4 @@ class Redis extends Adapter return parent::setNamespace($namespace); } -} +} \ No newline at end of file