From 5583d946e73a1bb3370399a80def583d16b1b690 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 2 Jul 2021 16:25:48 +0545 Subject: [PATCH 1/4] runtime upgrade --- composer.json | 2 +- composer.lock | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 8d5376a6dd..da9594f4cc 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "ext-sockets": "*", "appwrite/php-clamav": "1.1.*", - "appwrite/php-runtimes": "0.3.*", + "appwrite/php-runtimes": "0.4.*", "utopia-php/framework": "0.14.*", "utopia-php/abuse": "0.5.*", diff --git a/composer.lock b/composer.lock index 301fde3190..740a55cc44 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": "b30bdf7eb1369ae7f2f742e2f30055ae", + "content-hash": "8133b7af84411021118804b9d174b9d5", "packages": [ { "name": "adhocore/jwt", @@ -115,16 +115,16 @@ }, { "name": "appwrite/php-runtimes", - "version": "0.3.0", + "version": "0.4.0", "source": { "type": "git", "url": "https://github.com/appwrite/php-runtimes.git", - "reference": "39be003cdff22c8447de151921001eb5d3bf2319" + "reference": "cc7090a67d8824c779190b38873f0f8154f906b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/php-runtimes/zipball/39be003cdff22c8447de151921001eb5d3bf2319", - "reference": "39be003cdff22c8447de151921001eb5d3bf2319", + "url": "https://api.github.com/repos/appwrite/php-runtimes/zipball/cc7090a67d8824c779190b38873f0f8154f906b2", + "reference": "cc7090a67d8824c779190b38873f0f8154f906b2", "shasum": "" }, "require": { @@ -144,7 +144,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3" + "BSD-3-Clause" ], "authors": [ { @@ -164,9 +164,9 @@ ], "support": { "issues": "https://github.com/appwrite/php-runtimes/issues", - "source": "https://github.com/appwrite/php-runtimes/tree/0.3.0" + "source": "https://github.com/appwrite/php-runtimes/tree/0.4.0" }, - "time": "2021-06-15T07:52:43+00:00" + "time": "2021-06-23T07:17:12+00:00" }, { "name": "chillerlan/php-qrcode", From 743d73dca093ae8a427e5a446bff83a3508672c8 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 2 Jul 2021 16:26:53 +0545 Subject: [PATCH 2/4] make newer node runtime default --- app/config/variables.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/variables.php b/app/config/variables.php index e5372f54d7..b68d4e7bee 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -448,7 +448,7 @@ return [ 'name' => '_APP_FUNCTIONS_RUNTIMES', 'description' => "This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.\n\nTo enable/activate this option, pass a list of allowed environments separated by a comma.\n\nCurrently, supported environments are: " . \implode(', ', \array_keys(Config::getParam('runtimes'))), 'introduction' => '0.8.0', - 'default' => 'node-15.5,deno-1.8,php-8.0,python-3.9,ruby-3.0,dotnet-5.0', + 'default' => 'node-16.0,deno-1.8,php-8.0,python-3.9,ruby-3.0,dotnet-5.0', 'required' => false, 'question' => '', 'filter' => '' From d37afb58c48197537391dff5d7034ceeba9f4aa2 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 2 Jul 2021 16:40:21 +0545 Subject: [PATCH 3/4] adding java 16.0 as default runtime --- app/config/variables.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/variables.php b/app/config/variables.php index b68d4e7bee..c6be9a7e71 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -457,7 +457,7 @@ return [ 'name' => '_APP_FUNCTIONS_ENVS', 'description' => 'Deprectated with 0.8.0, use \'_APP_FUNCTIONS_RUNTIMES\' instead!', 'introduction' => '0.7.0', - 'default' => 'node-14.5,deno-1.8,php-7.4,python-3.9,ruby-3.0,dotnet-5.0', + 'default' => 'node-14.5,deno-1.8,php-7.4,python-3.9,ruby-3.0,dotnet-5.0,java-16.0', 'required' => false, 'question' => '', 'filter' => '' From 48272e8e5000f40096c873961d06290ae55c2af0 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 4 Jul 2021 11:09:56 +0545 Subject: [PATCH 4/4] remove denot and .net --- app/config/variables.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/variables.php b/app/config/variables.php index c6be9a7e71..df7346cd59 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -448,7 +448,7 @@ return [ 'name' => '_APP_FUNCTIONS_RUNTIMES', 'description' => "This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.\n\nTo enable/activate this option, pass a list of allowed environments separated by a comma.\n\nCurrently, supported environments are: " . \implode(', ', \array_keys(Config::getParam('runtimes'))), 'introduction' => '0.8.0', - 'default' => 'node-16.0,deno-1.8,php-8.0,python-3.9,ruby-3.0,dotnet-5.0', + 'default' => 'node-16.0,php-8.0,python-3.9,ruby-3.0,java-16.0', 'required' => false, 'question' => '', 'filter' => '' @@ -457,7 +457,7 @@ return [ 'name' => '_APP_FUNCTIONS_ENVS', 'description' => 'Deprectated with 0.8.0, use \'_APP_FUNCTIONS_RUNTIMES\' instead!', 'introduction' => '0.7.0', - 'default' => 'node-14.5,deno-1.8,php-7.4,python-3.9,ruby-3.0,dotnet-5.0,java-16.0', + 'default' => 'node-16.0,php-7.4,python-3.9,ruby-3.0,java-16.0', 'required' => false, 'question' => '', 'filter' => ''