v0.6.2

DioxusLabs/dioxusv0.6.2Jan 22, 2025by jkelleyrtp

AI Summary

This release adds mobile device support for development, improves asset caching strategies, and enhances the CLI's bundling capabilities.

Key Highlights

  • iPadOS support for `dx serve`
  • Cache-busting for .wasm files
  • Serving on 0.0.0.0 for device hot-reload support
  • out_dir support for `dx bundle`

New Features

  • iPadOS support
  • Cache-busting for WASM files
  • Per-app session cache

Full Release Notes

## Dioxus 0.6.2: Bug fixes and quality-of-life features

This patch release fixes a number of issues during the 1st month of Dioxus 0.6 release.

Make sure you update your dioxus-cli!

```
cargo binstall dioxus-cli --version 0.6.2 --force
```

Also make sure to run cargo update to take advantage of the fixes in your app itself.

## What's new?

Features:
- iPadOS support for `dx serve`
- Cache-busting for .wasm files
- Serving on 0.0.0.0 for device hot-reload support
- out_dir support for `dx bundle`
- per-app session cache for storing temp values during `dx serve`
- Cuter `dx serve` extra info panel

Notable Fixes:
- Hashing of executables in `dx serve` 
- Fix using `o` to open files
- Fix expression autocompelte in rsx!
- Fix some issues with minification dropping function names and classes
- Use your android sdk's `adb`
- Fix some `dx translate` class translation issues
- Fix a number of issues with `dx bundle`

## What's Changed
* Make the file engine feature in the html crate a no-op by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3392
* Fix event closure invoked recursively by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3405
* Don't panic if the duration is negative in try_get_or_insert by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3413
* fix copy assets progress by moving fetch_add out of trace!(). by @liigo in https://github.com/DioxusLabs/dioxus/pull/3385
* Assume the virtual dom is not rendering while not diffing components by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3406
* Fix path to image in README.md by @flba-eb in https://github.com/DioxusLabs/dioxus/pull/3443
* Return None in autodetect_on_cargo_feature on other platforms by @rhaskia in https://github.com/DioxusLabs/dioxus/pull/3445
* Keep rebuilding toast alive longer by @liigo in https://github.com/DioxusLabs/dioxus/pull/3455
* Make `Routable` derive macro hygienic by @MrGVSV in https://github.com/DioxusLabs/dioxus/pull/3437
* Fixed asset path resolver to use the second segment instead of first. by @sjud in https://github.com/DioxusLabs/dioxus/pull/3472
* fix: pin cargo-msrv to older version by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3486
* remove version pin on tao by @sehnryr in https://github.com/DioxusLabs/dioxus/pull/3485
* the main exe to be bundled should have '.exe' extension on windows by @liigo in https://github.com/DioxusLabs/dioxus/pull/3482
* Use a better default browser list and fail gracefully when css parsing fails by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3509
* Add Persian Translation by @Mehrbod2002 in https://github.com/DioxusLabs/dioxus/pull/3387
* Fix the event handler memory leak by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3508
* fix(cli): Log errors when `adb` command fails by @Plebshot in https://github.com/DioxusLabs/dioxus/pull/3493
* fix: bump futures-channel to prevent locked versions from conflicting by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3510
* Fix compiler error in examples/fullstack-auth by @ywiyogo in https://github.com/DioxusLabs/dioxus/pull/3359
* Dioxus Playground Hot Reload Support by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3098
* Get server address from cli in fullstack-auth example.  by @charles-r-earp in https://github.com/DioxusLabs/dioxus/pull/3494
* fix(cli): get ip addr & port number from config by @wiseaidev in https://github.com/DioxusLabs/dioxus/pull/3369
* feat: Reexport the `Warning` trait in dioxus-signals by @marc2332 in https://github.com/DioxusLabs/dioxus/pull/3321
* feat: document and re-export dioxus-cli-config by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3515
* Fix Routable::parent with hash segments and query params by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3484
* Fix hydration of suspense fragments that contain text nodes by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3287
* Fix mounted event after initial hydration by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3480
* Improve error message when dx is called on a virtual or library package by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3505
* Fix dx bundle fails when no assets are copied by @BleemIs42 in https://github.com/DioxusLabs/dioxus/pull/3519
* fix: Handle unicode in webview events. by @tdomhan in https://github.com/DioxusLabs/dioxus/pull/3386
* fix: add additional lock when calling wait_for_work on android by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3524
* Fix the test_stream function running after the stream is closed by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3396
* Fix: Asset Cache On Windows & Asset Status by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3525
* fix: viewBox translation by not accidentally stringifying literals by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3527
* Fix ssg race condition by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3521
* Fix opening fullstack and server crash logging in the CLI by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3488
* Remove empty doctor command by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3536
* Fix pointer provenance in const serialize with zero sized type enum variants by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3532
* Fix: Enable `keep_fn_names` In SWC Mangling by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3539
* docs: demonstrate extending both global and element attributes by @Plebshot in https://github.com/DioxusLabs/dioxus/pull/3555
* fix: cli package name search by @Anakael in https://github.com/DioxusLabs/dioxus/pull/3561
* Fixed the multiple window closing issue, where the two multiwindow examples weren't working. by @sertschgi in https://github.com/DioxusLabs/dioxus/pull/3499
* Add server context to suspense resolution by @Houndie in https://github.com/DioxusLabs/dioxus/pull/3552
* Fix rsx expression autocomplete by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3568
* fix: don't accidentally generate .d.ts files with wasm-bindgen by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3577
* Fix outdir not work when run dx bundle --platform web --outdir mydir by @BleemIs42 in https://github.com/DioxusLabs/dioxus/pull/3572
* feat(cli): add feature to disable downloads by @CathalMullan in https://github.com/DioxusLabs/dioxus/pull/3465
* Fix repeated subscription to dropped scope leak by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3569
* fix: window state preservation by soft-killing the process by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3579
* Fix: Only Resize WebView Associated With Window by @CryZe in https://github.com/DioxusLabs/dioxus/pull/3584
* Simplify fullstack auth example by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3598
* Fix fullstack hackernews example instructions by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3597
* feat: device hot-reload, tools-relative adb, auto port bind by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3586
* fix: don't gitignore manganis assets during hot-reload by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3606
* fix: don't send hot-reload if app is building by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3607
* feat: android bundling, red/blue exe names, session cache by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3608
* Fix: `always-on-top` setting by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3347
* fix: dont unwrap as much in desktop by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3609
* Fix hot reload diffing to empty rsx by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3567
* Remove the todo list from the examples readme by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3613
* docs: update translations/ja-jp/README.md by @eltociear in https://github.com/DioxusLabs/dioxus/pull/3615
* fix: too much padding for small frames by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3616
* fix: don't have Rc cycles in DioxusElement or Queries by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3618
* Optimize wasm bindgen asset with manganis by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3531
* fix: use a different temp path to not confuse image opt by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3620
* CryptoProvider error. by @vgobbo in https://github.com/DioxusLabs/dioxus/pull/3619
* fix: pass off env vars to android apps by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3621

## New Contributors
* @liigo made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3385
* @flba-eb made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3443
* @rhaskia made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3445
* @sjud made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3472
* @sehnryr made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3485
* @Mehrbod2002 made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3387
* @Plebshot made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3493
* @ywiyogo made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3359
* @charles-r-earp made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3494
* @wiseaidev made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3369
* @tdomhan made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3386
* @Anakael made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3561
* @sertschgi made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3499
* @Houndie made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3552
* @CathalMullan made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3465
* @CryZe made their first contribution in https://github.com/DioxusLabs/dioxus/pull/3584

**Full Changelog**: https://github.com/DioxusLabs/dioxus/compare/v0.6.1...v0.6.2