Skip to content

Releases: croxton/htmx-booster-pack

v1.2.0

Choose a tag to compare

@croxton croxton released this 24 Oct 15:02

⚠️ Breaking changes

  • Components no longer need to call mount() in the constructor.
  • The event loading strategy now listens for custom events on window instead of document.body. You may need to update your code to dispatch events that trigger component loading to window, e.g. change document.body.dispatchEvent(new CustomEvent('myCustomEvent')) to window.dispatchEvent(new CustomEvent('myCustomEvent'));

Added

  • Added beforeUnmount() lifecycle support for cleanup that must happen before a component is removed from the DOM (e.g. removing video buffers).
  • Added a booster:detached event that loading strategies can use to perform cleanup routines.
  • Added a helper function js() for lazy loading JavaScript files (for non-module scripts that can’t be statically imported).
  • Added support for htmx 2.0.5+ history restore behaviour while retaining backwards compatibility.

Fixed

  • Prevented unresolved loading strategies from leaking memory.
  • Fixed history restores for conductors when using htmx 2.0.5+.
  • Fixed lifecycle cleanup edge cases when elements are swapped or removed.
  • Components loaded via custom events are now triggered only once.

v1.1.3

Choose a tag to compare

@croxton croxton released this 06 Sep 08:37

Compatibility with the new history restoration logic in htmx 2.0.5+

v1.1.2

Choose a tag to compare

@croxton croxton released this 29 May 14:13
  • Fixed a bug withdata-reset="false"
  • Updated dependencies

v1.1.1

Choose a tag to compare

@croxton croxton released this 21 Dec 18:09
Bump version.

v1.1.0

Choose a tag to compare

@croxton croxton released this 21 Dec 18:01

Added Conductors.

v1.0.9

Choose a tag to compare

@croxton croxton released this 07 Dec 15:01
Restore `hx-history-preserve` attribute, that can be used by any elem…

v1.0.8

Choose a tag to compare

@croxton croxton released this 07 Dec 10:14
Correct typo

v1.0.7

Choose a tag to compare

@croxton croxton released this 06 Dec 14:01
Update readme

v1.0.6

Choose a tag to compare

@croxton croxton released this 05 Dec 14:38
Bump version

v1.0.5

Choose a tag to compare

@croxton croxton released this 04 Dec 16:42
Bump version