github starfederation/datastar v1.0.0-beta.2

latest releases: v1.0.0-RC.5, v1.0.0-RC.4, v1.0.0-RC.3...
7 months ago

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 to data-on-* attributes.
  • Added the __self modifier to the data-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.

Don't miss a new datastar release

NewReleases is sending notifications on new releases.