v2.2.0 - 2022-11-09
Added
- Wails now uses a purpose built, native Go implementation of Microsoft's webview2loader dll. This means there is no need to embed the
Webview2Loader.dll
file in your binaries, meaning filesizes will be ~130k smaller! Thanks to @stffabi for this awesome contribution! - This release provides much more control over custom asset handling via the new AssetServer options. This allows you to provide your own custom asset handler and hook into the request chain through middleware. Thanks to @stffabi for this awesome contribution and @mholt for the initial idea and extensive testing.
- It is now possible to customise the layout of your Wails projects using 2 new options in
wails.json
:build:dir
can be used to specify where the build files residefrontend:dir
can be used to specify where the frontend files reside- If
go.mod
is not found in the same directory aswails.json
, the cli will look up the parent directories to find it. Fixed by @leaanthony in this PR
- Colour output in the CLI can now be turned off by using the
--nocolor
flag. This is useful for CI/CD pipelines. Thanks to @scottopell for the PR - A JSON schema definition for the
wails.json
file has been added. IDEs should now provide code complete when editingwails.json
. Thanks to @binyamin for the PR - The
EventsOn*
methods now return a function that can be called to deregister the listener. Thanks to @joshbuddy for the PR
Fixed
- Webview2 on Windows returns a potential whitespace when defining the style like this style="--wails-draggable: drag". Fixed by @stffabi in #1989
- Bound structs that had
struct{}
field types would cause the Typescript generation to fail. Thanks to @ParkourLiu for the PR - When maximising a frameless window on Windows with multiple monitors, the window could sometimes become blank. Thanks to @stffabi for the fix
Changed
- The troubleshooting guide was updated to provide guidance when Vite fails to start. Thanks to @willdot for the PR.
- English, Chinese and Japanese documentation updates. Thanks to @misitebao.
Deprecated
- The AssetsHandler option has been deprecated. Please use the AssetServer option instead.
New Contributors
- @willdot made their first contribution in #2000
- @ParkourLiu made their first contribution in #1999
- @binyamin made their first contribution in #1864
- @joshbuddy made their first contribution in #1969
- @sgosiaco made their first contribution in #2062