wails/v3/internal/runtime
Lea Anthony 4dce80d887
fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic (#4859)
* fix(v3): warm up dialog types in go-json cache to prevent Windows panic

Add FileFilter, OpenFileDialogOptions, SaveFileDialogOptions, and
MessageDialogOptions to the init() warmup to prevent index out of bounds
panic on Windows when these types are first unmarshaled.

Fixes goccy/go-json#474 for Wails internal dialog types.

* fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic

goccy/go-json has a type address calculation bug on Windows that causes
index out of bounds panic when decoding user-defined types for the first time.

This reverts all runtime usages of goccy/go-json back to stdlib encoding/json.
Test and benchmark files are left unchanged.

Partially reverts PR #4843.
2026-01-05 08:26:35 +11:00
..
desktop [skip ci] Publish @wailsio/runtime v3.0.0-alpha.78 2026-01-04 00:09:35 +00:00
.gitignore Ignore build artifacts 2025-02-28 22:25:13 +01:00
package-lock.json feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
README.md Event cancellation for standard listeners. 2025-01-27 09:29:22 +11:00
runtime.go fix(v3): revert goccy/go-json to stdlib encoding/json to fix Windows panic (#4859) 2026-01-05 08:26:35 +11:00
runtime_android.go feat: Add Android support for Wails v3 2025-11-28 21:06:59 +11:00
runtime_darwin.go [V3] Refactor binding transport layer (#4702) 2025-12-07 22:19:12 +11:00
runtime_dev.go Fixed dialogs on macOS. Update WML example to use compiled runtime. 2024-01-25 21:00:33 +11:00
runtime_linux.go Merge Android support from v3-alpha-feature/android-support 2025-12-10 18:37:24 +11:00
runtime_prod.go Fix context menu example 2024-03-20 21:18:46 +11:00
runtime_windows.go [V3] Refactor binding transport layer (#4702) 2025-12-07 22:19:12 +11:00
Taskfile.yaml fix(v3): overhaul drag-and-drop for Linux reliability and simplify Windows implementation (#4848) 2026-01-04 11:08:29 +11:00

Runtime

To rebuild the runtime run task build or if you have Wails v3 CLI, you can use wails3 task build.