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".
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)
Bumps @imacrayon/alpine-ajax from 0.6.1 to 0.7.0.
Release notes
Sourced from
@imacrayon/alpine-ajax
's releases.Commits
b4ae5cb
Fix typo1567536
Bump version041720f
Addx-target
response code modifiers &ajax:send/sent
(#78)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