v0.6.1

DioxusLabs/dioxusv0.6.1Dec 18, 2024by jkelleyrtp

AI Summary

A bug fix release that stabilizes the new mobile tooling introduced in 0.6, fixing asset handling across Windows and Android platforms.

Key Highlights

  • CLI now installs wasm-bindgen dynamically
  • Fixes Windows asset canonicalization (UNC paths) with manganis
  • Improved Android asset hot-reloading using /tmp directory

New Features

  • Dynamic wasm-bindgen installer

Full Release Notes

## Dioxus 0.6.1: Bug fixes

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

Make sure you update your `dioxus-cli`! 

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

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

## A list of the fixes

- The CLI now installs the proper wasm-bindgen version dynamically instead of requiring a new download of dx
- Our asset hot-reload is more resilient on web, fixing an issue where we accidentally broke some query parameters
- Windows asset canonicalization is fixed (unc paths!) with manganis, fixing asset hot-reload
- Our docs.rs build was failing due to our platform support list being wrong, this is fixed now
- Android asset hot-reloading has been fixed/improved. The old version relied on the emulator being launched with su while the new one uses the /tmp directory to store hot-reloaded assets.
- Occasionally toasts would be triggered but not inside the Dioxus runtime, leading to some panics
- The "starting rebuild" toast wasn't being sent in some cases, this is fixed.
- Sometimes the CLI would swallow `cargo` logs - this is fixed
- The CLI now suggest to toggle trace mode for more information
- The CLI now suggests to run the tailwind CLI if your project uses tailwind
- Occasionally links in liveview would cause a full reload, this is fixed
- We fixed a frame clipping issue with the CLI inline viewport
- onmounted no longer fires multiple times



## What's Changed
* Fix hot reloading stylesheets with an existing query parameter by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3315
* Fix enable_out_of_order_streaming doc example and manganis macro remote example by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3317
* Fix: Windows Manganis Asset Hot Reload by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3330
* fix: drop target list to make docsrs build happy by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3329
* feat: android asset hotreloading by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3332
* Always run toast eval inside the runtime by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3313
* fix: toasts not being sent on rebuild by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3333
* fix: print `error: ` messages and their contents from cargo by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3336
* Fix client side liveview links by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3341
* Feat: CLI `wasm-bindgen-cli` Installer by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3335
* Fix: unwraps while ignoring log lines by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3370
* fix space remaining mis calc in cli frame causing tears by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3371
* Fix space remaining (again) by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3377
* fix: throw error when asset is empty by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3379
* add helpful message for obscure cargo failures by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3380
* fix peek() example by @spookyvision in https://github.com/DioxusLabs/dioxus/pull/3375
* Revision: Add more info to template creation message. by @DogeDark in https://github.com/DioxusLabs/dioxus/pull/3320
* Fix onmounted event triggering many times by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3346
* Improve the second example in the read write same scope warning by @ealmloff in https://github.com/DioxusLabs/dioxus/pull/3374
* Add a guide for releasing Dioxus by @jkelleyrtp in https://github.com/DioxusLabs/dioxus/pull/3384


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