Skip to content

Releases: maragudk/gomponents

v1.0.0 - the v1 🥳🎉 release

11 Oct 08:51
e53dba6
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v0.22.0...v1.0.0

v1.0.0-beta1 - The API is now stable!

03 Oct 09:46
Compare
Choose a tag to compare
Pre-release

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

Full Changelog: v0.22.0...v1.0.0-beta1

v0.22.0 - the "remove SVG package" release

03 Oct 08:57
a58043d
Compare
Choose a tag to compare

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

Full Changelog: v0.21.0...v0.22.0

v0.21.0 - the "Groups are just slices" release

24 Sep 08:38
04640fc
Compare
Choose a tag to compare

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

Full Changelog: v0.20.5...v0.21.0

v0.20.5 - Make Groups renderable

19 Sep 15:03
c97605a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.20.4...v0.20.5

v0.20.4 the "Iff, no really only if" release

26 Jun 10:35
8b43a90
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v0.20.3...v0.20.4

v0.20.3 - the "opinionated node name collision choice" release

06 Jun 11:34
b950ec2
Compare
Choose a tag to compare

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 and crossorigin attributes by @JulienTant in #173
  • Add LabelAttr and List attributes by @markuswustenberg in #175

New Contributors

Full Changelog: v0.20.2...v0.20.3

v0.20.2 - the "add checked bool attribute" release

09 Feb 09:39
4e1554d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.20.1...v0.20.2

Add ColSpan, RowSpan, and Step HTML attributes, and StrokeWidth SVG attribute

17 Jan 12:08
8e4b131
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.20.0...v0.20.1

Add Rawf, remove some useless components

03 Nov 10:41
b12942f
Compare
Choose a tag to compare

⚠️ BREAKING: This release removes the high-level helper 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.