All Versions
83
Latest Version
Avg Release Cycle
12 days
Latest Release
1219 days ago

Changelog History
Page 4

  • v5.3.0 Changes

    October 13, 2019

    goapp

    • goapp does not generate gzip files anymore

    app

    • ๐Ÿšš Binding.State has been removed
    • ๐Ÿšš Binding.DoOnUI has been removed
    • ๐Ÿ’ป Binding.Do is now executed on UI goroutine
    • Binding.DoAsync replaces old Do and is executed on the binding chain goroutine
    • Return values from Binding.Do are not longer propagated to the next Do args in the binding chain
    • Values can be set and retrieved from a BindContext
    • Binding.WhenCancel now takes a BindContext as argument
  • v5.2.0 Changes

    October 06, 2019

    goapp

    • ๐Ÿ— goapp can now specify an app name with init, build, run and clean commands.

      goapp init -v -name demo # ./cmd/demo-server and ./cmd/demo-wasm will be created.goapp build -v -name demo # build ./cmd/demo-server/demo-server and ./cmd/demo-server/web/goapp.wasmgoapp run -v -name demo -b chrome # run demo examplegoapp clean -v -name demo # remove ./cmd/demo-server/demo-server and generated resources in ./cmd/demo-server/web

    • ๐Ÿ“ฆ web directory is now located in the server package.

      ./cmd/demo-server/web# rather than ./web

    app

    • ๐Ÿ›  Fixed bug that did not pass errors that occurred when rendering a component.
    • Local storage and Session storage has been added. Data stored in those storages are encrypted.
  • v5.1.0 Changes

    September 11, 2019

    app

    • ๐Ÿ‘ Go 1.13 support
    • ๐Ÿ›  Fixes Out of Memory errors on mobile
    • Binding defer

    goapp

    • ๐Ÿ‘ Now provides go 1.13 wasm support file.
  • v5.0.1 Changes

    September 04, 2019

    app

    • ๐Ÿ’ป Binding can execute a function on the UI goroutine.
    • Binding can wait for a duration before execution the next function.
    • Message can be emitted from html events.

      func (h *Hello) OnMount() { // Binding to the nameChanged msg that wait 1 second and print logs on// binding an ui gouroutines. app.Bind("nameChanged", h). Wait(time.Second). Do(func() { log.Debug("log from binding goroutine") }). DoOnUI(func() { log.Debug("log from UI goroutine") }). Do(func() { log.Debug("another log from binding goroutine") }) // Binding that is called from an html event and modify the Name field. app.Bind("nameChanged", h). DoOnUI(func(s, e js.Value) { h.Name = s.Get("value").String() app.Render(h) }) }func (h *Hello) Render() string { // Input emit a "nameChanged" message when the onchange event occurs.return \<div\> \<!-- ... --\> \<input value="{{.Name}}" placeholder="What is your name?" onchange={{emit nameChanged}} autofocus\> \<!-- ... --\>\</div\>}

  • v5.0.0 Changes

    September 03, 2019

    app

    • ๐Ÿ“ฆ app package has been moved to pkg/app.
    • Component function associated to html events now take js values as argument.

      func(src, event js.Value)

    ๐Ÿ‘€ See CompoHandler

    • Messenger implementation has been added:

      func (h *Hello) OnMount() { app.Bind("click", h). Do(func() { // do something... }) }func (h *Hello) OnClick(s, e js.Value) { app.Emit("click") }

    • ๐Ÿšš Handle has been removed.

    • โšก๏ธ Package has be revamped to use syscall/js to update a page state rather than an intermediary javascript file.

    • ๐Ÿ‘ Single page application (SPA) routing support.

    goapp

    • goapp init now creates ready to use main.go files if they are nonexistent.

    โšก๏ธ how to update

    goapp update -v
    
  • v4.2.2 Changes

    July 25, 2019

    Summary

    • ๐Ÿšš Properly remove loading icon when root component is loaded.
  • v4.2.1 Changes

    April 12, 2019

    Summary

  • v4.2.0 Changes

    March 20, 2019

    Summary

    • ๐Ÿ‘ Chrome desktop progressive app is now supported.

    Screen Shot 2019-03-20 at 1 38 00 AM

    • Icon is now automatically mapped to webDir/icon.png
  • v4.1.0 Changes

    March 01, 2019

    ๐Ÿ‘ Go 1.12 support

    This version brings go 1.12 compatibility.
    ๐Ÿ“ฆ Go 1.12 introduced a breaking change with the syscall/js package.

    ๐Ÿ“ฆ TODO to make this package work:

    • โšก๏ธ update go to 1.12
    • update the goapp cli tool: goapp update -v or go get -u -v github.com/maxence-charriere/app/cmd/goapp

    Offline mode

    ๐Ÿ‘ท Web worker has been implemented in order to support offline mode.

  • v4.0.5 Changes

    February 27, 2019
    • ๐Ÿ›  Fix cache-control header bug that prevented cached resources to be updated.