Commit Graph

108 Commits

Author SHA1 Message Date
Saber Haj Rabiee d50012f8d4
chore: update gloo-net and reqwest to http 1.0 (closes #2688) (leptos 0.6) (#2751) 2024-08-01 19:39:54 -04:00
renshuncui b9c620d4cd
chore: fix some comments (#2712)
Signed-off-by: renshuncui <renshun@111.com>
2024-07-29 09:30:50 -04:00
Chris fb5d8513ff
docs: generate link to definition (#2656) 2024-07-03 06:46:02 -04:00
Evan Almloff 551f9b0a04
feat: add a StreamingJson encoding (#2623) 2024-06-28 11:49:26 -04:00
Hamir Mahal c9d0ef5033
chore: simplify string interpolation (#2626) 2024-06-21 07:51:38 -04:00
Greg Johnston dcaa1df63d fix: derive rkyv traits on ServerFnError 2024-06-14 14:19:54 -04:00
Luxalpa 20f4323e50
feat: allow customize derives for serverfn input struct (#2545) 2024-05-06 08:54:29 -04:00
Greg Johnston 41f3c46830
chore: bump nightly version in examples (#2479) 2024-04-01 15:16:53 -04:00
Ratul d1560f9e1f
Added missing link for #[server] macro (#2437)
* Added missing link for #[server] macro

Added missing link for #[server] macro

* Removed spurious entry
2024-03-20 14:24:54 -07:00
John Lewis 530087d77d
Add MessagePack codec (#2371)
* feat: added messagepack codec

* fix: deserialize msgpack from bytes, not string
2024-03-03 13:54:23 -08:00
Paul Hansen 6a83161368
chore: add MSRV (#2360) 2024-02-28 07:19:09 -05:00
zoomiti 753bf1ed54
Fix Broken Doc links and Deprecate `FromUtf8Error` in `oco.rs` (#2318)
* fix: deprecate `FromUtf8Error` in `oco.rs`

* chore: fix broken doc links (#859)

* chore: fix broken doc link to server attribute macro

* cargo fmt
2024-02-21 19:24:40 -08:00
Sam Judelson 37c6387fea
finish doc sentence (#2348) 2024-02-21 19:21:57 -08:00
haslersn 001ca5148e
fix: handle cross-origin redirects in server function redirect hook (#2329)
In client-side navigation we now handle redirects returned from
server functions by resolving the location against the current
origin as a base. The base is only relevant if the location
doesn't already include an origin. This fixes cross-origin
redirects.

Note: in order to handle redirects in the same way as the browser
would handle them, we need to use the server function's URL
(typically `<origin>/api/something`) as a base. I leave this as
a TODO for a future leptos version, because it probably
requires changing the signature of the `server_fn` redirect hook.

In order to not be affected by a future breaking change, users
should already start making sure that their redirect locations
either include an origin or at least start with a single slash
(e.g. `Location: /foo`).
2024-02-17 13:09:39 -05:00
Greg Johnston 0f7b8841b2
chore(ci): reduce set of tested features to prevent running out of disk space in `server_fn` (#2320) 2024-02-16 20:26:26 -05:00
Sam Judelson 1b55227d10
fix: remove unnecessary default features on `axum` in `server_fns` to support running Axum in a WASM environment (#2270) 2024-02-07 11:08:48 -05:00
Greg Johnston f71b4aae69
feat: easily create custom server fn clients (#2247) 2024-01-31 09:15:30 -05:00
Greg Johnston 1f6a892291 fix: serialization error during SSR on ServerFnError 2024-01-29 10:36:08 -05:00
Greg Johnston 9de34b74cf 0.6.2 2024-01-26 18:07:04 -05:00
benwis 2bf09384df
0.6.1
Signed-off-by: benwis <ben@celcyon.com>
2024-01-26 12:32:14 -08:00
benwis ac12e1a411
0.6.0
Signed-off-by: benwis <ben@celcyon.com>
2024-01-26 11:54:07 -08:00
Greg Johnston ca3806e6bc v0.6.0-rc1 2024-01-24 21:35:14 -05:00
Greg Johnston c88bfbe0a0 tweak sets of features for CI 2024-01-20 14:18:25 -05:00
Greg Johnston b4a1d90327 clean up for CI 2024-01-20 12:32:51 -05:00
Greg Johnston 2092c40bc7 missing derives 2024-01-19 18:21:57 -05:00
Greg Johnston f19def9541 clippy 2024-01-19 16:55:16 -05:00
Greg Johnston ddda785045 fix multipart support 2024-01-19 16:52:41 -05:00
Greg Johnston 46e7abf9ba allow custom req/res/client types 2024-01-19 15:48:14 -05:00
Greg Johnston 2a9e502893 fix rkyv deserialization 2024-01-19 15:03:21 -05:00
Greg Johnston a519859a66 Revert "use `&[u8]` instead of `Bytes` for requests"
This reverts commit e179db1d42.
2024-01-19 14:37:03 -05:00
Greg Johnston 25120c0e9f fix streaming requests and clarify in docs 2024-01-19 14:17:26 -05:00
Greg Johnston f9cd8539e4 add missing PartialEq/Eq implementations on ServerFnError (closes #2198) 2024-01-19 14:17:26 -05:00
Greg Johnston 14072457d0 clean up docs (closes #2197) 2024-01-19 14:17:26 -05:00
Greg Johnston e179db1d42 use `&[u8]` instead of `Bytes` for requests 2024-01-19 14:17:26 -05:00
Greg Johnston 2fa60103b4 share inventory collect across types 2024-01-19 14:17:26 -05:00
Greg Johnston a3a15f244d expose all fields of ServerFnTraitObj via methods 2024-01-19 14:17:26 -05:00
Greg Johnston 0df5dfeaf8 weak dependency on Cargo.toml 2024-01-19 14:17:26 -05:00
Greg Johnston c5bab09423 partial support for streaming requests (doesn't actually work in the browser) 2024-01-19 14:17:26 -05:00
Greg Johnston 8d23d5136a add package metadata 2024-01-19 14:17:25 -05:00
Greg Johnston 047235e7c1 clippy 2024-01-19 14:17:25 -05:00
Greg Johnston 35e8e74dcf get rkyv working and work on custom encoding example 2024-01-19 14:16:58 -05:00
Greg Johnston 06c478b7cb feature-gate the form redirect stuff, and clear old errors from query 2024-01-19 14:16:58 -05:00
Greg Johnston 90ba3529e9 working on Axum version 2024-01-19 14:16:58 -05:00
Greg Johnston 1ad7ee8a03 generalize error redirect behavior across integrations 2024-01-19 14:16:58 -05:00
Greg Johnston 88fee243a8 support setting server URL on either platform 2024-01-19 14:16:58 -05:00
Greg Johnston 5e08253521 get both client and server side working 2024-01-19 14:16:58 -05:00
Greg Johnston cc6f65cd83 initial version of server action error handling without JS 2024-01-19 14:16:58 -05:00
Greg Johnston def4be80b2 docs 2024-01-19 14:16:58 -05:00
Greg Johnston 15b04a8a85 more docs 2024-01-19 14:16:58 -05:00
Greg Johnston 0a9cdba22e getting started on docs 2024-01-19 14:16:58 -05:00