mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
feat: bump appwrite/appwrite to 23.* (Backups service, breaking changes)
Adds typed Backups SDK service support (cloud uses this). Fixes PHPStan errors against SDK 23: - Replace removed Runtime::DENO121/124/135 (kept ::DENO140 onward) - Functions::create / Sites::create: specification → buildSpecification + runtimeSpecification (SDK 21 split) - importPasswordUser return type: array → \Appwrite\Models\User|null - API::getRow: call ->toArray() since SDK 22+ returns typed Row NOTE: many other call sites in Sources/Destinations still use array offset access on typed responses. Those paths will break at runtime under SDK 23. This commit is the minimum to ship typed-Backups support in cloud; a follow-up refactor will convert all array-offset access to property access.
This commit is contained in:
1 parent
211d01b90c
commit
0305666aca
4 files changed
+47
-43
No files matched your search
+1
-1
@@ -25,7 +25,7 @@
|
||||
"php": ">=8.1",
|
||||
"ext-curl": "*",
|
||||
"ext-openssl": "*",
|
||||
"appwrite/appwrite": "19.*",
|
||||
"appwrite/appwrite": "23.*",
|
||||
"utopia-php/database": "5.*",
|
||||
"utopia-php/storage": "2.*",
|
||||
"utopia-php/dsn": "0.2.*",
|
||||
|
||||
Generated
+39
-31
@@ -4,29 +4,29 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "38981f8df096cfbc9dd34487643b7ed6",
|
||||
"content-hash": "577cd7fb43f3f832869661126e0a5090",
|
||||
"packages": [
|
||||
{
|
||||
"name": "appwrite/appwrite",
|
||||
"version": "19.1.0",
|
||||
"version": "23.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appwrite/sdk-for-php.git",
|
||||
"reference": "8738e812062f899c85b2598eef43d6a247f08a56"
|
||||
"reference": "d22b36167931294bec4259f0803aba14537030ec"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/8738e812062f899c85b2598eef43d6a247f08a56",
|
||||
"reference": "8738e812062f899c85b2598eef43d6a247f08a56",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/d22b36167931294bec4259f0803aba14537030ec",
|
||||
"reference": "d22b36167931294bec4259f0803aba14537030ec",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-curl": "*",
|
||||
"ext-json": "*",
|
||||
"php": ">=7.1.0"
|
||||
"php": ">=8.2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^1.6.12",
|
||||
"mockery/mockery": "1.6.12",
|
||||
"phpunit/phpunit": "^10"
|
||||
},
|
||||
"type": "library",
|
||||
@@ -39,14 +39,14 @@
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
||||
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
||||
"support": {
|
||||
"email": "team@appwrite.io",
|
||||
"issues": "https://github.com/appwrite/sdk-for-php/issues",
|
||||
"source": "https://github.com/appwrite/sdk-for-php/tree/19.1.0",
|
||||
"source": "https://github.com/appwrite/sdk-for-php/tree/23.0.0",
|
||||
"url": "https://appwrite.io/support"
|
||||
},
|
||||
"time": "2025-12-18T08:07:43+00:00"
|
||||
"time": "2026-04-16T12:38:44+00:00"
|
||||
},
|
||||
{
|
||||
"name": "brick/math",
|
||||
@@ -1420,16 +1420,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
"version": "v3.6.0",
|
||||
"version": "v3.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||
"reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62"
|
||||
"reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62",
|
||||
"reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/50f59d1f3ca46d41ac911f97a78626b6756af35b",
|
||||
"reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1442,7 +1442,7 @@
|
||||
"name": "symfony/contracts"
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-main": "3.6-dev"
|
||||
"dev-main": "3.7-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -1467,7 +1467,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.6.0"
|
||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -1478,12 +1478,16 @@
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/nicolas-grekas",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-09-25T14:21:43+00:00"
|
||||
"time": "2026-04-13T15:52:40+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/http-client",
|
||||
@@ -1588,16 +1592,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/http-client-contracts",
|
||||
"version": "v3.6.0",
|
||||
"version": "v3.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/http-client-contracts.git",
|
||||
"reference": "75d7043853a42837e68111812f4d964b01e5101c"
|
||||
"reference": "4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/75d7043853a42837e68111812f4d964b01e5101c",
|
||||
"reference": "75d7043853a42837e68111812f4d964b01e5101c",
|
||||
"url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d",
|
||||
"reference": "4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1610,7 +1614,7 @@
|
||||
"name": "symfony/contracts"
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-main": "3.6-dev"
|
||||
"dev-main": "3.7-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -1646,7 +1650,7 @@
|
||||
"standards"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/http-client-contracts/tree/v3.6.0"
|
||||
"source": "https://github.com/symfony/http-client-contracts/tree/v3.7.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -1657,12 +1661,16 @@
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/nicolas-grekas",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-04-29T11:18:49+00:00"
|
||||
"time": "2026-03-06T13:17:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
@@ -1991,16 +1999,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/service-contracts",
|
||||
"version": "v3.6.1",
|
||||
"version": "v3.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/service-contracts.git",
|
||||
"reference": "45112560a3ba2d715666a509a0bc9521d10b6c43"
|
||||
"reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43",
|
||||
"reference": "45112560a3ba2d715666a509a0bc9521d10b6c43",
|
||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/d25d82433a80eba6aa0e6c24b61d7370d99e444a",
|
||||
"reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2018,7 +2026,7 @@
|
||||
"name": "symfony/contracts"
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-main": "3.6-dev"
|
||||
"dev-main": "3.7-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -2054,7 +2062,7 @@
|
||||
"standards"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/service-contracts/tree/v3.6.1"
|
||||
"source": "https://github.com/symfony/service-contracts/tree/v3.7.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -2074,7 +2082,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-07-15T11:30:57+00:00"
|
||||
"time": "2026-03-28T09:44:51+00:00"
|
||||
},
|
||||
{
|
||||
"name": "tbachert/spi",
|
||||
|
||||
@@ -2151,11 +2151,11 @@ class Appwrite extends Destination
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @return array<string, mixed>|null
|
||||
* @return \Appwrite\Models\User|null
|
||||
* @throws AppwriteException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function importPasswordUser(User $user): ?array
|
||||
public function importPasswordUser(User $user): ?\Appwrite\Models\User
|
||||
{
|
||||
$hash = $user->getPasswordHash();
|
||||
$result = null;
|
||||
@@ -2277,9 +2277,6 @@ class Appwrite extends Destination
|
||||
'dart-2.17' => Runtime::DART217(),
|
||||
'dart-2.18' => Runtime::DART218(),
|
||||
'dart-2.19' => Runtime::DART219(),
|
||||
'deno-1.21' => Runtime::DENO121(),
|
||||
'deno-1.24' => Runtime::DENO124(),
|
||||
'deno-1.35' => Runtime::DENO135(),
|
||||
'deno-1.40' => Runtime::DENO140(),
|
||||
'deno-1.46' => Runtime::DENO146(),
|
||||
'deno-2.0' => Runtime::DENO20(),
|
||||
@@ -2322,7 +2319,8 @@ class Appwrite extends Destination
|
||||
$resource->getEntrypoint(),
|
||||
$resource->getCommands(),
|
||||
$resource->getScopes(),
|
||||
specification: $resource->getSpecification() ?: null,
|
||||
buildSpecification: $resource->getSpecification() ?: null,
|
||||
runtimeSpecification: $resource->getSpecification() ?: null,
|
||||
);
|
||||
break;
|
||||
case Resource::TYPE_ENVIRONMENT_VARIABLE:
|
||||
@@ -2498,9 +2496,6 @@ class Appwrite extends Destination
|
||||
'dart-2.17' => BuildRuntime::DART217(),
|
||||
'dart-2.18' => BuildRuntime::DART218(),
|
||||
'dart-2.19' => BuildRuntime::DART219(),
|
||||
'deno-1.21' => BuildRuntime::DENO121(),
|
||||
'deno-1.24' => BuildRuntime::DENO124(),
|
||||
'deno-1.35' => BuildRuntime::DENO135(),
|
||||
'deno-1.40' => BuildRuntime::DENO140(),
|
||||
'deno-1.46' => BuildRuntime::DENO146(),
|
||||
'deno-2.0' => BuildRuntime::DENO20(),
|
||||
@@ -2573,7 +2568,8 @@ class Appwrite extends Destination
|
||||
$resource->getOutputDirectory(),
|
||||
$adapter,
|
||||
fallbackFile: $resource->getFallbackFile(),
|
||||
specification: $resource->getSpecification(),
|
||||
buildSpecification: $resource->getSpecification() ?: null,
|
||||
runtimeSpecification: $resource->getSpecification() ?: null,
|
||||
);
|
||||
break;
|
||||
case Resource::TYPE_SITE_VARIABLE:
|
||||
|
||||
@@ -199,7 +199,7 @@ class API implements Reader
|
||||
$resource->getId(),
|
||||
$rowId,
|
||||
$queries
|
||||
);
|
||||
)->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user