---
area: "Changes"
parent: "Changes"
url: "https://unpoly.com/changes/0.54.0"
released: "2018-03-15"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [Changes](https://unpoly.com/changes.md)</nav>

# Version 0.54.0

Released on March 15, 2018 with [6 commits](https://github.com/unpoly/unpoly/commits/v0.54.0)

<nav aria-label="Contents">

- [Passive updates](#passive-updates)
- [Forms](#forms)
- [Linking to fragments](#linking-to-fragments)
- [Fragment update API](#fragment-update-api)

</nav>

## Passive updates {#passive-updates}

- [`[up-hungry]`](https://unpoly.com/api/up-hungry.md) elements will now also be updated when the server responds with an error code. This helps when [`[up-hungry]`](https://unpoly.com/api/up-hungry.md) is used to display error messages.

## Forms {#forms}

- When a [form is submitted](https://unpoly.com/api/up.submit.md) you can now consistently refer to that form element as `&` in CSS selectors ([like in Sass](https://sass-lang.com/documentation/file.SASS_REFERENCE.html#parent-selector)).

  E.g. to reveal the first error message within a failed form submission:

  ```
  <form id="my-form" up-target=".page" up-fail-reveal="& .error">
    ...
  </form>
  ```

  In this case `& .error` will be replaced with `#my-form .error` before submission.

  This affects CSS selectors in the following HTML attributes:
  - `form[up-target]`
  - `form[up-fail-target]`
  - `form[up-reveal]`
  - `form[up-fail-reveal]`

## Linking to fragments {#linking-to-fragments}

- When a [link is followed](https://unpoly.com/api/up-follow.md) you can now consistently refer to that link element as `&` in CSS selectors ([like in Sass](https://sass-lang.com/documentation/file.SASS_REFERENCE.html#parent-selector)).

  This affects CSS selectors in the following HTML attributes:
  - `a[up-target]`
  - `a[up-fail-target]`
  - `a[up-reveal]`
  - `a[up-fail-reveal]`

## Fragment update API {#fragment-update-api}

- New option for [`up.replace()`](https://unpoly.com/api/up.replace.md): `{ keep: false }` will disable preservation of [`[up-keep]`](https://unpoly.com/api/up-keep.md) elements.
- New option for [`up.replace()`](https://unpoly.com/api/up.replace.md): `{ hungry: false }` will disable updates of [`[up-hungry]`](https://unpoly.com/api/up-hungry.md) elements.

