You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Middleware functions should be able to be async or sync & return a value or result
Don't box the top layer. Eg. A procedure that doesn't use any async shouldn't be boxed or executable at all, it should just clone the value out of the HashMap (but still account for middleware)
Pre-poll future for the first value to see if it's Ready<T> or it's actually a future?
Changes:
Support for anyhow with rspc::Error. Must enabled the anyhow feature for this.
Remove DoubleArgStreamMarker and replace StreamResolver and with StreamRequestLayer trait.
Drop DoubleArgStreamMarker type and Resolver trait. The bounds have been moved directly onto the .query/.mutation/.subscription methods. This was an artifact of a feature that was never implemented due to limitations in the Rust compiler's type inference capabilities.
.subscription now supports returning a dyn Stream, Result<dyn Stream, rspc::Error>, dyn Future<Output = dyn Stream and dyn Future<Output = Result<dyn Stream, rspc::Error>>.
Restrict names of procedures to prevent conflicts with internal procedures and invalid URLs.
Improve error for invalid names. Now uses #[track_caller] to provide a clickable path in the terminal to take you to error in your own code.
New JSON RPC executor
Cleanup Tauri subscriptions on page load -> This flows the behavior of a websocket.
Remove hack from previous Tauri IPC bug
impl RouterBuilderLike
Refactor ProcedureDataType. This is a breaking change but it's marked as an internal API
Added typedef to RequestLayer trait
The text was updated successfully, but these errors were encountered:
0.1.3
->main
andmain
->prev-main
prev-main
Typescript to provide an easier migration path.Output
doesn't eventually equalT
then we get a runtime error.rspc::Error
traitprev-main
into the alpha stuff or internalsalpha
module namingAbortController
's on the frontendReady<T>
or it's actually a future?Changes:
rspc::Error
. Must enabled theanyhow
feature for this.DoubleArgStreamMarker
and replaceStreamResolver
and withStreamRequestLayer
trait.DoubleArgStreamMarker
type andResolver
trait. The bounds have been moved directly onto the.query
/.mutation
/.subscription
methods. This was an artifact of a feature that was never implemented due to limitations in the Rust compiler's type inference capabilities..subscription
now supports returning adyn Stream
,Result<dyn Stream, rspc::Error>
,dyn Future<Output = dyn Stream
anddyn Future<Output = Result<dyn Stream, rspc::Error>>
.#[track_caller]
to provide a clickable path in the terminal to take you to error in your own code.ProcedureDataType
. This is a breaking change but it's marked as an internal APItypedef
toRequestLayer
traitThe text was updated successfully, but these errors were encountered: