Commit Graph
6953 Commits
Author SHA1 Message Date
Soheil Alizadeh 49234deacf Add aria-hidden="true" when hiding the dev toast (#4990) 2025-11-19 12:55:57 -08:00
Evan Almloff 6df20ef3f7 Fix default with optional props (#4995)
* fix default with optional props

* fix core macro tests
2025-11-19 12:33:49 -08:00
Evan Almloff 6e952f27a7 Fix drag and drop serialization (#4997)
* fix drag and drop serialization

* rebuild js
2025-11-19 12:08:18 -08:00
Juan Vásquez b084432a8a Fixed API Docs link (#4974) 2025-11-17 08:09:41 -06:00
Evan Almloff bd2d1de873 Fix marking nodes as dirty when inserting into an existing hashmap entry (#4959)
* Fix marking nodes as dirty when inserting into an existing hashmap entry

* remove logs
2025-11-12 23:13:56 -03:00
Himmelschmidt 317abedece fix: check HTTP status in FileStream::from_response (#4947) (#4948) 2025-11-11 16:56:36 -03:00
Rafael Bachmann 4bd49ab989 Add use_drop to prelude (#4939) 2025-11-11 12:47:38 -03:00
Jonathan Kelley 57e3543c64 fix a few small bugs (#4955)
* add `Patch` endpoint

* fix stack overflow on loader

* add timeout to playwright

* 45 min

* remove macos x86 from runners
2025-11-11 12:37:19 -03:00
Nathan Essex 2a515a3fc9 Use tokio 1.48 in Cargo.toml (#4941) 2025-11-10 12:45:13 +00:00
Jonathan Kelley 03ab7fa482 Release v0.7.1 2025-11-06 16:39:25 -03:00
Jonathan Kelley 50a7757259 fix: use cfg window close behavior (#4928) 2025-11-06 16:12:15 -03:00
Evan Almloff b252dc0620 Fix adding nodes to nested fragments (#4929)
* Fix adding nodes to nested fragments

* add note about test
2025-11-06 15:48:11 -03:00
Jonathan Kelley 1236296ea6 feat: use async fd when using tokio (#4927)
* feat: use async fd when using tokio

* whoops fix ios
2025-11-06 14:55:59 -03:00
Jonathan Kelley 75bb61ea67 fix: use dioxus query, not axum (#4926) 2025-11-06 14:47:27 -03:00
Jonathan Kelley b331734027 fix: serverfn endpoint for anon serverfns (#4920) 2025-11-05 17:19:47 -03:00
Jonathan Kelley 6a50f1ba84 add with_on_window_ready to allow modifying window before webview (#4919)
* wip

* cleanups
2025-11-05 17:00:58 -03:00
Jonathan Kelley 06c5a4499f fix cargo.lock 2025-11-05 15:57:28 -03:00
Jonathan Kelley 6824887856 add platform flag (#4918) 2025-11-05 15:55:20 -03:00
Nico BurnsandJonathan Kelley d61848609f Make dioxus-native work on iOS simulator (#4876)
* Make dioxus-native work on iOS simulator

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Bump dioxus-native to v0.7.1

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Update package version to use workspace versioning

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-11-05 15:22:02 -03:00
Javier E. 41f68582e9 Fix FileStream.file_name() (#4875) 2025-11-05 15:09:04 -03:00
Craig 2117c3d4e9 Note "d" for debug (#4882)
* Note "d" for debug

* Fix layout
2025-11-05 15:08:29 -03:00
Ken aka Frosty 85d58d3a48 Simple but critical fix for fullstack server fn handling (#4891)
Getting full panics here in prod: 
thread '<unnamed>' (23) panicked at /usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dioxus-fullstack-0.7.0/src/magic.rs:554:22:
called `Result::unwrap()` on an `Err` value: Response { status: 500, version: HTTP/1.1, headers: {"content-type": "application/json"}, body: Body(UnsyncBoxBody) }

Could be triggered by something as simple as a client choosing to send formdata-style body instead of JSON. (I discovered this because exactly that was happening; not maliciously, but because of the upgrade from 0.6.3 to 0.7). 

As far as I can tell, this was just meant to be an early return with a failure case of the Response, mapped from the ServerFnError. The .unwrap() left there was probably just an erroneous artifact from the various waves of the development process. 

If this is incorrect or I've missed something, please let me know! But I believe this is a very simple fix for an otherwise critical problem
2025-11-05 15:04:00 -03:00
Amos Wenger 55d5ec3fc8 feat: add --raw-json-diagnostics flag to dx build (#4887)
This flag allows users to get the raw JSON output from cargo instead
of having it processed by Dioxus. This is useful for integration with
other tools that expect cargo's native JSON diagnostic format.

When enabled, cargo's JSON messages are relayed directly to stdout
while still allowing DX to track essential build information internally.

Usage: dx build --raw-json-diagnostics
2025-11-05 14:57:28 -03:00
Craig 3ac4230ecf Support VSCode-Insiders in doctor command (#4892) 2025-11-05 14:57:01 -03:00
David Bernard 6f0c647c5a fix: propagate current tracing'span to server function (#4900)
FIX #4896
2025-11-05 14:56:15 -03:00
Jonathan Kelley 71e01d5be6 use default fullstackcontext instead 2025-11-05 14:53:51 -03:00
Himmelschmidt af215e4e80 Fix server functions failing when called from backend code (#4908)
* fix(fullstack-macro): allow server functions to be called without HTTP context

Server functions can now be invoked directly from server-side code without
requiring an HTTP request context. When called outside an HTTP handler,
extractors will use default values instead of failing, matching the behavior
of the old server_fn implementation.

Closes #4907

* fix(fullstack-macro): allow server functions without extractors to be called from backend

Functions with no server extractors use Default::default() and work from backend code.
Functions with extractors still require HTTP context.

Closes #4907
2025-11-05 14:46:01 -03:00
Himmelschmidt 791fa4be7b Replace unwraps with proper error handling in fullstack client (#4915) (#4916) 2025-11-05 14:45:21 -03:00
Evan Almloff e03d8ff215 fix windows builds (#4903) 2025-11-03 18:10:38 -08:00
Evan Almloff 06f39cd140 skip lib default members (#4895) 2025-11-03 12:59:07 -06:00
omasakun c2d540e64d Fix dioxus-native to run without the net feature (#4899)
* Fix dioxus-native to run without the net feature

* Fix local assets to be available without net features

* fix: compile out the inner_net_provider field entirely

* feat: make dioxus-native run without html feature
2025-11-03 18:45:44 +00:00
Jonathan Kelley 2ab9a5586d bump vers in readme 2025-10-30 21:51:34 -07:00
Jonathan Kelley ee25fcb5f6 release 0.7.0 2025-10-30 21:46:11 -07:00
Jonathan Kelley 9a5913cd74 fix links 2025-10-30 21:31:52 -07:00
Jonathan Kelley c5e43dbef6 fix more links 2025-10-30 21:29:09 -07:00
Jonathan Kelley 8f85114d46 prep for 0.7 release 2025-10-30 21:26:01 -07:00
Jonathan Kelley 1b81d89f0b release 0.7.0-rc.4 2025-10-30 19:46:42 -07:00
Jonathan Kelley 90e988cbdb remove some latent todos!() 2025-10-30 19:29:53 -07:00
Jonathan Kelley 32e46d98be implement files() on web data transfer 2025-10-30 19:22:08 -07:00
Jonathan Kelley 1015a9ed6c fix dual serve (#4865) 2025-10-30 19:16:29 -07:00
Omar Mohamed Khallaf a4d1fd848d feat: add option to statically add js and css assets to the header at compile time (#4653)
Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com>
2025-10-30 18:55:51 -07:00
Javier E. 3f931e8409 Add some functions to read/write request header for server functions (#4823)
* Add some functions to read/write request header for server functions

* Use LazyLock<Mutex<_>> to allow rewriting and clearing request headers.
2025-10-30 18:54:14 -07:00
Evan Almloff ee1719af92 Expand relative assets to a placeholder if we are running in rust (#4860)
analyzer
2025-10-30 18:53:39 -07:00
Evan Almloff 566dab939f Relax asset resolver bounds and document resolving folder assets (#4859)
* relax asset bounds and document resolving folder assets

* fix docs for folder asset_path
2025-10-30 18:53:26 -07:00
Jonathan Kelley 5559e463c8 multiple fullstack nits/cleanups before release (#4852)
* feat: `:arg` syntax for serverfn

* add better decode/encode verify message

* allow catch-all query args

* add rebind

* implement websocket frames for `Streaming`

* fix lazy init

* wip... serverfnstate

* wip...

* wip: serverfns require Send/Sync, let's fix that

* wip...

* small cleanup

* fix hang by actually spawning the tokio task

* clippy

* fix parameter catchall binding

* fix lychee

* doc tests
2025-10-30 18:52:47 -07:00
Evan Almloff 43373f0be7 Fix updating components and local components (#4856)
* Fix updating components and local components

* fix typo
2025-10-28 17:02:56 -07:00
Sabin RegmiandJonathan Kelley 6e3f362872 Pipe Android/ADB logs into CLI (#4853)
* Enhance Android log handling in AppBuilder

- Introduced adb_logcat fields to manage Android logcat output.
- Implemented logcat spawning and parsing to differentiate log levels.
- Updated push_stdio method to filter Android logs based on trace settings.
- Added utility functions for retrieving app PID and parsing logcat levels.

* automatic retry to get pid

* pipe RustStdoutStderr as well

* strip logcat prefix

* filter in rust instead

* Refine log filtering in Rust output handling

- Improved log level detection by checking for prefixes after the colon in messages.
- Enhanced filtering to only show logs with standard tracing levels or fatal errors.
- Streamlined the process of stripping logcat metadata while preserving message content.

* cleanup output and kill proc

* capture logs from ios device

* clippy

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-10-28 12:35:34 -07:00
Jonathan Kelley 24df6439ea feat: set windows subsytem to windows for gui apps (#4855)
* feat: set windows subsytem to windows for gui apps

* typo

* clippy
2025-10-28 11:38:52 -07:00
Amar Sood 8adea41efa Add option_asset! to match asset! (#4791) 2025-10-28 11:26:21 -07:00
Evan Almloff e656bace5c restore the extract function for server functions (#4849)
* restore the extract function for server functions

* fix compilation

* Move most fields under one shared lock

* fix typo

* fix clippy

* restore somewhat misleading FromRequest bound

* remove unused import

* fix doc links
2025-10-27 15:54:24 -07:00