Changelog History
Page 4
-
v5.3.0 Changes
October 13, 2019goapp
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 oldDo
and is executed on the binding chain goroutine- Return values from
Binding.Do
are not longer propagated to the nextDo
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, 2019goapp
๐ goapp can now specify an app name with
init
,build
,run
andclean
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, 2019app
- ๐ 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, 2019app
- ๐ป 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, 2019app
- ๐ฆ
app
package has been moved topkg/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 usemain.go
files if they are nonexistent.
โก๏ธ how to update
goapp update -v
- ๐ฆ
-
v4.2.2 Changes
July 25, 2019Summary
- ๐ Properly remove loading icon when root component is loaded.
-
v4.2.1 Changes
April 12, 2019Summary
- ๐ Desktop theme is now supported. It applies on fonts and context menu. See https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme for compatibility.
- ๐ Context menu position bug fixed.
-
v4.2.0 Changes
March 20, 2019 -
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 thesyscall/js
package.๐ฆ TODO to make this package work:
- โก๏ธ update go to 1.12
- update the goapp cli tool:
goapp update -v
orgo 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.