Repository navigation
v0.2.2
Changes
- Simplified Datastar configuration API: Flattened
DatastarConfigstruct intoOptionswith directDatastarContentandDatastarPathfields - Improved thread safety: Replaced boolean flag with
sync.Oncefor handler registration
Migration
// Before
v.Config(via.Options{
Datastar: &via.DatastarConfig{
Content: customScript,
Path: "/assets/datastar.js",
},
})
// After
v.Config(via.Options{
DatastarContent: customScript,
DatastarPath: "/assets/datastar.js",
})