#5 - (php) Bump inertiajs/inertia-laravel from 0.5.4 to 0.6.2 #158

Closed
dependabot[bot] wants to merge 1 commits from dependabot/composer/main/inertiajs/inertia-laravel-0.6.2 into main
dependabot[bot] commented 2022-06-01 10:33:18 +02:00 (Migrated from github.com)

Bumps inertiajs/inertia-laravel from 0.5.4 to 0.6.2.

Release notes

Sourced from inertiajs/inertia-laravel's releases.

v0.6.2

  • Switch to using the Vary: X-Inertia header (#404)
  • Fix bug with incompatible $request->header() method (#404)

v0.6.1

  • Set Vary: Accept header for all responses (#398)
  • Only register Blade directives when actually needed (#395)

v0.6.0

Automatic redirects

Since returning a Redirect::back() response is such a common pattern within an Inertia app, this adapter now does this automatically for you when no response is returned from a controller (#350).

For example, consider this teams controller which redirects back to the previous page after updating a team. With this new feature you can now omit the Redirect::back() response and it will happen automatically.

class TeamsController extends Controller
{
    public function update(Team $team)
    {
        $team->update(/* ... */);
-
-       return Redirect::back();
    }
}

You can disable this behavior, or even do something entirely different, by adding an onEmptyResponse method to your HandleInertiaRequests middleware:

use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;

/**

  • Determines what to do when an Inertia action returned with no response.
  • By default, we'll redirect the user back to where they came from.
  • @​param Request $request
  • @​param Response $response
  • @​return Response */ public function onEmptyResponse(Request $request, Response $response): Response { // Use the default Laravel "empty" response return $response; }

Fixed

... (truncated)

Changelog

Sourced from inertiajs/inertia-laravel's changelog.

v0.6.2 - 2022-05-24

  • Switch to using the Vary: X-Inertia header (#404)
  • Fix bug with incompatible $request->header() method (#404)

v0.6.1 - 2022-05-24

  • Set Vary: Accept header for all responses (#398)
  • Only register Blade directives when actually needed (#395)

v0.6.0 - 2022-05-10

Added

  • Inertia now redirects back by default when no response is returned from a controller (#350)
  • The Middleware has an overridable onEmptyResponse hook to customize the default 'redirect back' behavior (#350)

Changed

  • Internal: Replaced the Middleware's checkVersion method with an onVersionChange hook (#350)

Fixed

  • Fixed namespace issue with Route::inertia() method (#368)
  • Added session check when sharing validation errors (#380)
  • Fixed docblock on facade render method (#387)
Commits
  • 75859fb Update CHANGELOG.md
  • d00512e Switch to using the Vary: X-Inertia header (#404)
  • a232be0 Update CHANGELOG.md
  • 84f18f8 Register directives only when blade is actually needed (#395)
  • 4056517 Set Vary: Accept header for all responses (#398)
  • 16412da Update CHANGELOG.md
  • ea8f8a5 Remove onEmptyResponse() method from middleware stub
  • b0687d2 Update CHANGELOG.md
  • 8f1990e skip validating errors is session isn't loaded (#380)
  • d33b6b2 Fix render method docblock on facade (#387)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps [inertiajs/inertia-laravel](https://github.com/inertiajs/inertia-laravel) from 0.5.4 to 0.6.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/inertiajs/inertia-laravel/releases">inertiajs/inertia-laravel's releases</a>.</em></p> <blockquote> <h2>v0.6.2</h2> <ul> <li>Switch to using the <code>Vary: X-Inertia</code> header (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/404">#404</a>)</li> <li>Fix bug with incompatible <code>$request-&gt;header()</code> method (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/404">#404</a>)</li> </ul> <h2>v0.6.1</h2> <ul> <li>Set <code>Vary: Accept</code> header for all responses (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/398">#398</a>)</li> <li>Only register Blade directives when actually needed (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/395">#395</a>)</li> </ul> <h2>v0.6.0</h2> <h2>Automatic redirects</h2> <p>Since returning a <code>Redirect::back()</code> response is such a common pattern within an Inertia app, this adapter now does this automatically for you when no response is returned from a controller (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/350">#350</a>).</p> <p>For example, consider this teams controller which redirects back to the previous page after updating a team. With this new feature you can now omit the <code>Redirect::back()</code> response and it will happen automatically.</p> <pre lang="diff"><code>class TeamsController extends Controller { public function update(Team $team) { $team-&gt;update(/* ... */); - - return Redirect::back(); } } </code></pre> <p>You can disable this behavior, or even do something entirely different, by adding an <code>onEmptyResponse</code> method to your <code>HandleInertiaRequests</code> middleware:</p> <pre lang="php"><code>use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; <p>/**</p> <ul> <li>Determines what to do when an Inertia action returned with no response.</li> <li>By default, we'll redirect the user back to where they came from.</li> <li></li> <li><a href="https://github.com/param"><code>@​param</code></a> Request $request</li> <li><a href="https://github.com/param"><code>@​param</code></a> Response $response</li> <li><a href="https://github.com/return"><code>@​return</code></a> Response */ public function onEmptyResponse(Request $request, Response $response): Response { // Use the default Laravel &quot;empty&quot; response return $response; } </code></pre></li> </ul> <h2>Fixed</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/inertiajs/inertia-laravel/blob/master/CHANGELOG.md">inertiajs/inertia-laravel's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/inertiajs/inertia-laravel/compare/v0.6.1...v0.6.2">v0.6.2</a> - 2022-05-24</h2> <ul> <li>Switch to using the <code>Vary: X-Inertia</code> header (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/404">#404</a>)</li> <li>Fix bug with incompatible <code>$request-&gt;header()</code> method (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/404">#404</a>)</li> </ul> <h2><a href="https://github.com/inertiajs/inertia-laravel/compare/v0.6.0...v0.6.1">v0.6.1</a> - 2022-05-24</h2> <ul> <li>Set <code>Vary: Accept</code> header for all responses (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/398">#398</a>)</li> <li>Only register Blade directives when actually needed (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/395">#395</a>)</li> </ul> <h2><a href="https://github.com/inertiajs/inertia-laravel/compare/v0.5.4...v0.6.0">v0.6.0</a> - 2022-05-10</h2> <h3>Added</h3> <ul> <li>Inertia now redirects back by default when no response is returned from a controller (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/350">#350</a>)</li> <li>The Middleware has an overridable <code>onEmptyResponse</code> hook to customize the default 'redirect back' behavior (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/350">#350</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Internal: Replaced the Middleware's <code>checkVersion</code> method with an <code>onVersionChange</code> hook (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/350">#350</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Fixed namespace issue with <code>Route::inertia()</code> method (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/368">#368</a>)</li> <li>Added session check when sharing validation errors (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/380">#380</a>)</li> <li>Fixed docblock on facade render method (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/pull/387">#387</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/75859fb1586c3d37ed8705500b5f43e87eee3cb2"><code>75859fb</code></a> Update CHANGELOG.md</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/d00512eb3faa5dfc3a432e0778866f34fe5eff62"><code>d00512e</code></a> Switch to using the <code>Vary: X-Inertia</code> header (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/issues/404">#404</a>)</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/a232be0c66de6552314e32effaf78b3dd16a20b0"><code>a232be0</code></a> Update CHANGELOG.md</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/84f18f84cbb06be296e49fe05a7bddbedf1fa524"><code>84f18f8</code></a> Register directives only when blade is actually needed (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/issues/395">#395</a>)</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/40565178cc252d9f6b16198e18a6000b7149f86b"><code>4056517</code></a> Set <code>Vary: Accept</code> header for all responses (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/issues/398">#398</a>)</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/16412da7d4bde9fd8c65dfdbe0626d2fb2f1a5e6"><code>16412da</code></a> Update CHANGELOG.md</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/ea8f8a5a377cfdc567820b6afd50767f1794c3df"><code>ea8f8a5</code></a> Remove <code>onEmptyResponse()</code> method from middleware stub</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/b0687d2e9077ed2304f4050d346ab5418ee168f0"><code>b0687d2</code></a> Update CHANGELOG.md</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/8f1990e1bacb3c178e3599058a9121430657798b"><code>8f1990e</code></a> skip validating errors is session isn't loaded (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/issues/380">#380</a>)</li> <li><a href="https://github.com/inertiajs/inertia-laravel/commit/d33b6b2d49306b8d8654ddf89c1639b84657d7f8"><code>d33b6b2</code></a> Fix <code>render</code> method docblock on facade (<a href="https://github-redirect.dependabot.com/inertiajs/inertia-laravel/issues/387">#387</a>)</li> <li>Additional commits viewable in <a href="https://github.com/inertiajs/inertia-laravel/compare/v0.5.4...v0.6.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=inertiajs/inertia-laravel&package-manager=composer&previous-version=0.5.4&new-version=0.6.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
dependabot[bot] commented 2022-06-03 13:39:44 +02:00 (Migrated from github.com)

Looks like inertiajs/inertia-laravel is up-to-date now, so this is no longer needed.

Looks like inertiajs/inertia-laravel is up-to-date now, so this is no longer needed.

Pull request closed

Sign in to join this conversation.
No description provided.