Releases: maragudk/gomponents
v1.0.0 - the v1 🥳🎉 release
This marks release v1.0.0, which means I'm committed to no more breaking changes.
Congratulations, you now have a totally stable, dependency-free HTML component library for your Go project! 😁
What's Changed
- Move module to maragu.dev/gomponents namespace by @markuswustenberg in #215
- Fix example app to use maragu.dev/gomponents module path by @markuswustenberg in #216
- Fix attr panic test by @markuswustenberg in #222
- Upgrade CI workflow by @markuswustenberg in #223
- Add missing 'hidden' attribute by @glsubri in #224
- Add test for dot imports by @markuswustenberg in #225
- Release v1 by @markuswustenberg in #226
New Contributors
Full Changelog: v0.22.0...v1.0.0
v1.0.0-beta1 - The API is now stable!
This release marks the first beta of a 1.0.0 release. This means that I'm committed to this API going forward,
and breaking changes will only happen in a v2 that hopefully will never come.
The only major change from v0.22.0 is that the module is in a new namespace: maragu.dev/gomponents
Because of Go module dependency pinning and the Go module proxy, I don't think this will have much of an impact on people using the library, but I'm being cautious with a beta release and testing things extensively.
If you find any issues, please report them, either on the discussion attached to this release, or open a separate issue.
What's Changed
⚠️ Move module to maragu.dev/gomponents namespace by @markuswustenberg in #215- Fix example app to use maragu.dev/gomponents module path by @markuswustenberg in #216
Full Changelog: v0.22.0...v1.0.0-beta1
v0.22.0 - the "remove SVG package" release
The svg
package is no more. Note that the html.SVG
element still exists, and SVGs can easily be embedded in the HTML using g.Raw
.
What's Changed
⚠️ Remove SVG package by @markuswustenberg in #214
Full Changelog: v0.21.0...v0.22.0
v0.21.0 - the "Groups are just slices" release
Group
is now a type instead of a function, which is technically a breaking change, but is not expected to impact many codebases, if any at all. Special thanks to @deitrix for suggesting this design! 😎
What's Changed
- Drop support for Go 1.16 and Go 1.17 by @markuswustenberg in #203
- Add full example app by @markuswustenberg in #204
- Make
Group
a type by @markuswustenberg in #202 - Use go workspace in example app by @markuswustenberg in #211
Full Changelog: v0.20.5...v0.21.0
v0.20.5 - Make Groups renderable
What's Changed
- Update attributes.go - add draggable attribute by @sombriks in #185
- Test on Go 1.23 in CI by @yardenshoham in #193
- Add
cite
attribute by @yardenshoham in #192 - Reduce code duplication by reusing the correct function in deprecated functions by @yardenshoham in #194
- Make Groups renderable by @markuswustenberg in #181
New Contributors
- @sombriks made their first contribution in #185
- @yardenshoham made their first contribution in #193
Full Changelog: v0.20.4...v0.20.5
v0.20.4 the "Iff, no really only if" release
This release adds the Iff
function, which takes a callback function instead of the Node
that regular If
does, for those cases where you need to conditionally add components but they can fail for some reason (but usually nil pointer panics). Thanks, @JulienTant!
What's Changed
- Add dir by @amrojjeh in #176
- Add a
Iff
helper by @JulienTant in #172 - Add datetime attribute by @JulienTant in #177
- Adjust documentation on Iff by @markuswustenberg in #179
- Add LabelEl by @markuswustenberg in #180
- Add links to godoc by @markuswustenberg in #183
New Contributors
Full Changelog: v0.20.3...v0.20.4
v0.20.3 - the "opinionated node name collision choice" release
What's Changed
- Deprecate DataAttr, StyleAttr, TitleAttr, FormEl by @markuswustenberg in #174
This doesn't mean those elements and attributes have gone away, but that I've chosen one to be the "main" version without a suffix.
See the PR at #174 and the issue at #170 for a discussion and the chosen solution.
This is a non-breaking change, and the deprecated nodes will stay, probably forever. - Add script's
integrity
andcrossorigin
attributes by @JulienTant in #173 - Add LabelAttr and List attributes by @markuswustenberg in #175
New Contributors
- @JulienTant made their first contribution in #173
Full Changelog: v0.20.2...v0.20.3
v0.20.2 - the "add checked bool attribute" release
What's Changed
- Test with Go 1.20 in CI by @markuswustenberg in #134
- Document Text/Textf helpers better by @markuswustenberg in #135
- Add "checked" bool attribute by @markuswustenberg in #136
- Test Go 1.21 in CI by @markuswustenberg in #147
- Test on Go 1.22 in CI by @markuswustenberg in #165
- Fix wrong codecov by @markuswustenberg in #166
Full Changelog: v0.20.1...v0.20.2
Add ColSpan, RowSpan, and Step HTML attributes, and StrokeWidth SVG attribute
What's Changed
- Add stroke-width SVG attribute by @markuswustenberg in #116
- Add ColSpan and RowSpan attributes by @markuswustenberg in #125
- Add Step attribute by @markuswustenberg in #126
Full Changelog: v0.20.0...v0.20.1
Add Rawf, remove some useless components
InputHidden
, LinkStylesheet
, and LinkPreload
that no-one was using, including myself. If anyone needs them back, here they are:
func InputHidden(name, value string, children ...g.Node) g.Node {
return Input(Type("hidden"), Name(name), Value(value), g.Group(children))
}
func LinkStylesheet(href string, children ...g.Node) g.Node {
return Link(Rel("stylesheet"), Href(href), g.Group(children))
}
func LinkPreload(href, as string, children ...g.Node) g.Node {
return Link(Rel("preload"), Href(href), As(as), g.Group(children))
}
This release also adds a new Rawf
function, that is like Raw
but interpolates the given string like Textf
. Use with care.
Also, added an EncType
html attribute component.