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

# Version 0.33.0

Released on January 28, 2017 with [26 commits](https://github.com/unpoly/unpoly/commits/v0.33.0)

## Compatible changes {#compatible-changes}

- When a fragment updates cannot find the requested element, you can now define a fallback selector to use instead.

  A `{ fallback }` option has been added to all JavaScript functions that update fragments, like [`up.replace()`](https://unpoly.com/api/up.replace.md).

  Also an `[up-fallback]` attribute has been added to all CSS selectors that update fragments, like for [`[up-follow]`](https://unpoly.com/api/up-follow.md).

  You can also define fallbacks globally using the [`up.dom.config`](https://unpoly.com/up.dom.config) property.

- Unpoly no longer crashes when a request fails due to a timeout or network problem. In such cases, async functions (like [`up.replace()`](https://unpoly.com/api/up.replace.md)) will leave the page unchanged and reject the returned promise.

- Functions that make a request (like [`up.replace()`](https://unpoly.com/api/up.replace.md) or like [`up.ajax()`](https://unpoly.com/api/up.ajax.md)) now accept a new option `{ timeout }`.

- [Modals](https://unpoly.com/up.modal) no longer create an `.up-modal` element when the server returns a non-200 status and the `{ failTarget }` is replaced instead

- [Popups](https://unpoly.com/up.popup) no longer create an `.up-popup` element when the server returns a non-200 status and the `{ failTarget }` is replaced instead

- Improve performance when updating fragments without transitions

- When updating the `<body>` element with a transition, that transition is now silently ignored instead of throwing an error.

- [`up.util.resolvedPromise()`](https://unpoly.com/up.util.resolvedPromise) now accepts arguments which will become the resolution values.

- [`up.util.resolvedDeferred()`](https://unpoly.com/up.util.resolvedDeferred) now accepts arguments which will become the resolution values.

- New utility method [`up.util.rejectedPromise()`](https://unpoly.com/up.util.rejectedPromise).

- [`up.first()`](https://unpoly.com/up.first) has new option `{ origin }`. You can use it provide a second element or selector that can be referenced as `&` in the first selector:

  ```
  $input = $('input.email');
  up.first('.field:has(&)', $input); // returns the .field containing $input
  ```

- Fix a bug where the document title wasn't restored when the user uses the back button

- When [revealing a page fragment](https://unpoly.com/api/up.reveal.md), Unpoly will include the element's top and bottom margin in the area that should be revealed.

## Breaking changes {#breaking-changes}

- ⚠️ [`up.replace()`](https://unpoly.com/api/up.replace.md) now returns a rejected promise if the server returns a non-200 status code.
- ⚠️ [`up.util.merge()`](https://unpoly.com/api/up.util.merge.md) has been replaced with [`up.util.assign()`](https://unpoly.com/api/up.util.assign.md), which no longer makes exceptions for `null` and `undefined` property values. This behaves like [`Object.assign`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign).
- 🧩 The `up.flow` module has been renamed to [`up.dom`](https://unpoly.com/up.dom).
- 🧩 The `up.navigation` module has been renamed to [`up.status`](https://unpoly.com/api/up.status.md).
- ⚠️ Functions that measure position, dimensions or margin now return floats instead of rounded integers.

