Revision code

Changes Version 2.7.1
Released on November 10, 2022 with 22 commits

Changes

This is a maintenance release to bridge the time until Unpoly 3 is completed. This release includes the following changes:

  • When a fragment is revealed, fixed elements obstructing the viewport are now ignored while the fixed element is hidden.
  • Listeners to up:request:load may now access the unopened XMLHttpRequest instance through event.xhr. This lets you track upload progress through event.xhr.upload. (Thanks @iaddict!)
  • Listeners to up:layer:accept may change the layer's acceptance value by setting or mutating event.value.
  • Listeners to up:layer:dismiss may change the layer's dismissal value by setting or mutating event.value.
  • Fix a bug where right-aligned popups would have right-aligned text
  • Fix a bug where clicking links twice will not update location when the browser history API is used in between (#388)

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.