Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: laravel/breeze
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.20.0
Choose a base ref
...
head repository: laravel/breeze
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.20.1
Choose a head ref
  • 4 commits
  • 5 files changed
  • 4 contributors

Commits on Mar 20, 2023

  1. Update CHANGELOG

    driesvints authored and github-actions[bot] committed Mar 20, 2023

    Verified

    This commit was signed with the committer’s verified signature. The key has been revoked.
    eggplants haruna
    Copy the full SHA
    674f7c4 View commit details

Commits on Mar 21, 2023

  1. Fix ref in react TextInput (#277)

    Fix ref in react TextInput
    denis-n-ko authored Mar 21, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    62c79d5 View commit details

Commits on Mar 22, 2023

  1. Update current_password rule in ProfileController (#278)

    * update `current_password` rule
    
    * update `current_password` rule in inertia controller
    saade authored Mar 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2f32826 View commit details

Commits on Mar 28, 2023

  1. [1.x] Fix Pest test installation for Inertia stack (#279)

    * Fix installation of Inertia-specific Pest tests
    
    * Add missing failure handler
    jessarcher authored Mar 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bb2935f View commit details
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Release Notes

## [Unreleased](https://github.com/laravel/breeze/compare/v1.19.2...1.x)
## [Unreleased](https://github.com/laravel/breeze/compare/v1.20.0...1.x)

## [v1.20.0](https://github.com/laravel/breeze/compare/v1.19.2...v1.20.0) - 2023-03-20

- Add opt-in TypeScript support by @jessarcher in https://github.com/laravel/breeze/pull/267
- Uses Pest 2 by @nunomaduro in https://github.com/laravel/breeze/pull/274
- API Stub EnsureEmailIsVerified Middleware: Remove unused function arguments in params by @raksbisht in https://github.com/laravel/breeze/pull/264
- Prop consistency by @jessarcher in https://github.com/laravel/breeze/pull/272
- React - Fix potential "undefined" class by @jessarcher in https://github.com/laravel/breeze/pull/271
- React - Remove unnecessary text input wrapper by @jessarcher in https://github.com/laravel/breeze/pull/270
- React - Fix input focusing when password update fails by @jessarcher in https://github.com/laravel/breeze/pull/269
- React - Simplify Form Handler by @jessarcher in https://github.com/laravel/breeze/pull/268
- Fix password-update pest tests by @mtvbrianking in https://github.com/laravel/breeze/pull/273

## [v1.19.2](https://github.com/laravel/breeze/compare/v1.19.1...v1.19.2) - 2023-02-18

17 changes: 14 additions & 3 deletions src/Console/InstallsInertiaStacks.php
Original file line number Diff line number Diff line change
@@ -88,7 +88,11 @@ protected function installInertiaVueStack()
return 1;
}

(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/inertia-common/tests/Feature', base_path('tests/Feature'));
if ($this->option('pest')) {
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/inertia-common/pest-tests/Feature', base_path('tests/Feature'));
} else {
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/inertia-common/tests/Feature', base_path('tests/Feature'));
}

// Routes...
copy(__DIR__.'/../../stubs/inertia-common/routes/web.php', base_path('routes/web.php'));
@@ -247,8 +251,15 @@ protected function installInertiaReactStack()
}

// Tests...
$this->installTests();
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/inertia-common/tests/Feature', base_path('tests/Feature'));
if (! $this->installTests()) {
return 1;
}

if ($this->option('pest')) {
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/inertia-common/pest-tests/Feature', base_path('tests/Feature'));
} else {
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/inertia-common/tests/Feature', base_path('tests/Feature'));
}

// Routes...
copy(__DIR__.'/../../stubs/inertia-common/routes/web.php', base_path('routes/web.php'));
2 changes: 1 addition & 1 deletion stubs/default/app/Http/Controllers/ProfileController.php
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ public function update(ProfileUpdateRequest $request): RedirectResponse
public function destroy(Request $request): RedirectResponse
{
$request->validateWithBag('userDeletion', [
'password' => ['required', 'current-password'],
'password' => ['required', 'current_password'],
]);

$user = $request->user();
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ public function update(ProfileUpdateRequest $request): RedirectResponse
public function destroy(Request $request): RedirectResponse
{
$request->validate([
'password' => ['required', 'current-password'],
'password' => ['required', 'current_password'],
]);

$user = $request->user();
2 changes: 1 addition & 1 deletion stubs/inertia-react/resources/js/Components/TextInput.jsx
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ export default forwardRef(function TextInput({ type = 'text', className = '', is
'border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm ' +
className
}
ref={localRef}
ref={input}
/>
);
});