Skip to content

Commit fdcf093

Browse files
authored
fix: update dependencies and modify query method signature (#167)
This pull request primarily updates project dependencies to their latest versions and makes a minor method signature change to improve code flexibility. The updates span both PHP (`composer.json`) and JavaScript (`package.json`) dependencies, ensuring compatibility with newer features and bug fixes. Dependency updates: * Updated several PHP package dependencies in `composer.json`, including `filament/filament`, `laravel/framework`, `spatie/laravel-medialibrary`, and others, to their latest versions for improved stability and feature support. * Added a new VCS repository source for the `internachi/modular` package and switched its version constraint to a specific commit on the `dev-main` branch. * Updated multiple JavaScript development dependencies in `package.json`, such as `axios`, `tailwindcss`, `vite`, and `prettier`, to keep the frontend tooling up to date. Code improvements: * Modified the `modifyQueryWithActiveTab` method signature in `ListEventModels.php` to accept an optional `$isResolvingRecord` boolean parameter, increasing flexibility for future use cases. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Cloudflare integration: trusted proxy support, new config, and daily automatic proxy list reload. * **Chores** * Bumped framework, libraries, and dev tools to newer releases; added Cloudflare package dependency. * **Configuration** * Added example env and test env entries; new app config and CI/review configuration file. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent e358680 commit fdcf093

File tree

11 files changed

+1225
-907
lines changed

11 files changed

+1225
-907
lines changed

.coderabbit.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
3+
language: "en" # English
4+
early_access: false
5+
reviews:
6+
profile: chill
7+
request_changes_workflow: false
8+
high_level_summary: true
9+
commit_status: true
10+
poem: false
11+
review_status: false
12+
collapse_walkthrough: true
13+
estimate_code_review_effort: false
14+
sequence_diagrams: false
15+
changed_files_summary: false
16+
auto_review:
17+
enabled: true
18+
drafts: false
19+
finishing_touches:
20+
docstrings:
21+
enabled: false
22+
unit_tests:
23+
enabled: false
24+
suggested_labels: true
25+
chat:
26+
auto_reply: false
27+
art: false

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ DB_DATABASE=he4rt
1717
DB_USERNAME=root
1818
DB_PASSWORD=root
1919

20+
LARAVEL_CLOUDFLARE_ENABLED=false
21+
2022
BROADCAST_DRIVER=log
2123
CACHE_DRIVER=file
2224
FILESYSTEM_DISK=local

app-modules/events/src/Filament/App/EventModels/Pages/ListEventModels.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function leave(string|int $eventModelId): void
4040
->send();
4141
}
4242

43-
protected function modifyQueryWithActiveTab(Builder $query): Builder
43+
protected function modifyQueryWithActiveTab(Builder $query, bool $isResolvingRecord = false): Builder
4444
{
4545
return $query->where('active', true)->with('attendees')->latest('end_at');
4646
}

bootstrap/app.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Foundation\Application;
66
use Illuminate\Foundation\Configuration\Exceptions;
77
use Illuminate\Foundation\Configuration\Middleware;
8+
use Illuminate\Http\Middleware\TrustProxies;
89

