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