Skip to content

Latest commit

 

History

History
117 lines (72 loc) · 4.71 KB

CHANGELOG.md

File metadata and controls

117 lines (72 loc) · 4.71 KB

Changelog

All notable changes to this project will be documented in this file.

4.0.0 - 2026-09-02

Breaking changes

  • Requires PHP 8.2 or later.
  • Requires CodeIgniter 4.7 or later.
  • Drops htmx 2 support and targets the final htmx 4 request/response model and event lifecycle.
  • Replaces IncomingRequest::getTrigger() with getSource() and removes getTriggerName() and getTriggeringEvent(). The getSource() and getTarget() methods now return htmx 4 element identifiers in tag#id format.
  • Removes the third $after argument from Response::triggerClientEvent() because htmx 4 removed the HX-Trigger-After-Swap and HX-Trigger-After-Settle response headers.
  • Keeps the RedirectResponse::hxLocation() argument order introduced in version 2.3. Its legacy handler position remains reserved, but passing a value now throws because final htmx 4 no longer supports that callback option.

Enhancements

  • Added IncomingRequest::getRequestType(), isPartial(), and isFull() for HX-Request-Type.
  • Added the htmx 4 swap styles, including outerSync, morph swaps, textContent, and shorthand insertion styles.
  • Extended RedirectResponse::hxLocation() with selectOOB, transition, array event data, false values for push and replace, and URL normalization for history options.

Changed

  • Updated the Debug Toolbar integration for the fetch-based htmx 4 request lifecycle.
  • Reworked the error modal for htmx 4 error responses, including a sandboxed HTML preview and raw response source.

2.3.0 - 2026-07-24

Fixes

  • Added the missing push, replace, select, and handler parameters to RedirectResponse::hxLocation().

2.2.0 - 2026-02-04

Fixes

  • Updated the Debug Toolbar integration for newer CodeIgniter releases, including the method signature required by CodeIgniter 4.7 and support for required after filters.

2.1.0 - 2024-11-06

Enhancements

  • Add an option to disable previous URL storage for HTMX requests.
  • Improve RedirectResponse::hxLocation() to also work with full URL, which will be auto-transformed to PATH.

2.0.0 - 2024-10-17

Fixes

  • Make view fragments work properly with complex layouts.
  • Respect fragments visibility based on sections.

Breaking changes

  • The public method View::renderFragment() has been removed.
  • The protected property View::fragments has been removed.
  • The methods have been changed: View::fragment(), View::endFragment(), View::render(), View::include().

1.6.0 - 2024-09-09

Fixes

  • An error when config caching is enabled

1.5.0 - 2024-06-10

Enhancements

  • feat: add HTML formatter

1.4.0 - 2023-11-23

Enhancements

  • feat: add HX-Reselect header support

1.3.0 - 2023-11-20

Enhancements

  • feat: configurable view decorators

1.2.2 - 2023-08-26

Fixed

  • Update Toolbar class for changes in CI 4.4.

1.2.1 - 2023-06-17

Fixed

  • In some cases view_fragment wasn't parsed properly.

1.2.0 - 2023-06-06

Enhancements

  • Add support for displaying the Debug Toolbar after htmx request.

Changed

  • The added JavaScript is now placed in the head tag.

1.1.0 - 2023-01-10

Enhancements

  • Add support for htmx and boosted param to the IncomingRequest::is() method.

1.0.0 - 2022-12-09

Enhancements

  • When an HTTP error response occurs, display it in the modal.
  • Add view_fragment() function to return only fragments of the view.

Fixed

  • Fixed the issue with applying an ErrorDecorator to the CLI requests.

1.0.0-beta.2 - 2022-11-22

Changed

  • Stop including code responsible for showing Debug Toolbar for htmx requests.

1.0.0-beta - 2022-11-19

First beta realease