foxcoverts / climbing-team

Activity team bookings management site.
https://climbfoxcoverts.co.uk/
MIT License
2 stars 0 forks source link

Bump @imacrayon/alpine-ajax from 0.6.1 to 0.8.0 #214

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 3 months ago

Bumps @imacrayon/alpine-ajax from 0.6.1 to 0.8.0.

Release notes

Sourced from @​imacrayon/alpine-ajax's releases.

v0.8.0

This update changes the behavior of the special _self keyword when using status code modifiers on x-target:

<form x-target="my_form" x-target.3xx="_self">

Previously this code would trigger a full page reload when the form request responded with a redirect. Now, it will only trigger a full page reload if the redirect's location is a URL not matching the current page. In the case that this form does redirect back to the current page, like to show validation errors, my_form will be used as the target instead.

This new behavior is documented here: https://alpine-ajax.js.org/reference/#_self-special-exception

In cases where you want the page to reload no matter what (the old _self behvaior), you can use _top instead.

v0.7.1

A small release to fixes a few issues related to the x-target status code modifier.

  • The mock server was updated to respond with a status code. (You'll be able to modify this status code in the next release.)
  • aria-busy is removed from "old" targets when a status code modifier causes the targets to change.

v0.7.0

This release provides new APIs for overriding AJAX request options and handling responses.

What's New

  • x-target response code modifiers: You can use modifiers like x-target.422 or x-target.3xx to change targets based on the status code returned from a response. Learn more in the documentation.
  • ajax:send: This event fires when an AJAX request is issued. $event.detail contains the request’s options, modifying these options will override the underlying fetch call.
  • ajax:sent: This event replaces ajax:after.

What's Changes

  • ajax:after now fires after all merging has settled. $event.detail now contains a response object that matches the old $event.detail and a render array that includes all rendered targets.
  • The followRedirects config option and the x-target.follow modifier have been removed in favor of using response code modifiers. You can match the same behavior as x-target.follow using x-target x-target.3xx="_self".

Full Changelog: https://github.com/imacrayon/alpine-ajax/compare/v0.6.1...v0.7.0

Commits


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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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)