Skip to content

Releases: maxence-charriere/go-app

v10.0.4

22 May 09:06
Compare
Choose a tag to compare

Use elem.setAttribute("class", "value") rather than elem.className = value to handle both standard HTML elements and SVG classes.

Fix #919

v10.0.3

22 May 08:27
Compare
Choose a tag to compare

The go-app <a> tag now supports _blank navigation:

app.A().
    Href("/url").
    Target("_blank")

Fix #879

v10.0.2

22 May 07:47
Compare
Choose a tag to compare

Fix a bug where the app's installable state is not set when the event occurs before the WASM is loaded.

v10.0.1

20 May 06:57
Compare
Choose a tag to compare

Update dependencies.

v10.0.0

20 May 06:50
Compare
Choose a tag to compare

Go-app v10.0.0 is out!

Install

go get -u github.com/maxence-charriere/go-app/v10

Changelog

General

  • The engine has been rewritten to be more maintainable and efficient.
  • .wasm updates are now better handled, addressing cases where the service worker is updated before the .wasm file is loaded.

Route

  • Route functions now take a func() app.Composer parameter:
    app.Route("/hello", func() app.Composer{
        return &helloCompnent{}
    })
  • RouteFunc functions have been removed.
  • The previous Route behavior can be reproduced by using app.NewZeroComponentFactory as the Route parameter:
    app.Route("/hello", app.NewZeroComponentFactory(&helloCompnent{}))

Conditions

  • app.If, app.ElseIf and app.Else now take functions:
    app.If(true, func() app.UI{
        return app.Text("true")
    })
  • Added app.IfSlice, app.ElseIfSlice and app.ElseSlice to handle cases where a function needs to return []app.UI.
    app.IfSlice(true, func() []app.UI{
        return []app.UI{app.Text("true")}
    })

States

  • Context.SetState now uses function chaining to specify options:
    ctx.SetState("ageState", 42).
        Persist().
        ExpiresIn(time.Hour)

v9.8.0

16 Aug 09:58
Compare
Choose a tag to compare
  • Go v1.21 Support
  • Page preloads
  • Replace API string argument by format func (format string, v... any)

v9.7.3

19 Jul 11:47
Compare
Choose a tag to compare

Fixes nested component root updates.

v9.7.2

27 Jun 19:18
Compare
Choose a tag to compare
  • fixes #838 where go-app loader styles were broken.

V9.7.1

27 Jun 10:48
Compare
Choose a tag to compare
  • Fix double styles reference

v9.7.0

27 Jun 09:18
Compare
Choose a tag to compare
  • Routing with fun support
  • Pre-rendered pages are not cached anymore
  • Twitter card support
  • Expired states are now removed from the browser's local storage
  • Handler Preconnect
  • Handler Fonts