diff --git a/CHANGELOG.md b/CHANGELOG.md index 0856f6e88..0e0ee92a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Release Notes -## [Unreleased](https://github.com/laravel/jetstream/compare/v4.1.2...4.x) +## [Unreleased](https://github.com/laravel/jetstream/compare/v4.2.0...4.x) + +## [v4.2.0](https://github.com/laravel/jetstream/compare/v4.1.2...v4.2.0) - 2023-12-19 + +* [4.x] Vite 5 by [@timacdonald](https://github.com/timacdonald) in https://github.com/laravel/jetstream/pull/1418 ## [v4.1.2](https://github.com/laravel/jetstream/compare/v4.1.1...v4.1.2) - 2023-11-29 diff --git a/stubs/app/Actions/Fortify/UpdateUserProfileInformation.php b/stubs/app/Actions/Fortify/UpdateUserProfileInformation.php index 47e8e6218..9738772de 100644 --- a/stubs/app/Actions/Fortify/UpdateUserProfileInformation.php +++ b/stubs/app/Actions/Fortify/UpdateUserProfileInformation.php @@ -13,7 +13,7 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation /** * Validate and update the given user's profile information. * - * @param array $input + * @param array $input */ public function update(User $user, array $input): void { diff --git a/stubs/tests/EmailVerificationTest.php b/stubs/tests/EmailVerificationTest.php index ad0257d12..412b6335a 100644 --- a/stubs/tests/EmailVerificationTest.php +++ b/stubs/tests/EmailVerificationTest.php @@ -19,8 +19,6 @@ public function test_email_verification_screen_can_be_rendered(): void { if (! Features::enabled(Features::emailVerification())) { $this->markTestSkipped('Email verification not enabled.'); - - return; } $user = User::factory()->withPersonalTeam()->unverified()->create(); @@ -34,8 +32,6 @@ public function test_email_can_be_verified(): void { if (! Features::enabled(Features::emailVerification())) { $this->markTestSkipped('Email verification not enabled.'); - - return; } Event::fake(); @@ -60,8 +56,6 @@ public function test_email_can_not_verified_with_invalid_hash(): void { if (! Features::enabled(Features::emailVerification())) { $this->markTestSkipped('Email verification not enabled.'); - - return; } $user = User::factory()->unverified()->create(); diff --git a/stubs/tests/PasswordResetTest.php b/stubs/tests/PasswordResetTest.php index 7c65edb99..cbd9d0d0a 100644 --- a/stubs/tests/PasswordResetTest.php +++ b/stubs/tests/PasswordResetTest.php @@ -17,8 +17,6 @@ public function test_reset_password_link_screen_can_be_rendered(): void { if (! Features::enabled(Features::resetPasswords())) { $this->markTestSkipped('Password updates are not enabled.'); - - return; } $response = $this->get('/forgot-password'); @@ -30,8 +28,6 @@ public function test_reset_password_link_can_be_requested(): void { if (! Features::enabled(Features::resetPasswords())) { $this->markTestSkipped('Password updates are not enabled.'); - - return; } Notification::fake(); @@ -49,8 +45,6 @@ public function test_reset_password_screen_can_be_rendered(): void { if (! Features::enabled(Features::resetPasswords())) { $this->markTestSkipped('Password updates are not enabled.'); - - return; } Notification::fake(); @@ -74,8 +68,6 @@ public function test_password_can_be_reset_with_valid_token(): void { if (! Features::enabled(Features::resetPasswords())) { $this->markTestSkipped('Password updates are not enabled.'); - - return; } Notification::fake(); diff --git a/stubs/tests/RegistrationTest.php b/stubs/tests/RegistrationTest.php index 90b0245e7..65b916fc6 100644 --- a/stubs/tests/RegistrationTest.php +++ b/stubs/tests/RegistrationTest.php @@ -16,8 +16,6 @@ public function test_registration_screen_can_be_rendered(): void { if (! Features::enabled(Features::registration())) { $this->markTestSkipped('Registration support is not enabled.'); - - return; } $response = $this->get('/register'); @@ -29,8 +27,6 @@ public function test_registration_screen_cannot_be_rendered_if_support_is_disabl { if (Features::enabled(Features::registration())) { $this->markTestSkipped('Registration support is enabled.'); - - return; } $response = $this->get('/register'); @@ -42,8 +38,6 @@ public function test_new_users_can_register(): void { if (! Features::enabled(Features::registration())) { $this->markTestSkipped('Registration support is not enabled.'); - - return; } $response = $this->post('/register', [ diff --git a/stubs/tests/inertia/ApiTokenPermissionsTest.php b/stubs/tests/inertia/ApiTokenPermissionsTest.php index bdf73180b..1ef819218 100644 --- a/stubs/tests/inertia/ApiTokenPermissionsTest.php +++ b/stubs/tests/inertia/ApiTokenPermissionsTest.php @@ -16,8 +16,6 @@ public function test_api_token_permissions_can_be_updated(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); - - return; } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); diff --git a/stubs/tests/inertia/CreateApiTokenTest.php b/stubs/tests/inertia/CreateApiTokenTest.php index 3220f50b4..e5397363d 100644 --- a/stubs/tests/inertia/CreateApiTokenTest.php +++ b/stubs/tests/inertia/CreateApiTokenTest.php @@ -15,8 +15,6 @@ public function test_api_tokens_can_be_created(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); - - return; } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); diff --git a/stubs/tests/inertia/DeleteAccountTest.php b/stubs/tests/inertia/DeleteAccountTest.php index b50a2172a..28c782d6b 100644 --- a/stubs/tests/inertia/DeleteAccountTest.php +++ b/stubs/tests/inertia/DeleteAccountTest.php @@ -15,8 +15,6 @@ public function test_user_accounts_can_be_deleted(): void { if (! Features::hasAccountDeletionFeatures()) { $this->markTestSkipped('Account deletion is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); @@ -32,8 +30,6 @@ public function test_correct_password_must_be_provided_before_account_can_be_del { if (! Features::hasAccountDeletionFeatures()) { $this->markTestSkipped('Account deletion is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); diff --git a/stubs/tests/inertia/DeleteApiTokenTest.php b/stubs/tests/inertia/DeleteApiTokenTest.php index 7d84a1a61..7995429e8 100644 --- a/stubs/tests/inertia/DeleteApiTokenTest.php +++ b/stubs/tests/inertia/DeleteApiTokenTest.php @@ -16,8 +16,6 @@ public function test_api_tokens_can_be_deleted(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); - - return; } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); diff --git a/stubs/tests/inertia/InviteTeamMemberTest.php b/stubs/tests/inertia/InviteTeamMemberTest.php index 60d16135d..cfcd17a05 100644 --- a/stubs/tests/inertia/InviteTeamMemberTest.php +++ b/stubs/tests/inertia/InviteTeamMemberTest.php @@ -17,8 +17,6 @@ public function test_team_members_can_be_invited_to_team(): void { if (! Features::sendsTeamInvitations()) { $this->markTestSkipped('Team invitations not enabled.'); - - return; } Mail::fake(); @@ -39,8 +37,6 @@ public function test_team_member_invitations_can_be_cancelled(): void { if (! Features::sendsTeamInvitations()) { $this->markTestSkipped('Team invitations not enabled.'); - - return; } Mail::fake(); diff --git a/stubs/tests/inertia/TwoFactorAuthenticationSettingsTest.php b/stubs/tests/inertia/TwoFactorAuthenticationSettingsTest.php index 5ba5f622b..9feff4cbb 100644 --- a/stubs/tests/inertia/TwoFactorAuthenticationSettingsTest.php +++ b/stubs/tests/inertia/TwoFactorAuthenticationSettingsTest.php @@ -15,8 +15,6 @@ public function test_two_factor_authentication_can_be_enabled(): void { if (! Features::canManageTwoFactorAuthentication()) { $this->markTestSkipped('Two factor authentication is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); @@ -33,8 +31,6 @@ public function test_recovery_codes_can_be_regenerated(): void { if (! Features::canManageTwoFactorAuthentication()) { $this->markTestSkipped('Two factor authentication is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); @@ -56,8 +52,6 @@ public function test_two_factor_authentication_can_be_disabled(): void { if (! Features::canManageTwoFactorAuthentication()) { $this->markTestSkipped('Two factor authentication is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); diff --git a/stubs/tests/livewire/ApiTokenPermissionsTest.php b/stubs/tests/livewire/ApiTokenPermissionsTest.php index b16b54df4..b15bdbde4 100644 --- a/stubs/tests/livewire/ApiTokenPermissionsTest.php +++ b/stubs/tests/livewire/ApiTokenPermissionsTest.php @@ -18,8 +18,6 @@ public function test_api_token_permissions_can_be_updated(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); - - return; } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); diff --git a/stubs/tests/livewire/CreateApiTokenTest.php b/stubs/tests/livewire/CreateApiTokenTest.php index 744ed90a0..fab69d997 100644 --- a/stubs/tests/livewire/CreateApiTokenTest.php +++ b/stubs/tests/livewire/CreateApiTokenTest.php @@ -17,8 +17,6 @@ public function test_api_tokens_can_be_created(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); - - return; } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); diff --git a/stubs/tests/livewire/DeleteAccountTest.php b/stubs/tests/livewire/DeleteAccountTest.php index bcaf59ffd..561d692fd 100644 --- a/stubs/tests/livewire/DeleteAccountTest.php +++ b/stubs/tests/livewire/DeleteAccountTest.php @@ -17,8 +17,6 @@ public function test_user_accounts_can_be_deleted(): void { if (! Features::hasAccountDeletionFeatures()) { $this->markTestSkipped('Account deletion is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); @@ -34,8 +32,6 @@ public function test_correct_password_must_be_provided_before_account_can_be_del { if (! Features::hasAccountDeletionFeatures()) { $this->markTestSkipped('Account deletion is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); diff --git a/stubs/tests/livewire/DeleteApiTokenTest.php b/stubs/tests/livewire/DeleteApiTokenTest.php index 6ed0861fc..1903e17ea 100644 --- a/stubs/tests/livewire/DeleteApiTokenTest.php +++ b/stubs/tests/livewire/DeleteApiTokenTest.php @@ -18,8 +18,6 @@ public function test_api_tokens_can_be_deleted(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); - - return; } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); diff --git a/stubs/tests/livewire/InviteTeamMemberTest.php b/stubs/tests/livewire/InviteTeamMemberTest.php index bd04de502..bf25aae68 100644 --- a/stubs/tests/livewire/InviteTeamMemberTest.php +++ b/stubs/tests/livewire/InviteTeamMemberTest.php @@ -19,8 +19,6 @@ public function test_team_members_can_be_invited_to_team(): void { if (! Features::sendsTeamInvitations()) { $this->markTestSkipped('Team invitations not enabled.'); - - return; } Mail::fake(); @@ -42,8 +40,6 @@ public function test_team_member_invitations_can_be_cancelled(): void { if (! Features::sendsTeamInvitations()) { $this->markTestSkipped('Team invitations not enabled.'); - - return; } Mail::fake(); diff --git a/stubs/tests/livewire/TwoFactorAuthenticationSettingsTest.php b/stubs/tests/livewire/TwoFactorAuthenticationSettingsTest.php index 686bb028a..132165921 100644 --- a/stubs/tests/livewire/TwoFactorAuthenticationSettingsTest.php +++ b/stubs/tests/livewire/TwoFactorAuthenticationSettingsTest.php @@ -17,8 +17,6 @@ public function test_two_factor_authentication_can_be_enabled(): void { if (! Features::canManageTwoFactorAuthentication()) { $this->markTestSkipped('Two factor authentication is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); @@ -38,8 +36,6 @@ public function test_recovery_codes_can_be_regenerated(): void { if (! Features::canManageTwoFactorAuthentication()) { $this->markTestSkipped('Two factor authentication is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create()); @@ -62,8 +58,6 @@ public function test_two_factor_authentication_can_be_disabled(): void { if (! Features::canManageTwoFactorAuthentication()) { $this->markTestSkipped('Two factor authentication is not enabled.'); - - return; } $this->actingAs($user = User::factory()->create());