autofix-ci[bot]
787bf385d3
[autofix.ci] apply automated fixes
2025-03-07 23:18:19 +00:00
Evan Almloff
b6d2808671
Document the protocol trait and implementations
2025-03-07 17:12:49 -06:00
Evan Almloff
2e4d94b6c6
Add encoding suffix to the encoding types and revert renaming the post encodings
2025-03-07 17:12:49 -06:00
autofix-ci[bot]
66f9c8c999
[autofix.ci] apply automated fixes
2025-03-07 21:26:39 +00:00
Greg Johnston
352080d91a
fix: don't use ws feature of Axum on JS-fetch/no-default platform
2025-03-07 16:19:11 -05:00
Evan Almloff
fee4bccb32
Create post type aliases for encodings
2025-03-07 08:40:08 -06:00
autofix-ci[bot]
d84ab6d9bf
[autofix.ci] apply automated fixes (attempt 2/3)
2025-03-05 16:23:48 +00:00
autofix-ci[bot]
f069d4478e
[autofix.ci] apply automated fixes
2025-03-05 15:20:59 +00:00
Evan Almloff
65b5d55d62
deny missing docs
2025-03-05 09:01:22 -06:00
Evan Almloff
860ad7a221
return an error when the sever doesn't support spawning tasks
2025-03-05 09:00:26 -06:00
Evan Almloff
f49f0965bc
remove default actix feature
2025-03-05 08:51:31 -06:00
Evan Almloff
bb62d08d3f
implement actix integration
2025-03-05 08:47:06 -06:00
Evan Almloff
a1cd7ae9a1
implement reqwest websocket integration
2025-03-03 14:58:37 -06:00
autofix-ci[bot]
c97ab9a72c
[autofix.ci] apply automated fixes
2025-02-28 15:27:34 +00:00
Evan Almloff
4fc8972f2b
make the into websocket function async
2025-02-28 09:26:37 -06:00
Evan Almloff
b800c009c7
Integrate the websocket protocol with the server function macro
2025-02-27 16:31:06 -06:00
autofix-ci[bot]
f488d4b5b7
[autofix.ci] apply automated fixes
2025-02-26 19:58:25 +00:00
Evan Almloff
d4cfd0e2cb
Move content type to a separate trait
2025-02-26 13:56:59 -06:00
Evan Almloff
2037bf12cb
Merge branch 'leptos_0.8' into websockets
2025-02-26 09:40:58 -06:00
Evan Almloff
2747a496fc
fix formatting
2025-02-26 09:40:22 -06:00
Evan Almloff
c286812116
move the server request and response into a separate trait
2025-02-26 09:36:02 -06:00
Evan Almloff
7479010f84
unified http protocol for non-websocket sever functions
2025-02-25 16:20:33 -06:00
Evan Almloff
9b9983af79
expose encoding types
2025-02-25 08:36:04 -06:00
Greg Johnston
0a29071779
Merge remote-tracking branch 'origin' into leptos_0.8
2025-02-25 07:39:43 -05:00
Evan Almloff
6904eec207
remove into/from request/response bounds on server fn
2025-02-24 13:05:37 -06:00
Evan Almloff
7eb8ca702d
switch most encodings into the new system
2025-02-24 12:00:02 -06:00
Greg Johnston
362c300eac
chore: clippy doc comment indentation
2025-02-22 08:28:26 -05:00
Evan Almloff
1a7b40b507
implement gloo websockets
2025-02-21 15:48:41 -06:00
Evan Almloff
73dd677843
switch to async fn for get implementation
2025-02-20 17:02:19 -06:00
Evan Almloff
131f414fdc
move run client into the protocol trait
2025-02-20 17:01:51 -06:00
Evan Almloff
c3ed874d4d
Create websocket protocol trait
2025-02-19 14:49:57 -06:00
martin frances
37cf25fba5
serde_json is common to ( #3610 )
...
integrations/actix
leptos/server
oco
server_fn
This is a defensive PR - Putting the crate definition into the root
workspcace makes it less likely to get difficult to trace version
slip bugs.
This does not help where sede_json is optional so care manual review
is required.
2025-02-15 10:24:07 -08:00
martin frances
16d66362f8
Minor: "wasm-bindgen" - Moved the crate definition up to the root workspace ( #3588 )
...
* Minor: "wasm-bindgen" - Moved the crate definition up to the root workspace
This synchronizes the version number amongst all sub-projects.
[Where the definition is "optional" manual adjustment is still required]
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-12 12:25:22 -08:00
Greg Johnston
c2289b23a7
fix: Actix stream error handling with 0.8 error types ( #3574 )
2025-02-10 08:32:44 -05:00
Spencer Ferris
2b589fa61f
feat: Add more options for generating server fn routes ( #3438 )
...
* feat: Allow disabling server fn hash and customizing the default prefix
Allow configuring the default prefix for server function API routes. This is useful to
override the default prefix (`/api`) for all server functions without needing to manually
specify via `#[server(prefix = "...")]` on every server function.
Also, allow disabling appending the server functions' hashes to the end of their API names.
This is useful when an app's client side needs a stable server API. For example, shipping
the CSR WASM binary in a Tauri app. Tauri app releases are dependent on each platform's
distribution method (e.g., the Apple App Store or the Google Play Store), which typically
are much slower than the frequency at which a website can be updated. In addition, it's
common for users to not have the latest app version installed. In these cases, the CSR WASM
app would need to be able to continue calling the backend server function API, so the API
path needs to be consistent and not have a hash appended.
* Mark public structs as `#[non_exhaustive]` and add doc comments
* Minor refactor to pull the fn hash logic out of the `path` statement
* feat: Use module path in prefix for server fn API route
Allow including the module path of the server function in the API route. This
is an alternative strategy to prevent duplicate server function API routes
(the default strategy is to add a hash to the end of the route). Each element
of the module path will be separated by a `/`. For example, a server function
with a fully qualified name of `parent:🧒 :server_fn` would have an API
route of `/api/parent/child/server_fn` (possibly with a different prefix and
a hash suffix depending on the values of the other server fn configs).
* Fix `enable_hash` if statement
* Add missing import
2025-01-24 20:11:38 -08:00
Saber Haj Rabiee
35e6f17930
chore: upgrade axum to v0.8 ( #3439 )
2025-01-17 13:38:37 -05:00
Ryo Hirayama
cfe925d58f
feat: allow any type that implements FromServerFnError as a replacement of the ServerFnError in server_fn ( #3274 )
2025-01-17 13:30:12 -05:00
Greg Johnston
10db2f83eb
v0.7.3
2025-01-04 08:55:44 -05:00
Georg Vienna
7a5b27ad20
feat: allow prop destructuring via new #[prop(name = ...)] ( #3382 )
2024-12-27 16:57:34 -05:00
Greg Johnston
28af33d511
v0.7.2
2024-12-21 14:09:01 -05:00
Greg Johnston
ef72f1ce96
v0.7.1
2024-12-16 20:52:00 -05:00
zakstucke
2a4b80cf22
feat: opt-in locations in release mode with --cfg locations ( #3281 )
2024-12-16 08:32:57 -05:00
sutantodadang
03ed805137
implemented actix multipart ( #3361 )
2024-12-14 10:58:29 -05:00
dependabot[bot]
46ae8ef9b2
chore(deps): bump rkyv from 0.8.8 to 0.8.9 ( #3290 )
...
Bumps [rkyv](https://github.com/rkyv/rkyv ) from 0.8.8 to 0.8.9.
- [Release notes](https://github.com/rkyv/rkyv/releases )
- [Commits](https://github.com/rkyv/rkyv/commits )
---
updated-dependencies:
- dependency-name: rkyv
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-03 15:21:26 -08:00
dependabot[bot]
204648d388
chore(deps): bump wasm-bindgen from 0.2.95 to 0.2.97 ( #3317 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.95 to 0.2.97.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.95...0.2.97 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ben Wishovich <benwis@users.noreply.github.com >
2024-12-03 08:54:32 -08:00
dependabot[bot]
4dbb8d1a42
chore(deps): bump bytes from 1.8.0 to 1.9.0 ( #3297 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.8.0...v1.9.0 )
---
updated-dependencies:
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-03 08:48:33 -08:00
dependabot[bot]
fc2c52eb04
chore(deps): bump js-sys from 0.3.72 to 0.3.74 ( #3306 )
...
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.72 to 0.3.74.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-03 08:48:03 -08:00
dependabot[bot]
1ae35ce5b3
chore(deps): bump wasm-bindgen-futures from 0.4.45 to 0.4.47 ( #3318 )
...
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen ) from 0.4.45 to 0.4.47.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-03 08:47:49 -08:00
dependabot[bot]
1477ae2cfb
chore(deps): bump axum from 0.7.8 to 0.7.9 ( #3259 )
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.7.8 to 0.7.9.
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.7.8...axum-v0.7.9 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-21 19:24:31 -05:00
benwis
7f2237b91e
Remove hash.txt from tracking, update dependencies in tests
2024-11-16 11:19:11 -08:00