910
return Application::configure(basePath: dirname(__DIR__))
1011
->withRouting(
@@ -14,7 +15,10 @@
1415
channels: __DIR__.'/../routes/channels.php',
1516
health: '/up',
1617
)->withMiddleware(function (Middleware $middleware): void {
17-
//
18+
$middleware->replace(
19+
TrustProxies::class,
20+
Monicahq\Cloudflare\Http\Middleware\TrustProxies::class
21+
);
1822
})
1923
->withExceptions(function (Exceptions $exceptions): void {
2024
//

composer.json

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"require": {
1111
"php": "^8.3",
1212
"calebporzio/sushi": "^2.5.3",
13-
"dedoc/scramble": "^0.13.8",
14-
"filament/filament": "^4.3.1",
15-
"filament/spatie-laravel-media-library-plugin": "^4.3.1",
13+
"dedoc/scramble": "^0.13.11",
14+
"filament/filament": "^4.6.3",
15+
"filament/spatie-laravel-media-library-plugin": "^4.6.3",
1616
"guzzlehttp/guzzle": "^7.10.0",
1717
"he4rt/authentication": ">=1",
1818
"he4rt/badge": ">=1",
@@ -33,43 +33,44 @@
3333
"he4rt/sponsors": ">=1",
3434
"he4rt/tenant": ">=1",
3535
"he4rt/user": ">=1",
36-
"internachi/modular": "^2.3.0",
36+
"internachi/modular": "dev-main#ad95fe9",
3737
"laracord/framework": "dev-next",
38-
"laravel/framework": "^12.43.1",
39-
"laravel/nightwatch": "^1.21.1",
40-
"laravel/sanctum": "^4.2.1",
41-
"laravel/telescope": "^5.16",
42-
"laravel/tinker": "^2.10.2",
43-
"livewire/flux": "^2.10.1",
38+
"laravel/framework": "^12.49.0",
39+
"laravel/nightwatch": "^1.22.1",
40+
"laravel/sanctum": "^4.3.0",
41+
"laravel/telescope": "^5.16.1",
42+
"laravel/tinker": "^2.11.0",
43+
"livewire/flux": "^2.11.1",
4444
"marvinlabs/laravel-discord-logger": "^1.4.3",
45+
"monicahq/laravel-cloudflare": "^4.0",
4546
"otavio-araujo/filament-smart-cep": "^4.0.1",
4647
"owenvoke/blade-fontawesome": "^3.0",
4748
"predis/predis": "^2.4.1",
4849
"ryangjchandler/commonmark-blade-block": "^1.1",
49-
"spatie/laravel-medialibrary": "^11.17.7",
50+
"spatie/laravel-medialibrary": "^11.17.10",
5051
"symfony/browser-kit": "v7.0.8",
5152
"torchlight/torchlight-commonmark": "^0.6.0",
5253
"torchlight/torchlight-laravel": "^0.6.1"
5354
},
5455
"require-dev": {
55-
"barryvdh/laravel-debugbar": "^3.16.2",
56+
"barryvdh/laravel-debugbar": "^3.16.5",
5657
"barryvdh/laravel-ide-helper": "^3.6.1",
57-
"driftingly/rector-laravel": "^2.1.8",
58+
"driftingly/rector-laravel": "^2.1.9",
5859
"fakerphp/faker": "^1.24.1",
59-
"larastan/larastan": "^3.8.1",
60-
"laravel/boost": "^1.8.5",
60+
"larastan/larastan": "^3.9.1",
61+
"laravel/boost": "^1.8.10",
6162
"laravel/pail": "^1.2.4",
62-
"laravel/pint": "^1.26.0",
63-
"laravel/sail": "^1.51.0",
63+
"laravel/pint": "^1.27.0",
64+
"laravel/sail": "^1.52.0",
6465
"mockery/mockery": "^1.6.12",
6566
"nunomaduro/collision": "^8.8.3",
66-
"pestphp/pest": "^4.2.0",
67+
"pestphp/pest": "^4.3.2",
6768
"pestphp/pest-plugin-drift": "^4.0.0",
6869
"pestphp/pest-plugin-faker": "^4.0.0",
6970
"pestphp/pest-plugin-laravel": "^4.0.0",
70-
"pestphp/pest-plugin-livewire": "^4.0.1",
71+
"pestphp/pest-plugin-livewire": "^4.1.0",
7172
"phpstan/extension-installer": "^1.4.3",
72-
"rector/rector": "^2.2.14"
73+
"rector/rector": "^2.3.5"
7374
},
7475
"autoload": {
7576
"psr-4": {
@@ -172,6 +173,10 @@
172173
{
173174
"type": "vcs",
174175
"url": "https://github.com/danielhe4rt/laracord-framework"
176+
},
177+
{
178+
"type": "vcs",
179+
"url": "https://github.com/gvieira18/modular"
175180
}
176181
]
177182
}

0 commit comments

Comments
 (0)