Skip to content

Releases: maxence-charriere/go-app

v10.0.9

03 Dec 10:56
866eab7
Compare
Choose a tag to compare

Changes

  • Fixed the maskable icon issue on Safari.
  • Icons other than the default icon are now excluded from the app manifest unless explicitly specified.

v10.0.8

10 Oct 06:58
25ff169
Compare
Choose a tag to compare

Changes

  • Handler URL values now preserve case
  • OnAppUpdate is triggered back on service worker activation

Thanks to @vito for his contribution.

v10.0.7

02 Oct 13:28
Compare
Choose a tag to compare

Summary

  • PWA updates fixed

v10.0.6

22 Aug 13:36
4c248da
Compare
Choose a tag to compare

Changes

  • Fixed a bug in the Raw element where the parent was not set during updates.

v10.0.5

15 Jun 05:30
Compare
Choose a tag to compare

Service worker is handled once the page is loaded.

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)