This release adds some quality-of-life improvements. The main things to write home about are that error handling has been significantly improved, and the order in which plugins are applied to elements is now more deterministic and transparent (depth-first per element, then per data attribute).
Enjoy 🚀
Added
- Added the
data-on-interval
attribute. - Added the
__delay
modifier todata-on-*
attributes. - Added the
__self
modifier to thedata-star-ignore
attribute. - Added the entire context to error messages output in the browser console.
- Added the ability to use an empty value when using the
data-signals-*
syntax, which sets the value to an empty string.
Changed
- Changed the order in which plugins are applied to elements to be depth-first per element, then per
data
attribute (#495). - Improved the handling of invalid expressions and signals, and made error handling generally more granular (#452).
- The
data-star-ignore
attribute now ignores descendant elements by default.
Fixed
- Fixed dashes not being trimmed from keys when double dashes were used (#450).
Removed
- Removed the now redundant
method
option from backend plugin actions (#443). - Removed the concept of macro plugins.