Revision code

Changes Version 3.3.0
Released on July 16, 2023 with 6 commits

Changes

Elements with an [up-hungry] attribute are updated whenever the server sends a matching element, even if the element isn't targeted explicitly.

By default hungry elements only update from responses that target their own layer. Unpoly 3.0 introduced a modifying attribute [up-if-layer="any"] that tells the element to also update from responses from other layers. Unpoly 3.3.0 addresses two edge cases:

  • Hungry elements with [up-if-layer="any"] are also updated from responses that open an overlay.
  • Hungry elements with [up-if-layer="any"] are also updated from responses that cause an overlay to close.

Upgrading

If you're upgrading from an older Unpoly version you should load unpoly-migrate.js to polyfill deprecated APIs. Changes handled by unpoly-migrate.js are not considered breaking changes.

See our upgrading guide for details.