Skip to content

Commit e5ec249

Browse files
authored
Feature/update dependencies (#324)
* feat: upgrade both frontend and backend dependencies fix some issues that arose while doing so, nothing super important * docs: update next.md * fix: add missing translation label.
1 parent 4d853f0 commit e5ec249

24 files changed

Lines changed: 1131 additions & 866 deletions

_changelog/next.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@
1414

1515
### Internals
1616

17-
[//]: # (- Changes that are mostly relevant to maintainers and contributors, such as refactors, dependency updates, CI changes, etc.)
17+
- Upgraded `logiscape/mcp-sdk-php` to v2.0 (major version bump). `HawkiMcpClient::callTool()` return type extended to `CallToolResult|CreateTaskResult` to match the new SDK API.
18+
- `pdfjs-dist` upgraded to v6 (major version), `docx-preview` to ^0.4, and `katex` to ^0.18 on the frontend.
19+
- Added `mockery/mockery ^1.6` as a dev dependency for richer mock-based testing.
20+
- `UserFactory` refactored to align with the current `User` model schema: removed `email_verified_at`, `password`, and `remember_token`; added `username`, `employeetype`, `publicKey`, `avatar_id`, `bio`, and `isRemoved`.
21+
- `ConfigSyncMigrationTrait` now suppresses console output when running under PHPUnit to keep test output clean.
22+
- Removed a `@phpstan-ignore-next-line` suppression from `AppServiceProvider`, improving PHPStan compliance.
23+
- General PHP dependency updates: `laravel/framework` ^13.23, `laravel-json-api/laravel` ^5.3, `laravel/reverb` ^1.11, `phpunit/phpunit` ^11.5, `phpstan/phpstan` ^2.2, `larastan/larastan` ^3.10, and various other packages brought to their latest compatible versions.
24+
- General frontend dependency updates: `vite` ^8.2, `shadcn-svelte` ^1.4, `laravel-echo` ^2.4, `markstream-svelte` ^0.0.3, and related tooling.
1825

1926
### Deprecation
2027

app/Providers/AppServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ private function bootUrlGeneratorMacros(): void
120120
{
121121
UrlGenerator::macro('getForcedRoot',
122122
function () {
123-
/* @phpstan-ignore-next-line property.protected */
124123
return $this->forcedRoot;
125124
}
126125
);

app/Services/Ai/ConfigFileSync/ConfigSyncMigrationTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public function up(): void
5858
]
5959
];
6060

61+
$isInPhpUnit = defined('PHPUNIT_COMPOSER_INSTALL') || defined('__PHPUNIT_PHAR__');
62+
6163
foreach ($syncers as $syncer) {
6264
try {
6365
$metrics = $syncer['run']();
@@ -66,8 +68,15 @@ public function up(): void
6668
throw new \RuntimeException("Errors during sync: " . implode(", ", $metrics->getErrors()));
6769
}
6870

71+
if ($isInPhpUnit) {
72+
return; // Skip output during PHPUnit tests to avoid cluttering test output
73+
}
74+
6975
$metrics->writeToCli($io);
7076
} catch (\Throwable $e) {
77+
if ($isInPhpUnit) {
78+
return; // Skip output during PHPUnit tests to avoid cluttering test output
79+
}
7180
$io->warning(sprintf(
7281
'Error during sync: %s, please run the command `%s` to sync manually. IMPORTANT: If you are seeing this, but afterwards see output that tells you that the sync was successful, you can ignore this warning.',
7382
$e->getMessage(),

app/Services/Ai/Tools/Mcp/HawkiMcpClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Illuminate\Container\RewindableGenerator;
1010
use Mcp\Client\ClientSession;
1111
use Mcp\Types\CallToolResult;
12+
use Mcp\Types\CreateTaskResult;
1213
use Psr\Log\LoggerInterface;
1314

1415
/**
@@ -100,7 +101,7 @@ public function ping(): bool
100101
*
101102
* @throws \Throwable on any transport or protocol error.
102103
*/
103-
public function callTool(string $name, ?array $arguments = null): CallToolResult
104+
public function callTool(string $name, ?array $arguments = null): CallToolResult|CreateTaskResult
104105
{
105106
try {
106107
$this->initializeIfNotAlready();

composer.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,36 @@
2121
"ext-pdo": "*",
2222
"ext-zip": "*",
2323
"ext-gd": "*",
24-
"blade-ui-kit/blade-icons": "^1.8.0",
24+
"blade-ui-kit/blade-icons": "^1.10.1",
2525
"hawk-hhg/hawki-crypto": "^0.5.3",
2626
"jumbojett/openid-connect-php": "^1.0.2",
27-
"laravel-json-api/laravel": "^5.2",
27+
"laravel-json-api/laravel": "^5.3",
2828
"laravel-json-api/non-eloquent": "^4.3",
29-
"laravel/ai": "*",
30-
"laravel/framework": "^13.0",
31-
"laravel/reverb": "^1.6.0",
32-
"laravel/sanctum": "^4.2.0",
33-
"league/flysystem-aws-s3-v3": "^3.30.1",
34-
"league/flysystem-sftp-v3": "^3.30.0",
35-
"league/flysystem-webdav": "^3.30.0",
36-
"logiscape/mcp-sdk-php": "^1.7",
29+
"laravel/ai": ">=0.10.1",
30+
"laravel/framework": "^13.23",
31+
"laravel/reverb": "^1.11.0",
32+
"laravel/sanctum": "^4.3.3",
33+
"league/flysystem-aws-s3-v3": "^3.35.2",
34+
"league/flysystem-sftp-v3": "^3.33.0",
35+
"league/flysystem-webdav": "^3.31.0",
36+
"logiscape/mcp-sdk-php": "^2.0.0",
3737
"neunerlei/dbg": "^3.3",
3838
"opis/json-schema": "^2.6",
39-
"phpseclib/phpseclib": "^3.0",
40-
"spatie/laravel-backup": "^10.0"
39+
"phpseclib/phpseclib": "^3.0.55",
40+
"spatie/laravel-backup": "^10.3.1"
4141
},
4242
"require-dev": {
43-
"ergebnis/php-cs-fixer-config": "^6.61",
43+
"ergebnis/php-cs-fixer-config": "^6.63.1",
4444
"fakerphp/faker": "^1.24.1",
45+
"friendsofphp/php-cs-fixer": "^3.95.18",
46+
"larastan/larastan": "^3.10",
4547
"laravel-json-api/testing": "^3.2",
46-
"friendsofphp/php-cs-fixer": "^3.95",
47-
"larastan/larastan": "^3.9",
48-
"laravel/sail": "^1.46.0",
49-
"nunomaduro/collision": "^8.8.2",
50-
"phpstan/phpstan": "^2.1",
51-
"phpunit/phpunit": "^11.0.1",
52-
"spatie/laravel-ignition": "^2.9.1"
48+
"laravel/sail": "^1.64.0",
49+
"mockery/mockery": "^1.6",
50+
"nunomaduro/collision": "^8.9.5",
51+
"phpstan/phpstan": "^2.2.7",
52+
"phpunit/phpunit": "^11.5.56",
53+
"spatie/laravel-ignition": "^2.12.0"
5354
},
5455
"autoload": {
5556
"psr-4": {

0 commit comments

Comments
 (0)