Repository navigation
Releases: croxton/htmx-booster-pack
Releases · croxton/htmx-booster-pack
Release list
v1.2.0
⚠️ Breaking changes
- Components no longer need to call
mount()in the constructor. - The
eventloading strategy now listens for custom events onwindowinstead ofdocument.body. You may need to update your code to dispatch events that trigger component loading towindow, e.g. changedocument.body.dispatchEvent(new CustomEvent('myCustomEvent'))towindow.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:detachedevent 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.