Releases: will-wow/typed-htmx-go
Releases · will-wow/typed-htmx-go
v0.2.0
Breaking Changes
- Rename
trigger.Filter
totrigger.When
for more readable triggers
Other changes
- Add many HTMX extensions, all of which take an
hx
as a parameter to support all renderers - Expose a new
htmx.NewStringAttrs()
hx
type for attributes that render to a simple HTML string
Examples
- Progress Bar
- Server-Send Events
- Keyboard shortcuts
Full Changelog: v0.1.0...v0.2.1
v0.1.0
Full Changelog: v0.0.3...v0.1.0
- Improve CSS selector handling by always taking a typed string for any "extended selector", that has types and helpers for everything outside of normal CSS selectors (which can still be passed as strings).
- switch to top-level functions for each selector, and support Gomponents by using generics to construct a per-library version of
hx
- support htmx global config
- use
On
andPoll
instead ofNewEvent
andNewPoll
for a more fluent trigger API - errors in
Vals
,Headers
, andConfig
now return"{}"
instead of nothing - full test coverage
v0.0.4
- more convenient selectors, by having relevant attribute methods take a single typed selector, which may be constructed with a
Relative
function - added a few examples, hosted at https://typed-htmx-go.vercel.app/
v0.0.3
Initial Release
Implements all HTMX attributes, and documents and tests most of the core attributes.