---
area: "Changes"
parent: "Changes"
url: "https://unpoly.com/changes/3.7.2"
released: "2024-01-11"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [Changes](https://unpoly.com/changes.md)</nav>

# Version 3.7.2

Released on January 11, 2024 with [7 commits](https://github.com/unpoly/unpoly/commits/v3.7.2)

<nav aria-label="Contents">

- [Validation](#validation)
- [Autosubmit fixes](#autosubmit-fixes)
- [Fragment API](#fragment-api)
- [Upgrading](#upgrading)

</nav>

## Validation {#validation}

This change addresses multiple edge cases with concurrent user input during [form validations](https://unpoly.com/learn/validation.md):

- It is now possible to queue a validation for a fragment while a validation request for the same target is still loading.
- Validations no longer throw an error if a targeted fragment is destroyed while a validation request is loading. Instead Unpoly will only update the fragments that are still present on the page (if any).
- Validations are now aborted if the entire `<form>` element is [aborted](https://unpoly.com/learn/aborting-requests.md). Previously individual validations were aborted when their target was aborted.
- [`up.validate()`](https://unpoly.com/api/up.validate.md) now rejects with an `up.Aborted` error if a debounce delay was aborted (by aborting the `<form>` element).
- When a new validation is queued while a previous validation request is still loading, the full debounce delay of the new validation is now honored.

## Autosubmit fixes {#autosubmit-fixes}

This change fixes two more regressions for [`[up-autosubmit]`](https://unpoly.com/api/up-autosubmit.md), introduced by [3.7.0](https://unpoly.com/changes/3.7.0.md):

- When the user changes a form field while a previous autosubmission is still loading, prevent that new change from being lost.
- A debounce delay is now aborted if the entire `<form>` element is aborted. It no longer aborts the delay when the form's target is aborted.

## Fragment API {#fragment-api}

- [Optional target selectors](https://unpoly.com/learn/targeting-fragments.md#optional-targets) (with [`:maybe`](https://unpoly.com/api/maybe.md) suffix) are now included in the [`X-Up-Target`](https://unpoly.com/api/X-Up-Target.md) header if they match in the current page. Previously optional selector parts were always omitted from [`X-Up-Target`](https://unpoly.com/api/X-Up-Target.md).
- The event [`up:fragment:aborted`](https://unpoly.com/api/up:fragment:aborted.md) now has a new `{ reason }` property. Its a value is a string describing the reason for the fragment being aborted.

## Upgrading {#upgrading}

If you're upgrading from an older Unpoly version you should load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated APIs. Changes handled by `unpoly-migrate.js` are not considered breaking changes.

See our [upgrading guide](https://unpoly.com/changes/upgrading.md) for details.

