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
Greg Johnston
6c8e704fb3
smh
2024-01-19 14:16:58 -05:00
Greg Johnston
81fb5160e5
missing makefiles
2024-01-19 14:16:58 -05:00
Greg Johnston
f5c007df7b
use server fns directly in ActionForm and MultiActionForm
2024-01-19 14:16:18 -05:00
Rakshith Ravi
a1bd84f3dc
feat: add serde-lite
codec for server functions ( #2168 )
2024-01-19 14:16:18 -05:00
Rakshith Ravi
f6ce82c9d1
Fixed tests for server_fn
( #2167 )
...
* Fixed server_fn tests
* Changed type_name to TypeId
* Fixed handling of leading slashes for server_fn endpoint
2024-01-19 14:16:18 -05:00
Greg Johnston
4e3f1c834c
handle client-side and server-side redirects correctly (in Axum)
2024-01-19 14:16:18 -05:00
Greg Johnston
566df034ff
actually use server functions in ActionForm
2024-01-19 14:16:17 -05:00