Releases: wailsapp/wails
Releases Β· wailsapp/wails
v2.0.0-beta.44
Deprecation Notice
The data-wails-drag
attribute is being deprecated in favour of the following CSS style:
style="--wails-draggable:drag"
. You can use style="--wails-draggable:no-drag"
to disable the drag behaviour.
For this release only, you can test this by setting the following application option:
Experimental: &options.Experimental{
UseCSSDrag: true,
},
Added
- Set file permissions for generated files by @leaanthony in #1763
- Experimental support for CSS Drag detection by @leaanthony in #1750
Fixed
- Bug fix collecting of output binaries for platforms by @stffabi in #1715
- Fix registration of exposed fields by @ValentinTrinque in #1727
- Fix column widths for doctor command's dependencies table by @ianmjones in #1717
- Do not generate bindings for
OnBeforeClose
method
What's Changed
- Misc code refactors and removal by @leaanthony in #1713
- Add react-router to routing.mdx by @Maicarons2022 in #1755
- Add Japanese to doc by @RyoTagami in #1716
- Added EmailIt and Modal File Manager by @raguay in #1728
- Adding my ScriptBar program by @raguay in #1761
- Link to general webview2 runtime download page and not to a specific language by @stffabi in #1764
- Updated translations in #1719 and #1720
- Remove text outside style's brackets by @DragoSpiro98 in #1765
New Contributors
- @RyoTagami made their first contribution in #1716
- @raguay made their first contribution in #1728
- @Maicarons2022 made their first contribution in #1755
- @DragoSpiro98 made their first contribution in #1765
v2.0.0-beta.43
Added
- Add support for retrieving the release notes from Github by @leaanthony in #1679
- Add
frontend:dev:install
configuration by @LGiki in #1666
Fixed
- Fix formatting of some error messages by @stffabi in #1665
- Windows dialogs now work when window is not visible yet by @leaanthony in #1662
- Multiple fixes for MacOS asset requests by @stffabi in #1668
and #1681 - Fix for Go 1.19 by @stffabi in #1689
- Removed Linux warnings by @leaanthony in #1656
- Better support for doubleclick events in drag regions by @leaanthony in #1704
- Allow MacOS frameless window to be miniturisable by @leaanthony in #1705
What's Changed
- add wails-sveltekit-template to website by @h8gi in #1671
- wails doctor now reports correct MacOS os id by @stffabi in #1673
- Update application-development.mdx by @SamHennessy in #1682
- Move SetMin/Max calls to main thread by @leaanthony in #1684
- Change
frontend:dev
tofrontend:dev:build
by @LGiki in #1691 - Build frontend only before starting the dev watcher command by @stffabi in #1694
- Improve error message for auto dev server discovery without a dev watcher by @stffabi
in #1711
New Contributors
- @h8gi made their first contribution in #1671
- @SamHennessy made their first contribution in #1682
v2.0.0-beta.42
Added
- Added
options.NewRGBA
andoptions.NewRGB
functions to create*options.RGBA
by @leaanthony
Fixed
- Fixed initial build of frontend when using
wails dev
on new projects by @leaanthony
in #1650 - Ignore empty install command when running
wails dev
by @stffabi in #1651 - Fixed error reporting in templates
- BackgroundColour documentation fix
- Generalize manual compile steps [Documentation] by @acheong08 in #1644
v2.0.0-beta.39.2
Added
- Update example for macOS Menu by @acheong08 in #1600
Fixed
- Reinstate Go 1.17 compatibility by @leaanthony in #1605
v2.0.0-beta.39
Added
- New screen dimensions runtime API by @skamensky in #1519
- Auto discover vite devserver port by @leaanthony in #1547
- Add nixpkgs support to doctor command. by @ianmjones in #1551
- New pre-build hooks feature by @leaanthony in #1578
- New production log level option by @leaanthony in #1555
Fixed
- Fix stack corruption in Windows when using ICoreWebView2HttpHeadersCollectionIterator by @stffabi
in #1589 - Move WindowGet* to main thread by @leaanthony in #1464
- Allow -appargs flag to pass flags to binary. by @ianmjones in #1534
- Fix checking for installed apt package in none English session. by @ianmjones
in #1548 - Fix OnBeforeClose code for Mac by @leaanthony in #1558
- Support Maps in TS conversion by @leaanthony in #1435
- Check for line length when scanning for local devserver url by @leaanthony
in #1566 - Remove usage of unsafe.Pointer in winc by @stffabi and @leaanthony in #1556
Changed
- Rename WindowSetRGBA -> WindowSetBackgroundColour by @leaanthony in #1506
- Improvements to the dev command by @stffabi in #1510
- Update vscode template by @leaanthony in #1398
- Bump svelte from 3.42.2 to 3.49.0 in /v2/internal/frontend/runtime/dev by @dependabot
in #1572 - Bump svelte from 3.42.5 to 3.49.0 in /v2/internal/frontend/runtime by @dependabot
in #1573 - Add troubleshooting for
Not Found
error by @acheong08 in #1586 - Docs/better homepage by @leaanthony in #1591
New Contributors
- @skamensky made their first contribution in #1519
- @acheong08 made their first contribution in #1586
Full Changelog: v2.0.0-beta.38...v2.0.0-beta.39
v2.0.0-beta.38
Added
- Add race detector to build & dev by @lyimmi in #1426
- [linux] Support
linux/arm
architecture by @lyimmi in #1427 - Create gitignore when using
-g
option by @jaesung9507 in #1430 - [windows] Add Suspend/Resume callback support by @leaanthony in #1474
- Add runtime function
WindowSetAlwaysOnTop
by @chenxiao1990 in #1442 - [windows] Allow setting browser path by @NanoNik in #1448
Fixed
- [linux] Improve switching to main thread for callbacks by @stffabi in #1392
- [windows] Fix WebView2 minimum runtime version check by @stffabi in #1456
- [linux] Fix apt command syntax (#1458) by @abtin in #1461
- [windows] Set Window Background colour if provided + debounce redraw option by @leaanthony in #1466
- Fix small typo in docs by @LukenSkyne in #1449
- Fix the url to surge by @andywenk in #1460
- Fixed theme change at runtime by @leaanthony in #1473
- Fix: Don't stop if unable to remove temporary bindings build by @leaanthony in #1465
- [windows] Pass the correct installationStatus to the webview installation strategy by @stffabi in #1483
- [windows] Make
SetBackgroundColour
compatible forwindows/386
by @stffabi in #1493 - Fix lit-ts template by @Orijhins in #1494
Changed
- [windows] Load WebView2 loader from embedded only by @stffabi in #1432
- Add showcase entry for October + update homepage carousel entry for October by @marcus-crane in #1436
- Always use return in wrapped method by @leaanthony in #1410
- [windows] Unlock OSThread after native calls have been finished by @stffabi in #1441
- Add
BackgroundColour
and deprecateRGBA
by @leaanthony in #1475 - AssetsHandler remove retry logic in dev mode by @stffabi in #1479
- Add Solid JS template to docs by @sidwebworks in #1492
- Better signal handling by @leaanthony in #1488
- Chore/react 18 create root by @tomanagle in #1489
New Contributors
- @jaesung9507 made their first contribution in #1430
- @LukenSkyne made their first contribution in #1449
- @andywenk made their first contribution in #1460
- @abtin made their first contribution in #1461
- @chenxiao1990 made their first contribution in #1442
- @NanoNik made their first contribution in #1448
- @sidwebworks made their first contribution in #1492
- @tomanagle made their first contribution in #1489
v2.0.0-beta.37
Added
- Add
nogen
flag in wails dev command by @mondy in #1413 - Initial support for new native translucency in Windows Preview by @leaanthony in #1400
Fixed
- Bugfix/incorrect bindings by @leaanthony in #1383
- Fix runtime.js events by @polikow in #1369
- Fix docs formatting by @antimatter96 in #1372
- Events | fixes #1388 by @lambdajack in #1390
- bugfix: correct typo by @tmclane in #1391
- Fix typo in docs by @LGiki in #1393
- Fix typo bindings.js to ipc.js by @rayshoo in #1406
- Make sure to execute the menu callbacks on a new goroutine by @stffabi in #1403
- Update runtime.d.ts & templates by @Yz4230 in #1421
- Add missing className to input in React and Preact templates by @edwardbrowncross in #1419
Changed
- Improve multi-platform builds by @stffabi in #1373
- During wails dev only use reload logic if no AssetsHandler are in use by @stffabi in #1385
- Update events.mdx by @Junkher in #1387
- Add Next.js template by @LGiki in #1394
- Add docs on wails generate module by @TechplexEngineer in #1414
- Add macos custom menu EditMenu tips by @daodao97 in #1423
New Contributors
- @polikow made their first contribution in #1369
- @antimatter96 made their first contribution in #1372
- @Junkher made their first contribution in #1387
- @lambdajack made their first contribution in #1390
- @LGiki made their first contribution in #1393
- @rayshoo made their first contribution in #1406
- @TechplexEngineer made their first contribution in #1414
- @mondy made their first contribution in #1413
- @Yz4230 made their first contribution in #1421
- @daodao97 made their first contribution in #1423
- @edwardbrowncross made their first contribution in #1419
v2.0.0-beta.36
Fixed
- [v2] Validate devServer property to be of the correct form by @stffabi in #1359
- [v2, darwin] Initialize native variables on stack to prevent segfault by @stffabi in #1362
- Vue-TS template fix
Changed
- Added
OnStartup
method back to default templates
Full Changelog: v2.0.0-beta.35...v2.0.0-beta.36
v2.0.0-beta.35
Breaking Changes
- When data was sent to the
EventsOn
callback, it was being sent as a slice of values, instead of optional parameters to the method. EventsOn` now works as expected, but you will need to update your code if you currently use this. More information - The broken
bindings.js
andbindings.d.ts
files have been replaced by a new JS/TS code generation system. More details here
Added
- New Templates: Svelte, React, Vue, Preact, Lit and Vanilla templates, both JS and TS versions.
wails init -l
for more info.
TEMPLATE SHORT NAME DESCRIPTION
Lit + Vite lit Lit + Vite development server
Lit + Vite (Typescript) lit-ts Lit + TS + Vite development server
Preact + Vite preact Preact + Vite development server
Preact + Vite (Typescript) preact-ts Preact + Vite development server
React + Vite react React + Vite development server
React + Vite (Typescript) react-ts React + Vite development server
Svelte + Vite svelte Svelte + Vite development server
Svelte + Vite (Typescript) svelte-ts Svelte + TS + Vite development server
Vanilla + Vite vanilla Vanilla + Vite development server
Vanilla + Vite (Typescript) vanilla-ts Vanilla + Vite development server
Vue + Vite vue Vue + Vite development server
Vue + Vite (Typescript) vue-ts Vue + Vite development server
- Default templates now powered by Vite. This enables lightning fast reloads when you use
wails dev
! - Add support for external frontend development servers. See
frontend:dev:serverUrl
in the project config - @stffabi - Fully configurable dark mode for Windows.
- Hugely improved WailsJS generation (both Javascript and Typescript)
- Wails doctor now reports information about the wails installation - @stffabi
- Added docs for code-signing and NSIS installer - @gardc
- Add support for
-trimpath
build flag - Add support for a default AssetsHandler - @stffabi
Fixed
- Improved mimetype detection for BOM marker and comments - @napalu
- Remove duplicate mimetype entries - @napalu
- Remove duplicate Typescript imports in generated definition files - @adalessa
- Add missing method declaration - @adalessa
- Fix Linux sigabrt on start - @napalu
- Double Click event now works on elements with
data-wails-drag
attribute - @jicg - Suppress resizing during minimize of a frameless window - @stffabi
- Fixed TS/JS generation for Go methods with no returns
- Fixed WailsJS being generated in project directory
Changed
- Website docs are now versioned
- Improved
runtime.Environment
call - Improve the close action for Mac
- A bunch of dependabot security updates
- Improved website content - @misitebao
- Upgrade issue template - @misitebao
- Convert documents that don't require version management to individual pages - @misitebao
- Website now using Algolia search
v2.0.0-beta.34
Features
- Add support for 'DomReady' callback on linux by @napalu in #1249
- MacOS - Show extension by default by @leaanthony in #1228
Bug Fixes
- [v2, nsis] Seems like
/
as path separator works only for some directives in a cross platform way by @stffabi in #1227 - import models on binding definition by @adalessa in #1231
- Use local search on website by @leaanthony in #1234
- Ensure binary resources can be served by @napalu in #1240
- Only retry loading assets when loading from disk by @leaanthony in #1241
- [v2, windows] Fix maximised start state by @stffabi in #1243
- Ensure Linux IsFullScreen uses GDK_WINDOW_STATE_FULLSCREEN bitmask appropriately. by @ianmjones in #1245
- Fix memory leak in ExecJS for Mac by @leaanthony in #1230
- Fix, or at least a workaround, for (#1232) by @BillBuilt in #1247
- [v2] Use os.Args[0] for self starting wails by @stffabi in #1258
- [v2, windows] Windows switch scheme: https -> http by @stefpap in #1255
- Ensure Focus is regained by Webview2 when tabbing by @leaanthony in #1257
- Try to focus window when Show() is called. by @leaanthony in #1212
- Check system for user installed Linux dependencies by @leaanthony in #1180
Changes
- feat(website): sync documents and add content by @misitebao in #1215
- refactor(cli): optimize default templates by @misitebao in #1214
- Run watcher after initial build by @leaanthony in #1216
- Feature/docs update by @leaanthony in #1218
- feat(website): optimize website and sync documents by @misitebao in #1219
- docs: sync documents by @misitebao in #1224
- Default index page by @leaanthony in #1229
- Build added win32 compatibility by @fengweiqiang in #1238
- docs: sync documents by @misitebao in #1260
New Contributors
- @adalessa made their first contribution in #1231
- @napalu made their first contribution in #1240
- @fengweiqiang made their first contribution in #1238
- @stefpap made their first contribution in #1255
Full Changelog: v2.0.0-beta.33...v2.0.0-beta.34