Releases: webstronauts/ex_unpoly
Releases · webstronauts/ex_unpoly
v3.0.0
Bug Fixes
- JSON encode X-Up-Title header value for Unpoly 3.0 compliance (084f6b8)
Documentation
- Mark X-Up-Reload-From-Time as deprecated in favor of standard headers (b0b3f91)
- Update module documentation for unpoly 3.0 (2f20d8d)
Features
- Add if_modified_since/1 and if_none_match/1 helpers for cache revalidation (37e311f)
- Add put_etag/2, put_last_modified/2, and put_vary/2 helpers for cache revalidation (95540c7)
- Add accept_layer/2 and dismiss_layer/2 convenience helpers (738e096)
Full Changelog: v2.0.0...v3.0.0
v2.0.0
Breaking Changes
- Require Elixir 1.14 or later.
- Require Phoenix 1.7 or later.
- Remove automatic echoing of X-Up-Location and X-Up-Method response headers. See #6.
Features
- Add X-Up-Evict-Cache and X-Up-Expire-Cache response headers for cache management.
- Add expire_cache/2, evict_cache/2, and keep_cache/1 helper methods for cache control.
- Add context/1 helper to read layer context from X-Up-Context request header.
- Add X-Up-Context response header and put_context/2 helper for updating layer context.
- Add root?/1 and overlay?/1 helpers for layer detection.
- Add X-Up-Open-Layer response header and open_layer/2 helper for forcing overlay layers.
- Add origin_mode/1 and fail_context/1 helpers for experimental request headers.
- Add emit_events/2 helper for emitting JavaScript events to the frontend.
- Add context?/1 helper for checking if layer has context.
Full Changelog: v1.3.0...v2.0.0